1 decade ago by Sylvain
Hi all,
I have developed a game with Construct 2 and Ejecta. I'm using Ejecta C2 plugin to deal with game center authentication, leaderboards and achievements.
Sometimes my game crashes when authentication callback is called.
Here is the device log:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000
Triggered by Thread: 0
Thread 0 Crashed:
0 ??? 0000000000 0 0
1 yapfree 0x00073754 -[EJJavaScriptView invokeCallback:thisObject:argc:argv:] (EJJavaScriptView.m:278)
2 yapfree 0x0002fc8c __52-[EJBindingGameCenter _func_authenticate:argc:argv:]_block_invoke (EJBindingGameCenter.m:67)
3 libdispatch.dylib 0x3ad1a832 _dispatch_call_block_and_release 10
4 libdispatch.dylib 0x3ad1a81e _dispatch_client_callout 22
5 libdispatch.dylib 0x3ad2149e _dispatch_main_queue_callback_4CF$VARIANT$mp 278
6 CoreFoundation 0x2ff868f0 _CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE_ 8
7 CoreFoundation 0x2ff851c4 __CFRunLoopRun 1300
8 CoreFoundation 0x2feeff4e CFRunLoopRunSpecific 522
9 CoreFoundation 0x2feefd32 CFRunLoopRunInMode 106
10 GraphicsServices 0x34e48662 GSEventRunModal 138
11 UIKit 0x3283b16c UIApplicationMain 1136
12 yapfree 0x00035a28 main (main.m:5)
13 libdyld.dylib 0x3ad3fab6 start 2
Does anyone have the same issue? Any clue? It seems this happens when the app has been in background for a long time: perhaps a garbage collector issue? Note that I'm calling "Ejecta Soft Authenticate" when "System On Start Layout" is triggered and that I'm calling "System Restart Layout" when "Browser / On Resumed" is triggered (perhaps my error is here... but it is necessary for the Android version to deal with device orientation issues...)
Thanks in advance for any help!
Sylvain
I have developed a game with Construct 2 and Ejecta. I'm using Ejecta C2 plugin to deal with game center authentication, leaderboards and achievements.
Sometimes my game crashes when authentication callback is called.
Here is the device log:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000
Triggered by Thread: 0
Thread 0 Crashed:
0 ??? 0000000000 0 0
1 yapfree 0x00073754 -[EJJavaScriptView invokeCallback:thisObject:argc:argv:] (EJJavaScriptView.m:278)
2 yapfree 0x0002fc8c __52-[EJBindingGameCenter _func_authenticate:argc:argv:]_block_invoke (EJBindingGameCenter.m:67)
3 libdispatch.dylib 0x3ad1a832 _dispatch_call_block_and_release 10
4 libdispatch.dylib 0x3ad1a81e _dispatch_client_callout 22
5 libdispatch.dylib 0x3ad2149e _dispatch_main_queue_callback_4CF$VARIANT$mp 278
6 CoreFoundation 0x2ff868f0 _CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE_ 8
7 CoreFoundation 0x2ff851c4 __CFRunLoopRun 1300
8 CoreFoundation 0x2feeff4e CFRunLoopRunSpecific 522
9 CoreFoundation 0x2feefd32 CFRunLoopRunInMode 106
10 GraphicsServices 0x34e48662 GSEventRunModal 138
11 UIKit 0x3283b16c UIApplicationMain 1136
12 yapfree 0x00035a28 main (main.m:5)
13 libdyld.dylib 0x3ad3fab6 start 2
Does anyone have the same issue? Any clue? It seems this happens when the app has been in background for a long time: perhaps a garbage collector issue? Note that I'm calling "Ejecta Soft Authenticate" when "System On Start Layout" is triggered and that I'm calling "System Restart Layout" when "Browser / On Resumed" is triggered (perhaps my error is here... but it is necessary for the Android version to deal with device orientation issues...)
Thanks in advance for any help!
Sylvain