Sys.reboot crashing on iOS with IAP extension

Hello,
Using Defold 1.2.186
iOS 14.6

When calling sys.reboot I get a crash

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, <RBSTerminateContext| domain:10 code:0x8BADF00D explanation:[application<com.test.test>:24379] failed to terminate gracefully after 10.0s | ProcessVisibility: Unknown | ProcessState: Running | WatchdogEvent: process-exit | WatchdogVisibility: Background | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 4.780 (user 4.780, system 0.000), 21% CPU", | "Elapsed application CPU time (seconds): 0.140, 1% CPU" | ) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread:  0

Thread 0 name:  engine_main  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib        	0x00000001d4059b54 0x1d4032000 + 162644
1   libsystem_c.dylib             	0x00000001b0ed0ad4 0x1b0e60000 + 461524
2   libsystem_c.dylib             	0x00000001b0ed09ac 0x1b0e60000 + 461228

Anyone has a similar issue?

After some investigation, it appears the app crashes when I have this extension installed:

dependencies#5 = https://github.com/defold/extension-iap/archive/refs/tags/3.1.1.zip

What could explain this behaviour? How could I prevent it?

I submitted a PR with the fix.

2 Likes

Thanks! Merged!