another_commander wrote:Richard-H wrote:...because i compile oolite my self and nobody exept cmr Walch my first suspect was my self because there were no other reports
[snip]
so witch setting i have to chance to find out witch script is running so there will be more info to solve this
If you are compiling the game yourself, can you please run it through gdb? If you do and this situation happens, it should hit the assert at line 409 of OOJavaScriptEngine.m and stop, at which point you can give us a backtrace by executing the command
bt in gdb and posting here the output.
This error is expected to occur only on Mac and Linux builds, because the Windows version of the SpiderMonkey library is built without having JS_THREADSAFE defined.
Well here is my try
the trunk version is 4603
I'm not so good at using gdb if something i did below is not correct let me know
[richard ~]$ gdb /home/richard/src/source/oolite/trunk/oolite.app/oolite.dbg
GNU gdb (GDB) 7.1
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux".
For bug reporting instructions, please see:
<
http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/home/richard/src/source/oolite/trunk/oolite.app/oolite.dbg...done.
(gdb) list OOJavaScriptEngine.m:409
404
405 - (void) reset
406 {
407 NSAssert(gOOJSMainThreadContext != NULL, @"Can't reset
JavaScript engine at this point.");
408 #if JS_THREADSAFE
409 NSAssert(!JS_IsInRequest(gOOJSMainThreadContext), @"Can't
reset JavaScript engine while running JavaScript.");
410 #endif
411
412 JSContext *context = OOJSAcquireContext();
413 [[NSNotificationCenter defaultCenter]
postNotificationName:kOOJavaScriptEngineWillResetNotification object:self];
(gdb) break NSInternalInconsistencyException
Breakpoint 1 at 0x7ffff6ef1048
(gdb) run
Starting program:
/home/richard/src/source/oolite/trunk/oolite.app/oolite.dbg
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffef7c5710 (LWP 22337)]
[New Thread 0x7fffee9b2710 (LWP 22338)]
[New Thread 0x7fffed034710 (LWP 22339)]
[New Thread 0x7fffec833710 (LWP 22340)]
[New Thread 0x7fffe7aa0710 (LWP 22341)]
[New Thread 0x7fffe729f710 (LWP 22342)]
[New Thread 0x7fffe5e9b710 (LWP 22343)]
[New Thread 0x7fffe569a710 (LWP 22344)]
[New Thread 0x7fffe4e99710 (LWP 22345)]
[New Thread 0x7fffe4698710 (LWP 22346)]
[New Thread 0x7fffe3e97710 (LWP 22347)]
[New Thread 0x7fffe3696710 (LWP 22348)]
[New Thread 0x7fffe2e95710 (LWP 22349)]
[New Thread 0x7fffe2694710 (LWP 22350)]
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5567fb5 in objc_msg_lookup () from /usr/X11R6/lib64/libobjc.so.2
(gdb) bt
#0 0x00007ffff5567fb5 in objc_msg_lookup () from
/usr/X11R6/lib64/libobjc.so.2
#1 0x00007ffff6b5c09c in ?? () from /usr/lib/libgnustep-base.so.1.20
#2 0x00007ffff6b5ba9c in ?? () from /usr/lib/libgnustep-base.so.1.20
#3 0x00007ffff6b5bcea in ?? () from /usr/lib/libgnustep-base.so.1.20
#4 0x00007ffff6afb065 in ?? () from /usr/lib/libgnustep-base.so.1.20
#5 0x00000000005812d4 in -[OOJavaScriptEngine reset] (self=0x7fffeb13a270,
_cmd=0xd725f0) at src/Core/Scripting/OOJavaScriptEngine.m:409
#6 0x000000000044bec8 in -[PlayerEntity setUp] (self=0x7fffeb241ee0,
_cmd=0xd87990) at src/Core/Entities/PlayerEntity.m:1097
#7 0x00000000004a3348 in -[PlayerEntity(LoadSave) loadPlayerFromFile:] (
self=0x7fffeb241ee0, _cmd=0xe34f80, fileToOpen=0x1371700)
at src/Core/Entities/PlayerEntityLoadSave.m:465
#8 0x0000000000611370 in -[GameController loadPlayerIfRequired] (
self=0x7fffe80ce8d0, _cmd=0xe51b40) at src/Core/GameController.m:277
#9 0x000000000063bd74 in -[Universe handleGameOver] (self=0x7fffe81c6660,
_cmd=0xd72fd0) at src/Core/Universe.m:2194
#10 0x0000000000453bf7 in -[PlayerEntity performDeadUpdates:] (
self=0x7fffeb241ee0, _cmd=0xd72a20, delta_t=0.013387978076934814)
at src/Core/Entities/PlayerEntity.m:2497
#11 0x000000000044f139 in -[PlayerEntity update:] (self=0x7fffeb241ee0,
_cmd=0xe526a0, delta_t=0.013387978076934814)
at src/Core/Entities/PlayerEntity.m:1603
#12 0x0000000000649b35 in -[Universe update:] (self=0x7fffe81c6660,
---Type <return> to continue, or q <return> to quit---
_cmd=0xe34fc0, inDeltaT=0.013387978076934814) at
src/Core/Universe.m:5182
#13 0x00000000006116a1 in -[GameController doPerformGameTick] (
self=0x7fffe80ce8d0, _cmd=0xe34fb0) at src/Core/GameController.m:342
#14 0x0000000000611582 in -[GameController performGameTick:] (
self=0x7fffe80ce8d0, _cmd=0xe34ff0, sender=0x7fffc413b500)
at src/Core/GameController.m:321
#15 0x00007ffff6c02dac in ?? () from /usr/lib/libgnustep-base.so.1.20
#16 0x00007ffff6bd90e0 in ?? () from /usr/lib/libgnustep-base.so.1.20
#17 0x00007ffff6bd50a2 in ?? () from /usr/lib/libgnustep-base.so.1.20
#18 0x00007ffff6bd5cc5 in ?? () from /usr/lib/libgnustep-base.so.1.20
#19 0x00000000006112dc in -[GameController applicationDidFinishLaunching:] (
self=0x7fffe80ce8d0, _cmd=0xe37010, notification=0x0)
at src/Core/GameController.m:267
#20 0x0000000000615727 in main (argc=1, argv=0x7fffffffd788)
at src/SDL/main.m:119
(gdb)
richard