Crashes with 1.72 on mac

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Post by Eric Walch »

Yesterday I had crashes similar to the previous. In the code I use the ships mass. But when I used player.ship.target.mass in the console, Oolite crashed. Than I thought: log the value with the script. But when the script had to log the value this.ship.mass Oolite crashed. It looks like the phenomena with distanceTo. It crashed in the console and in the log function but not at other places in the code. When I removed the console is still crashed on logging.

The logfiles were all different. Only one crash left a long backtrace:

Code: Select all

Host Name:      Eric-Walchs-Computer
Date/Time:      2008-11-14 22:53:26.329 +0100
OS Version:     10.4.11 (Build 8S165)
Report Version: 4

Command: Oolite
Path:    /Applications/Games/Oolite/Oolite1.72.app/Contents/MacOS/Oolite
Parent:  WindowServer [64]

Version: Oolite version 1.72 (1.72)

PID:    442
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x05b05000

Thread 0 Crashed:
0   org.aegidian.oolite            	0x0012d5a4 mult + 120 (crt.c:355)
1   org.aegidian.oolite            	0x0012e1b8 pow5mult + 256 (crt.c:355)
2   org.aegidian.oolite            	0x00130184 JS_dtostr + 2948 (crt.c:355)
3   org.aegidian.oolite            	0x0015c208 js_NumberToString + 276 (crt.c:355)
4   org.aegidian.oolite            	0x0015d6d4 num_toString + 388 (crt.c:355)
5   org.aegidian.oolite            	0x001269b0 js_Invoke + 2080 (crt.c:355)
6   org.aegidian.oolite            	0x00120bf8 js_Interpret + 28376 (crt.c:355)
7   org.aegidian.oolite            	0x001269f4 js_Invoke + 2148 (crt.c:355)
8   org.aegidian.oolite            	0x00126e10 js_InternalInvoke + 204 (crt.c:355)
9   org.aegidian.oolite            	0x0017f15c JS_CallFunction + 48 (crt.c:355)
10  org.aegidian.oolite            	0x0005cb6c -[OOJSScript doEvent:withArguments:] + 320 (crt.c:355)
11  com.apple.AppKit               	0x93841d44 -[NSApplication sendAction:to:from:] + 108
12  com.apple.AppKit               	0x93841c78 -[NSControl sendAction:to:] + 96
13  com.apple.AppKit               	0x9387f7d8 -[NSTextField textDidEndEditing:] + 632
14  com.apple.Foundation           	0x92be5a04 _nsnote_callback + 180
15  com.apple.CoreFoundation       	0x90805eb4 __CFXNotificationPost + 368
16  com.apple.CoreFoundation       	0x907fdf2c _CFXNotificationPostNotification + 684
17  com.apple.Foundation           	0x92bcfe0c -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
18  com.apple.AppKit               	0x938d1038 -[NSTextView(NSPrivate) _giveUpFirstResponder:] + 512
19  com.apple.AppKit               	0x938d0e24 -[NSTextView(NSKeyBindingCommands) insertNewline:] + 512
20  com.apple.AppKit               	0x938d0884 -[NSTextView doCommandBySelector:] + 212
21  com.apple.AppKit               	0x93883ebc -[NSKeyBindingManager(NSKeyBindingManager_MultiClients) interpretEventAsCommand:forClient:] + 1700
22  com.apple.AppKit               	0x938825b8 -[NSTSMInputContext interpretKeyEvents:] + 1104
23  com.apple.AppKit               	0x93881998 -[NSView interpretKeyEvents:] + 64
24  com.apple.AppKit               	0x938817ec -[NSTextView keyDown:] + 756
25  com.apple.AppKit               	0x937fd080 -[NSWindow sendEvent:] + 6424
26  com.apple.AppKit               	0x937a59b4 -[NSApplication sendEvent:] + 4172
27  org.aegidian.oolite            	0x0003a914 -[OoliteApp sendEvent:] + 188 (crt.c:355)
28  com.apple.AppKit               	0x9379cdf0 -[NSApplication run] + 508
29  com.apple.AppKit               	0x9388d974 NSApplicationMain + 452
30  org.aegidian.oolite            	0x00002474 _start + 340 (crt.c:272)
31  org.aegidian.oolite            	0x0000231c start + 60
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Bah. I’ve only managed to recreate this once, and then I wasn’t running under the debugger. D’oh.
Post Reply