Cannot start Simulator (crash) suddenly today (dyld: lazy symbol binding failed)

Whenever I try to run the Simulator today, it crashes with following logs:

2014-03-01 10:19:55.293 Corona Simulator[5826:507] Copyright (C) 2009-2014 C o r o n a L a b s I n c . 2014-03-01 10:19:55.294 Corona Simulator[5826:507] Version: 3.0.0 2014-03-01 10:19:55.294 Corona Simulator[5826:507] Build: 2014.2187 dyld: lazy symbol binding failed: Symbol not found: \_gliCreateContextWithShared Referenced from: /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine Expected in: flat namespace dyld: Symbol not found: \_gliCreateContextWithShared Referenced from: /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine Expected in: flat namespace Program completed in 6.03 seconds (pid: 5826).

I was using build 2185, so I upgraded to 2187, but it still crashes.

I am pretty sure it was ok two days ago, so it should not be related to the build number. 

Something wrong at the server side?

How to fix this?

I just downloaded 2187 and I don’t see the errors.  When you run the sim, other than fetching plugins, you don’t hit servers until you build.  The error looks like an issue with the OpenGL framework.

What happens if you drop back to 2185?

Rob

Here is the detailed situation:

(1) Two days ago, I was using build 2185, there was no problem at all (and never had seen this problem before either)

(2) Yesterday I didn’t launch Corona at all. I didn’t even do anything to my Mac.

(3) Today when I try to launch Corona to run my app (without any modification), it is having this problem.

(4) I upgraded to 2187. same problem.

(5) I saw your post, and then I downgraded to 2179. same problem.

Here is some extra info for the crash report generated by Mac:

Process: Corona Simulator [6036] Path: /Applications/CoronaSDK/Corona Simulator.app/Contents/MacOS/Corona Simulator Identifier: com.coronalabs.Corona\_Simulator Version: 2014.2179 (2014.2179) Code Type: X86-64 (Native) Parent Process: lua [5710] Responsible: bash [5707] User ID: 501 Date/Time: 2014-03-01 12:03:16.464 +0800 OS Version: Mac OS X 10.9.2 (13C64) Report Version: 11 Anonymous UUID: 8BE9EBA9-B4B6-A033-73AE-2730B339E1BA Sleep/Wake UUID: F68012C0-4F96-44EE-87DD-745E29AC6FDB Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC\_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Dyld Error Message: Symbol not found: \_gliCreateContextWithShared Referenced from: /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine Expected in: flat namespace Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 dyld 0x00007fff6c75909d dyld\_fatal\_error + 1 1 dyld 0x00007fff6c75bdf6 dyld::fastBindLazySymbol(ImageLoader\*\*, unsigned long) + 171 2 libdyld.dylib 0x00007fff8f2ec2dd dyld\_stub\_binder\_ + 13 3 ??? 0x000000011682f0b8 0 + 4672647352 4 com.coronalabs.Corona\_Simulator 0x000000010fbc985e 0x10fbb5000 + 84062 5 libdispatch.dylib 0x00007fff913f42ad \_dispatch\_client\_callout + 8 6 libdispatch.dylib 0x00007fff913f421c dispatch\_once\_f + 79 7 com.coronalabs.Corona\_Simulator 0x000000010fbc9715 0x10fbb5000 + 83733 8 com.coronalabs.Corona\_Simulator 0x000000010fbca090 0x10fbb5000 + 86160 9 com.coronalabs.Corona\_Simulator 0x000000010fbc9bb0 0x10fbb5000 + 84912 10 com.coronalabs.Corona\_Simulator 0x000000010fbd5aa2 0x10fbb5000 + 133794 11 com.coronalabs.Corona\_Simulator 0x000000010fbbeaa1 0x10fbb5000 + 39585 12 com.coronalabs.Corona\_Simulator 0x000000010fbbceaa 0x10fbb5000 + 32426 13 com.coronalabs.Corona\_Simulator 0x000000010fbbb908 0x10fbb5000 + 26888 14 com.coronalabs.Corona\_Simulator 0x000000010fbba25c 0x10fbb5000 + 21084 15 com.apple.CoreFoundation 0x00007fff92c05e0c \_\_CFNOTIFICATIONCENTER\_IS\_CALLING\_OUT\_TO\_AN\_OBSERVER\_\_ + 12 16 com.apple.CoreFoundation 0x00007fff92af9a6d \_CFXNotificationPost + 2893 17 com.apple.Foundation 0x00007fff884d47ba -[NSNotificationCenter postNotificationName:object:userInfo:] + 68 18 com.apple.AppKit 0x00007fff878eecf9 -[NSApplication \_postDidFinishNotification] + 289 19 com.apple.AppKit 0x00007fff878eea2c -[NSApplication \_sendFinishLaunchingNotification] + 195 20 com.apple.AppKit 0x00007fff878eb916 -[NSApplication(NSAppleEventHandling) \_handleAEOpenEvent:] + 570 21 com.apple.AppKit 0x00007fff878eb36b -[NSApplication(NSAppleEventHandling) \_handleCoreEvent:withReplyEvent:] + 242 22 com.apple.Foundation 0x00007fff884f2f0a -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 294 23 com.apple.Foundation 0x00007fff884f2d7d \_NSAppleEventManagerGenericHandler + 106 24 com.apple.AE 0x00007fff92f14e1f aeDispatchAppleEvent(AEDesc const\*, AEDesc\*, unsigned int, unsigned char\*) + 381 25 com.apple.AE 0x00007fff92f14c32 dispatchEventAndSendReply(AEDesc const\*, AEDesc\*) + 31 26 com.apple.AE 0x00007fff92f14b36 aeProcessAppleEvent + 315 27 com.apple.HIToolbox 0x00007fff8c5cb161 AEProcessAppleEvent + 56 28 com.apple.AppKit 0x00007fff878e7246 \_DPSNextEvent + 1026 29 com.apple.AppKit 0x00007fff878e6a2b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122 30 com.apple.AppKit 0x00007fff878dab2c -[NSApplication run] + 553 31 com.apple.AppKit 0x00007fff878c5913 NSApplicationMain + 940 32 com.coronalabs.Corona\_Simulator 0x000000010fbb7624 start + 52 Thread 1: 0 libsystem\_kernel.dylib 0x00007fff8da58e6a \_\_workq\_kernreturn + 10 1 libsystem\_pthread.dylib 0x00007fff913aef08 \_pthread\_wqthread + 330 2 libsystem\_pthread.dylib 0x00007fff913b1fb9 start\_wqthread + 13 Thread 2:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem\_kernel.dylib 0x00007fff8da59662 kevent64 + 10 1 libdispatch.dylib 0x00007fff913f643d \_dispatch\_mgr\_invoke + 239 2 libdispatch.dylib 0x00007fff913f6152 \_dispatch\_mgr\_thread + 52

The thing is that I didn’t do “anything” to my computer or Corona, and the problem just happens. This is very weird.

Kind of urgent! I can’t use Corona anymore! :frowning:

I retried again to run my app without using the editor (Zerobrane)

It is running fine.

I guess the editor causes this problem. (But I didn’t do anything to the editor either)

Anyway, I think maybe it’s time for me to move on to sublime instead.

I really liked Zerobrane somehow.

I don’t know much about ZeroBane.  Perhaps they had a silent upgrade?

@joe528, there was indeed an issue with ZeroBrane Studio (v0.40) and using flat namespaces with OSX 10.9.1+. The issue has already been fixed and the fix will be included in the coming release (v0.41). You can get the current version from github, which should fix the issue.

@paulclinger

Thanks for the reply. I will give it a try.

By the way, another thing you might want to look at, a strange problem related to ZeroBrane too… It was discussed here: 

http://forums.coronalabs.com/topic/44238-simulator-gets-stuck-once-a-while-for-5-seconds-right-after-its-launched-since-g2/

@paulclinger

and I don’t know how to use the latest build (the zip from github). I mean what are the steps to compile it or ?

> and I don’t know how to use the latest build (the zip from github). I mean what are the steps to compile it or ?

@joe528, you don’t need to compile it. You can simply unzip that archive into any folder and run ./zbstudio.sh from that folder.

The problem went away after I restarted my Mac. And it’s not happening again after I upgraded to the latest version of Zerobrane from github.

Zerobrane is still my favorite editor.

I really like its light-wight fast response & integrated pretty well with Corona.

I just downloaded 2187 and I don’t see the errors.  When you run the sim, other than fetching plugins, you don’t hit servers until you build.  The error looks like an issue with the OpenGL framework.

What happens if you drop back to 2185?

Rob

Here is the detailed situation:

(1) Two days ago, I was using build 2185, there was no problem at all (and never had seen this problem before either)

(2) Yesterday I didn’t launch Corona at all. I didn’t even do anything to my Mac.

(3) Today when I try to launch Corona to run my app (without any modification), it is having this problem.

(4) I upgraded to 2187. same problem.

(5) I saw your post, and then I downgraded to 2179. same problem.

Here is some extra info for the crash report generated by Mac:

Process: Corona Simulator [6036] Path: /Applications/CoronaSDK/Corona Simulator.app/Contents/MacOS/Corona Simulator Identifier: com.coronalabs.Corona\_Simulator Version: 2014.2179 (2014.2179) Code Type: X86-64 (Native) Parent Process: lua [5710] Responsible: bash [5707] User ID: 501 Date/Time: 2014-03-01 12:03:16.464 +0800 OS Version: Mac OS X 10.9.2 (13C64) Report Version: 11 Anonymous UUID: 8BE9EBA9-B4B6-A033-73AE-2730B339E1BA Sleep/Wake UUID: F68012C0-4F96-44EE-87DD-745E29AC6FDB Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC\_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Dyld Error Message: Symbol not found: \_gliCreateContextWithShared Referenced from: /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine Expected in: flat namespace Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 dyld 0x00007fff6c75909d dyld\_fatal\_error + 1 1 dyld 0x00007fff6c75bdf6 dyld::fastBindLazySymbol(ImageLoader\*\*, unsigned long) + 171 2 libdyld.dylib 0x00007fff8f2ec2dd dyld\_stub\_binder\_ + 13 3 ??? 0x000000011682f0b8 0 + 4672647352 4 com.coronalabs.Corona\_Simulator 0x000000010fbc985e 0x10fbb5000 + 84062 5 libdispatch.dylib 0x00007fff913f42ad \_dispatch\_client\_callout + 8 6 libdispatch.dylib 0x00007fff913f421c dispatch\_once\_f + 79 7 com.coronalabs.Corona\_Simulator 0x000000010fbc9715 0x10fbb5000 + 83733 8 com.coronalabs.Corona\_Simulator 0x000000010fbca090 0x10fbb5000 + 86160 9 com.coronalabs.Corona\_Simulator 0x000000010fbc9bb0 0x10fbb5000 + 84912 10 com.coronalabs.Corona\_Simulator 0x000000010fbd5aa2 0x10fbb5000 + 133794 11 com.coronalabs.Corona\_Simulator 0x000000010fbbeaa1 0x10fbb5000 + 39585 12 com.coronalabs.Corona\_Simulator 0x000000010fbbceaa 0x10fbb5000 + 32426 13 com.coronalabs.Corona\_Simulator 0x000000010fbbb908 0x10fbb5000 + 26888 14 com.coronalabs.Corona\_Simulator 0x000000010fbba25c 0x10fbb5000 + 21084 15 com.apple.CoreFoundation 0x00007fff92c05e0c \_\_CFNOTIFICATIONCENTER\_IS\_CALLING\_OUT\_TO\_AN\_OBSERVER\_\_ + 12 16 com.apple.CoreFoundation 0x00007fff92af9a6d \_CFXNotificationPost + 2893 17 com.apple.Foundation 0x00007fff884d47ba -[NSNotificationCenter postNotificationName:object:userInfo:] + 68 18 com.apple.AppKit 0x00007fff878eecf9 -[NSApplication \_postDidFinishNotification] + 289 19 com.apple.AppKit 0x00007fff878eea2c -[NSApplication \_sendFinishLaunchingNotification] + 195 20 com.apple.AppKit 0x00007fff878eb916 -[NSApplication(NSAppleEventHandling) \_handleAEOpenEvent:] + 570 21 com.apple.AppKit 0x00007fff878eb36b -[NSApplication(NSAppleEventHandling) \_handleCoreEvent:withReplyEvent:] + 242 22 com.apple.Foundation 0x00007fff884f2f0a -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 294 23 com.apple.Foundation 0x00007fff884f2d7d \_NSAppleEventManagerGenericHandler + 106 24 com.apple.AE 0x00007fff92f14e1f aeDispatchAppleEvent(AEDesc const\*, AEDesc\*, unsigned int, unsigned char\*) + 381 25 com.apple.AE 0x00007fff92f14c32 dispatchEventAndSendReply(AEDesc const\*, AEDesc\*) + 31 26 com.apple.AE 0x00007fff92f14b36 aeProcessAppleEvent + 315 27 com.apple.HIToolbox 0x00007fff8c5cb161 AEProcessAppleEvent + 56 28 com.apple.AppKit 0x00007fff878e7246 \_DPSNextEvent + 1026 29 com.apple.AppKit 0x00007fff878e6a2b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122 30 com.apple.AppKit 0x00007fff878dab2c -[NSApplication run] + 553 31 com.apple.AppKit 0x00007fff878c5913 NSApplicationMain + 940 32 com.coronalabs.Corona\_Simulator 0x000000010fbb7624 start + 52 Thread 1: 0 libsystem\_kernel.dylib 0x00007fff8da58e6a \_\_workq\_kernreturn + 10 1 libsystem\_pthread.dylib 0x00007fff913aef08 \_pthread\_wqthread + 330 2 libsystem\_pthread.dylib 0x00007fff913b1fb9 start\_wqthread + 13 Thread 2:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem\_kernel.dylib 0x00007fff8da59662 kevent64 + 10 1 libdispatch.dylib 0x00007fff913f643d \_dispatch\_mgr\_invoke + 239 2 libdispatch.dylib 0x00007fff913f6152 \_dispatch\_mgr\_thread + 52

The thing is that I didn’t do “anything” to my computer or Corona, and the problem just happens. This is very weird.

Kind of urgent! I can’t use Corona anymore! :frowning:

I retried again to run my app without using the editor (Zerobrane)

It is running fine.

I guess the editor causes this problem. (But I didn’t do anything to the editor either)

Anyway, I think maybe it’s time for me to move on to sublime instead.

I really liked Zerobrane somehow.

I don’t know much about ZeroBane.  Perhaps they had a silent upgrade?

@joe528, there was indeed an issue with ZeroBrane Studio (v0.40) and using flat namespaces with OSX 10.9.1+. The issue has already been fixed and the fix will be included in the coming release (v0.41). You can get the current version from github, which should fix the issue.

@paulclinger

Thanks for the reply. I will give it a try.

By the way, another thing you might want to look at, a strange problem related to ZeroBrane too… It was discussed here: 

http://forums.coronalabs.com/topic/44238-simulator-gets-stuck-once-a-while-for-5-seconds-right-after-its-launched-since-g2/

@paulclinger

and I don’t know how to use the latest build (the zip from github). I mean what are the steps to compile it or ?

> and I don’t know how to use the latest build (the zip from github). I mean what are the steps to compile it or ?

@joe528, you don’t need to compile it. You can simply unzip that archive into any folder and run ./zbstudio.sh from that folder.

The problem went away after I restarted my Mac. And it’s not happening again after I upgraded to the latest version of Zerobrane from github.

Zerobrane is still my favorite editor.

I really like its light-wight fast response & integrated pretty well with Corona.