swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Access violation in WinXP


From: Laird Burns
Subject: Re: [Swarm-Support] Access violation in WinXP
Date: Sun, 11 May 2003 08:50:14 -0400

I don't believe your problem is with the Java implementation. I had the same problem with Swarm and Heatbugs using Objective C. It's a WinXP memory management issue with the ArchiveProbeDisplay, in my case specifically in HeatBugs. (You can find what ArchiveProbleDisplay does in the Swarm documentation.) In my case (some programming extensions of the model), I tested the code to insure it was isolated to this line of code and them REMarked it out - I didn't need them for my application. Perhaps if you are just investigating the demos this will work (initially) for you.

One note - I have used the same Swarm library objects in other Swarm applications (Axelcult, for example) and it runs fine. So I suspect it is some particular memory management techniques used in HeatBugs that merely presents its symptoms in ArchiveProbeDisplay (in the HeatBugs implementation). I didn't have time to investigate it fully. You may also have another related problem that is more problematic than this if it happens in many Swarm demos.

The best advice I have received on how to solve this 'class' of problems came from Rick Riolo, Director, Computing Lab, Center for the Study of Complex Systems, University of Michigan, (for whom I have great respect in these matters). His advice: "Get a real operating system" (Linux). Based on the number of problems I have had using WinXP (too many to count) versus the Linus boxes at CSCS (zero), I believe my experience has proven his point.

I still use XP for some work, but the Swarm support and library extensions available to Linus users is much more extensive. If you become a serious user and don't want to have to become an expert on the libraries and their interactions with the XP operating system, you may want to consider a dual boot PC (Linus/XP). In any case, good luck.

Laird Burns

--On Friday, May 02, 2003 3:21 PM -0500 D Joshua Chia <address@hidden> wrote:

> I'm running Windows XP and just installed Swarm 2.1 binary and the demo
> binary.
>
> I tried running some of the demos and some of them keep crashing with
> access violation.  In particular, Heatbug keep crashing by reading
> address 0.  It crashes even if I build and run it from a Java IDE.  The
> way I'm running Heatbug through Java is by 1) adding the swarm binary
> folder to the path, 2) using share/swarm/swarm.jar in the classpath, 3)
> compiling the Heatbug source code, 4) running StartHeatbugs
>
> The output I get from the Java IDE:
>
> An unexpected exception has been detected in native code outside the VM.
> Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6106DDA7
> Function=strncmp+0x67
> Library=c:\swarm-2.1.1\bin\cygwin1.dll
>
> Current Java thread:
>     at swarm.SwarmEnvironment.createArchivedProbeDisplay(Native
> Method)
>     at
> swarm.demo.heatbug.HeatbugObserverSwarm.buildObjects(HeatbugObserverSwar
> m.java:148)
>     at swarm.demo.heatbug.StartHeatbugs.main(StartHeatbugs.java:30)
>
> Dynamic libraries:
> 0x00400000 - 0x00406000     C:\Program
> Files\Java\j2re1.4.0\bin\javaw.exe
> 0x77F50000 - 0x77FF7000     C:\WINDOWS\System32\ntdll.dll
> 0x77E60000 - 0x77F46000     C:\WINDOWS\system32\kernel32.dll
> 0x77DD0000 - 0x77E5D000     C:\WINDOWS\system32\ADVAPI32.dll
> 0x78000000 - 0x7807F000     C:\WINDOWS\system32\RPCRT4.dll
> 0x77D40000 - 0x77DC6000     C:\WINDOWS\system32\USER32.dll
> 0x77C70000 - 0x77CB0000     C:\WINDOWS\system32\GDI32.dll
> 0x77C10000 - 0x77C63000     C:\WINDOWS\system32\MSVCRT.dll
> 0x76390000 - 0x763AC000     C:\WINDOWS\System32\IMM32.DLL
> 0x629C0000 - 0x629C8000     C:\WINDOWS\System32\LPK.DLL
> 0x72FA0000 - 0x72FFA000     C:\WINDOWS\System32\USP10.dll
> 0x6D330000 - 0x6D445000     C:\Program
> Files\Java\j2re1.4.0\bin\client\jvm.dll
> 0x76B40000 - 0x76B6C000     C:\WINDOWS\System32\WINMM.dll
> 0x5CD70000 - 0x5CD77000     C:\WINDOWS\System32\serwvdrv.dll
> 0x5B0A0000 - 0x5B0A7000     C:\WINDOWS\System32\umdmxfrm.dll
> 0x6D1D0000 - 0x6D1D7000     C:\Program
> Files\Java\j2re1.4.0\bin\hpi.dll
> 0x6D300000 - 0x6D30D000     C:\Program
> Files\Java\j2re1.4.0\bin\verify.dll
> 0x6D210000 - 0x6D228000     C:\Program
> Files\Java\j2re1.4.0\bin\java.dll
> 0x6D320000 - 0x6D32D000     C:\Program
> Files\Java\j2re1.4.0\bin\zip.dll
> 0x6D260000 - 0x6D27C000     C:\Program
> Files\Java\j2re1.4.0\bin\jdwp.dll
> 0x6D170000 - 0x6D175000     C:\Program
> Files\Java\j2re1.4.0\bin\dt_socket.dll
> 0x71AB0000 - 0x71AC5000     C:\WINDOWS\System32\ws2_32.dll
> 0x71AA0000 - 0x71AA8000     C:\WINDOWS\System32\WS2HELP.dll
> 0x71A50000 - 0x71A8B000     C:\WINDOWS\System32\mswsock.dll
> 0x76F20000 - 0x76F45000     C:\WINDOWS\System32\DNSAPI.dll
> 0x76FB0000 - 0x76FB7000     C:\WINDOWS\System32\winrnr.dll
> 0x76F60000 - 0x76F8C000     C:\WINDOWS\system32\WLDAP32.dll
> 0x76FC0000 - 0x76FC5000     C:\WINDOWS\System32\rasadhlp.dll
> 0x71A90000 - 0x71A98000     C:\WINDOWS\System32\wshtcpip.dll
> 0x10000000 - 0x108D1000     C:\Swarm-2.1.1\bin\javaswarm.dll
> 0x61000000 - 0x6109F000     c:\swarm-2.1.1\bin\cygwin1.dll
> 0x60540000 - 0x605AA000     c:\swarm-2.1.1\bin\BLT24.dll
> 0x66000000 - 0x66161000     c:\swarm-2.1.1\bin\cygtcl80.dll
> 0x66300000 - 0x664EF000     c:\swarm-2.1.1\bin\cygtk80.dll
> 0x763B0000 - 0x763F5000     C:\WINDOWS\system32\COMDLG32.DLL
> 0x70A70000 - 0x70AD4000     C:\WINDOWS\system32\SHLWAPI.dll
> 0x77340000 - 0x773CB000     C:\WINDOWS\system32\COMCTL32.dll
> 0x773D0000 - 0x77BC2000     C:\WINDOWS\system32\SHELL32.dll
> 0x71950000 - 0x71A34000
> C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df
> _6.0.10.0_x-ww_f7fb5805\comctl32.dll
> 0x71C20000 - 0x71C6E000     C:\WINDOWS\System32\netapi32.dll
> 0x5AD70000 - 0x5ADA4000     C:\WINDOWS\System32\uxtheme.dll
> 0x74720000 - 0x74764000     C:\WINDOWS\System32\MSCTF.dll
> 0x0F010000 - 0x0F039000     C:\Program
> Files\Scansoft\OmniPagePro11.0\ophook32.dll
> 0x771B0000 - 0x772D1000     C:\WINDOWS\system32\ole32.dll
> 0x77120000 - 0x771AB000     C:\WINDOWS\system32\OLEAUT32.dll
> 0x77C00000 - 0x77C07000     C:\WINDOWS\system32\VERSION.dll
> 0x0F170000 - 0x0F19B000     C:\WINDOWS\System32\msctfime.ime
> 0x746F0000 - 0x74716000     C:\WINDOWS\System32\Msimtf.dll
> 0x61210000 - 0x6121F000     C:\Program Files\Microsoft
> Hardware\Mouse\POINT32.dll
> 0x61220000 - 0x61232000     C:\Program Files\Microsoft
> Hardware\Mouse\MSH_ZWF.dll
> 0x605D0000 - 0x605D8000     C:\WINDOWS\System32\mslbui.dll
> 0x76C90000 - 0x76CB2000     C:\WINDOWS\system32\imagehlp.dll
> 0x6D510000 - 0x6D58D000     C:\WINDOWS\system32\DBGHELP.dll
> 0x76BF0000 - 0x76BFB000     C:\WINDOWS\System32\PSAPI.DLL
>
> Local Time = Fri May 02 14:53:46 2003
> Elapsed Time = 2
> #
> # The exception above was detected in native code outside the VM
> #
> # Java VM: Java HotSpot(TM) Client VM (1.4.0_01-b03 mixed mode)
> #
> # An error report file has been saved as hs_err_pid2368.log.
> # Please refer to the file for further information.
> #
>
>
> ****************
> Another exception has been detected while we were handling last error.
> Dumping information about last error:
> ERROR REPORT FILE = hs_err_pid2368.log
> PC                = 0x6106DDA7
> SIGNAL            = -1073741819
> FUNCTION NAME     = strncmp
> OFFSET            = 0x67
> LIBRARY NAME      = c:\swarm-2.1.1\bin\cygwin1.dll
> Please check ERROR REPORT FILE for further information, if there is any.
> Good bye.
>
>
> _______________________________________________
> Support mailing list
> address@hidden
>
http://www.swarm.org/mailman/listinfo/support


reply via email to

[Prev in Thread] Current Thread [Next in Thread]