What happened:
The oxp sets up a buoy with a repeating timer:
Code: Select all
this.playerScanTimer = new Timer(this, this.rangeCheck, 0, 1);
Code: Select all
Oolite [script.javaScript.exception.206] OOJavaScriptEngine.m:136: ***** JavaScript exception: Error: Vector3D.distanceTo: Could not construct vector from parameters (undefined) -- expected Vector, Entity or array of three numbers.
Oolite [script.javaScript.exception.206] OOJavaScriptEngine.m:147: /Applications/Games/Oolite/AddOns/Lave Academy 1.00.oxp/Scripts/laveAcademy_pilotCircuitBuoy.js, line 29.
Code: Select all
this.buoyDistance = player.ship.position.distanceTo(this.ship.position);
This leaded to an Oolite crash with crashlog
Code: Select all
Thread 0 Crashed:
0 libobjc.A.dylib 0x90a4aca0 _objc_trap + 0
1 libobjc.A.dylib 0x90a4ac14 _objc_error + 76
2 libobjc.A.dylib 0x90a4aba4 __objc_error + 64
3 org.aegidian.oolite 0x000f1990 -[OODebugMonitor(Private) jsEngine:context:error:stackSkip:withMessage:] + 260 (crt.c:355)
4 org.aegidian.oolite 0x00059874 ReportJSError + 588 (crt.c:355)
5 org.aegidian.oolite 0x001382bc js_ReportUncaughtException + 540 (crt.c:355)
6 org.aegidian.oolite 0x00180934 JS_CallFunction + 96 (crt.c:355)
7 org.aegidian.oolite 0x000599cc -[OOJavaScriptEngine callJSFunction:forObject:argc:argv:result:] + 80 (crt.c:355)
8 org.aegidian.oolite 0x000edd0c -[OOJSTimer timerFired] + 112 (crt.c:355)
9 org.aegidian.oolite 0x000eca48 +[OOScriptTimer updateTimers] + 168 (crt.c:355)
10 org.aegidian.oolite 0x00075a24 -[PlayerEntity update:] + 116 (crt.c:355)
11 org.aegidian.oolite 0x000386f0 -[Universe update:] + 1968 (crt.c:355)
12 org.aegidian.oolite 0x0000eddc -[GameController doPerformGameTick] + 136 (crt.c:355)
13 com.apple.Foundation 0x92be8e88 __NSFireTimer + 116
14 com.apple.CoreFoundation 0x907f2390 __CFRunLoopDoTimer + 184
15 com.apple.CoreFoundation 0x907ded08 __CFRunLoopRun + 1680
16 com.apple.CoreFoundation 0x907de2bc CFRunLoopRunSpecific + 268
17 com.apple.HIToolbox 0x9329db20 RunCurrentEventLoopInMode + 264
18 com.apple.HIToolbox 0x9329d12c ReceiveNextEventCommon + 244
19 com.apple.HIToolbox 0x9329d020 BlockUntilNextEventMatchingListInMode + 96
20 com.apple.AppKit 0x937a2bc4 _DPSNextEvent + 384
21 com.apple.AppKit 0x937a2888 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
22 com.apple.AppKit 0x9379edcc -[NSApplication run] + 472
23 com.apple.AppKit 0x9388f974 NSApplicationMain + 452
24 org.aegidian.oolite 0x000025f4 _start + 340 (crt.c:272)
25 org.aegidian.oolite 0x0000249c start + 60