Crash on launch OSX

I hope this is the right place. I just purchased XOJO (2014.1.0.0) but I get a crash on launch. I’ve sent the bug reports to Apple. System config: OSX 10.9.2 - 2.7GHz Corei5, 12GB 1333DDR3 Any advice?

Copy & paste the crash report here would you ?

Actually, crash reports are too big for the forum. Ian, could you put it on something like pastebin? or create a case in Feedback?

You can at least post the part of the crash log where it says “Thread xxx crashed”.

Many thanks folks. I’ll do what you have suggested. The crash report includes:

Crashed Thread: 8 com.apple.appkit-heartbeat

Could it have something to do with the type of Ram?

That is a bit thin. Show us the complete paragraph from where it says “thread xxx crashed” until the next “thread xxx + 1”. In this paragraph you will see the call chain going usually from your code to Xojo internal stuff. This is the interesting line.

Hope this helps:

Crashed Thread: 5 com.apple.appkit-heartbeat

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000005ab59e54

VM Regions Near 0x5ab59e54:
MALLOC_LARGE 000000000b81a000-000000000bef2000 [ 7008K] rw-/rwx SM=PRV
–>
__TEXT 000000008fe71000-000000008fea4000 [ 204K] r-x/rwx SM=COW /usr/lib/dyld

Thread 0:: Dispatch queue: com.apple.main-thread

This looks relevant:

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000005ab59e54

VM Regions Near 0x5ab59e54:
MALLOC_LARGE 000000000b81a000-000000000bef2000 [ 7008K] rw-/rwx SM=PRV
–>
__TEXT 000000008fe71000-000000008fea4000 [ 204K] r-x/rwx SM=COW /usr/lib/dyld

Thread 0:: Dispatch queue: com.apple.main-thread
0 IDEUtils.xojo_plugin_0.dylib 0x04de8020 0x4dad000 + 241696
1 IDEUtils.xojo_plugin_0.dylib 0x04dbee5f 0x4dad000 + 73311
2 IDEUtils.xojo_plugin_0.dylib 0x04db3d55 0x4dad000 + 27989
3 IDEUtils.xojo_plugin_0.dylib 0x04db3bf2 0x4dad000 + 27634
4 libsystem_platform.dylib 0x99b18deb _sigtramp + 43
5 ??? 0xffffffff 0 + 4294967295
6 com.apple.CoreFoundation 0x97e6a9fe __CFStringCreateImmutableFunnel3 + 2654
7 com.apple.CoreFoundation 0x97e8372a CFStringCreateWithSubstring + 458
8 com.xojo.XojoFramework 0x0323042c 0x31b9000 + 488492
9 com.xojo.XojoFramework 0x03230526 0x31b9000 + 488742
10 com.xojo.XojoFramework 0x032178dc StringFormat + 60
11 com.xojo.xojo 0x002b73d2 REALbasic.Format%s%f8s + 81
12 com.xojo.xojo 0x00646ebe RBProject.ReadRBBFItem%%ooo<RBBF.Context>i4 + 8417
13 com.xojo.xojo 0x00644c64 RBProject.ReadDataFromRBBF%%ooo<RBBF.Context>i4 + 624
14 com.xojo.xojo 0x009670c3 RBBF.ReadBlock%b%oo<RBBF.Context>i4i4i4i4i4 + 543
15 com.xojo.xojo 0x009693a6 RBBF.ReadFile%b%ooo&s + 3561
16 com.xojo.xojo 0x00870a33 Document.LoadFromMemory%b%oobo + 531
17 com.xojo.xojo 0x01502d26 RBLibrary.LockAndLoad%o%o + 1466
18 com.xojo.xojo 0x014d6019 RBLibrary.LoadIntrinsics + 660
19 com.xojo.xojo 0x014d23f8 RBLibrary.Load%%o + 1436
20 com.xojo.xojo 0x003f1ac8 IDEApp.Event_Open%%o + 15185
21 com.xojo.XojoFramework 0x031dfc2a 0x31b9000 + 158762
22 com.xojo.XojoFramework 0x031de713 0x31b9000 + 153363
23 com.apple.Foundation 0x91330732 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke + 49
24 com.apple.CoreFoundation 0x97f935a4 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 20
25 com.apple.CoreFoundation 0x97e7517b _CFXNotificationPost + 3435
26 com.apple.Foundation 0x9131f21f -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
27 com.apple.AppKit 0x9347d5b5 -[NSApplication _postDidFinishNotification] + 367
28 com.apple.AppKit 0x9347d255 -[NSApplication _sendFinishLaunchingNotification] + 239
29 com.apple.AppKit 0x934752af _DPSNextEvent + 1384
30 com.apple.AppKit 0x934748b0 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 119
31 com.xojo.XojoFramework 0x031e03d1 0x31b9000 + 160721
32 com.xojo.XojoFramework 0x031e0438 0x31b9000 + 160824
33 com.xojo.xojo 0x0000eccb Delegate.Invoke%% + 34
34 com.xojo.xojo 0x000dd427 Application._CallFunctionWithExceptionHandling%%op + 248
35 com.xojo.XojoFramework 0x032d2450 0x31b9000 + 1152080
36 com.xojo.XojoFramework 0x031e0360 0x31b9000 + 160608
37 com.apple.AppKit 0x9346719c -[NSApplication run] + 727
38 com.xojo.XojoFramework 0x032d24d7 0x31b9000 + 1152215
39 com.xojo.XojoFramework 0x032d0b71 RuntimeRun + 49
40 com.xojo.xojo 0x002bd5b6 REALbasic._RuntimeRun + 34
41 com.xojo.xojo 0x0000e4c7 _Main + 257
42 com.xojo.xojo 0x00002848 % main + 36
43 com.xojo.xojo 0x02c5da44 _start + 116
44 com.xojo.xojo 0x02c5d99a start + 43

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x99cb0992 kevent64 + 10
1 libdispatch.dylib 0x958bf8ad _dispatch_mgr_invoke + 238
2 libdispatch.dylib 0x958bf546 _dispatch_mgr_thread + 52

Thread 2:
0 libsystem_kernel.dylib 0x99cb0046 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x96e8cdcf _pthread_wqthread + 372
2 libsystem_pthread.dylib 0x96e90cce start_wqthread + 30

Thread 3:
0 libsystem_kernel.dylib 0x99cb0046 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x96e8cdcf _pthread_wqthread + 372
2 libsystem_pthread.dylib 0x96e90cce start_wqthread + 30

Thread 4:
0 libsystem_kernel.dylib 0x99cb0046 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x96e8cdcf _pthread_wqthread + 372
2 libsystem_pthread.dylib 0x96e90cce start_wqthread + 30

Thread 5 Crashed:: com.apple.appkit-heartbeat
0 com.apple.CoreFoundation 0x97fcaa06 __removeHandler2 + 374
1 com.apple.AppKit 0x936e9a54 -[NSUIHeartBeat _heartBeatThread:] + 2326
2 com.apple.Foundation 0x91388f0e -[NSThread main] + 45
3 com.apple.Foundation 0x91388e66 NSThread__main + 1426
4 libsystem_pthread.dylib 0x96e8b5fb _pthread_body + 144
5 libsystem_pthread.dylib 0x96e8b485 _pthread_start + 130
6 libsystem_pthread.dylib 0x96e90cf2 thread_start + 34

Thread 5 crashed with X86 Thread State (32-bit):
eax: 0x574ee060 ebx: 0x03786220 ecx: 0xb0218ce8 edx: 0xffffffff
edi: 0xb0218ce8 esi: 0x0366bde0 ebp: 0xb0218c48 esp: 0xb0218c20
ss: 0x00000023 efl: 0x00010a07 eip: 0x97fcaa06 cs: 0x0000001b
ds: 0x00000023 es: 0x00000023 fs: 0x00000023 gs: 0x0000000f
cr2: 0x5ab59e54

Logical CPU: 1
Error Code: 0x00000004
Trap Number: 14

Ah, this looks good. The bad things seem to happen here:

7 com.apple.CoreFoundation 0x97e8372a CFStringCreateWithSubstring + 458
8 com.xojo.XojoFramework 0x0323042c 0x31b9000 + 488492
9 com.xojo.XojoFramework 0x03230526 0x31b9000 + 488742
10 com.xojo.XojoFramework 0x032178dc StringFormat + 60
11 com.xojo.xojo 0x002b73d2 REALbasic.Format%s%f8s + 81
12 com.xojo.xojo 0x00646ebe RBProject.ReadRBBFItem%%ooo<RBBF.Context>i4 + 8417
13 com.xojo.xojo 0x00644c64 RBProject.ReadDataFromRBBF%%ooo<RBBF.Context>i4 + 624
14 com.xojo.xojo 0x009670c3 RBBF.ReadBlock%b%oo<RBBF.Context>i4i4i4i4i4 + 543
15 com.xojo.xojo 0x009693a6 RBBF.ReadFile%b%ooo&s + 3561
16 com.xojo.xojo 0x00870a33 Document.LoadFromMemory%b%oobo + 531

Some file is loaded and Xojo barfs when trying to format a string.

Can you de-install everything including plist files or try with another computer?

As mentioned before, please put the entire crash report on something like pastebin or file a bug report in Feedback with it attached.

As reported in tech/bug support, I downloaded the Feedback app but it, too, crashed on launch. I filed a ticket with the full crash report but I’ve now put it in Pastebin at http://pastebin.com/wf82jHGk

Many thanks.

It’s 11.14 pm here in Australia and my wife has just come home. I’ll have to uninstall in the a.m.

In System Preferences’ Language & Region pane, what is your short time format set to? Here’s what mine looks like:

Thanks everyone. I really appreciate it. This morning I have just deleted Zojo with AppCleaner so I’m pretty confident it got all the files. I tried to re-launch Feedback but it too crashed. The report is at http://pastebin.com/hSaKycCh

Unfortunately, XOJO crashes at launch on clean re-install.

My short time format is set as below … these are the system defaults for Australia.

A bit further along. Right then, following Beatrix’ advice, I installed on my son’s computer and it worked fine. His machine is running:

OSX 10.7.5 with the 2.16 GHZ processor and 3GB of 667Mhz DDR2 SDRAM - works fine

OSX 10.9.2 - 2.7GHz Corei5, 12GB 1333DDR3 is the config on my machine that crashes

[quote=79110:@Ian Dalkin]A bit further along. Right then, following Beatrix’ advice, I installed on my son’s computer and it worked fine. His machine is running:

OSX 10.7.5 with the 2.16 GHZ processor and 3GB of 667Mhz DDR2 SDRAM - works fine

OSX 10.9.2 - 2.7GHz Corei5, 12GB 1333DDR3 is the config on my machine that crashes[/quote]

If you set your localization settings on the crashing machine to English, does it still crash?

Well what do you know, I followed Joe’s advice and it worked! Thank you so much. There was/is only one language option ie. English but I went through the process of re-selecting it. The only thing I noticed was that the ‘First day of week’ option was set to Monday. So I re-selected Australia from the Oceania region and re-selected the Gregorian calendar. This changed the ‘First day of the week’ to Sunday. After doing this, Xojo ran beautifully. To test it, I re-selected the ‘First day of the week’ to Monday again and Xojo still runs (as does Feedback). So again, many thanks to those who spent time on this. For interest’s sake, I wouldn’t mind finding out what may have been the culprit so I can understand more.

That makes two of us. I haven’t been able to find any combination of settings that cause that code to crash, though the code certainly have some more sanity checks in it to prevent such crashes.