Gamesparks crashes an app after device being locked

Hi, 

Gamesparks crashes my app on  iOS. Issue happens when user locks a device; then Gamesparks no longer connected and stops working
As soon as the game is unhide again and I try to send any request to gamesparks it crashes. 

 

Can anybody confirm it’s a global problem that can not be solved without Gamesparks plugin updates? So I will know there is no any way exept of move from their service

 

Gamesparks support just says they do not support Corona anymore and can’t help. 

 

I have no any issues on Android 

 

Logs I could get:

ошибка 20:28:26.698714 +0300 Incursion Defense nw\_socket\_get\_input\_frames recvmsg(fd 16, 1024 bytes): [57] Socket is not connected стандартное 20:28:26.896144 +0300 Incursion Defense TIC TCP Conn Cancel [7:0x7e2aaf0] ошибка 20:28:26.929448 +0300 Incursion Defense nw\_endpoint\_handler\_add\_write\_request [7.1 52.87.99.127:443 failed socket-flow (satisfied)] cannot accept write requests ошибка 20:28:26.929816 +0300 Incursion Defense tcp\_connection\_write\_eof\_block\_invoke Write close callback received error: [22] Invalid argument стандартное 20:28:26.930396 +0300 Incursion Defense Info/GA/Analytics: Status change: headingToForeground. Will try to resume SDK and start a new session. стандартное 20:28:26.930874 +0300 Incursion Defense Info/GA/Analytics: Starting a new session. стандартное 20:28:27.029247 +0300 Incursion Defense TIC TCP Conn Start [12:0xa068ad0] стандартное 20:28:27.104156 +0300 Incursion Defense TIC TCP Conn Event [12:0xa068ad0]: 1 Err(0) стандартное 20:28:27.104414 +0300 Incursion Defense TIC TCP Conn Connected [12:0xa068ad0]: Err(0) стандартное 20:28:27.104529 +0300 Incursion Defense TIC Enabling TLS [12:0xa068ad0] стандартное 20:28:27.194967 +0300 Incursion Defense TIC TLS Event [12:0xa068ad0]: 2, Pending(0) стандартное 20:28:27.198279 +0300 Incursion Defense TIC TLS Event [12:0xa068ad0]: 11, Pending(0) стандартное 20:28:27.202627 +0300 Incursion Defense TIC TLS Event [12:0xa068ad0]: 12, Pending(0) стандартное 20:28:27.203277 +0300 Incursion Defense TIC TLS Event [12:0xa068ad0]: 14, Pending(0) стандартное 20:28:27.254792 +0300 Incursion Defense TIC TLS Trust Result [12:0xa068ad0]: 0 стандартное 20:28:27.323129 +0300 Incursion Defense TIC TLS Event [12:0xa068ad0]: 20, Pending(0) стандартное 20:28:27.327495 +0300 Incursion Defense TIC TCP Conn Event [12:0xa068ad0]: 8 Err(0) стандартное 20:28:27.327836 +0300 Incursion Defense TIC TLS Handshake Complete [12:0xa068ad0] стандартное 20:28:27.348899 +0300 Incursion Defense Info/GA/Analytics: validateInitRequestResponseCC - 'enabled' field not NSNumber. стандартное 20:28:27.350414 +0300 Incursion Defense Info/GA/Analytics: Add SESSION START event стандартное 20:28:27.351078 +0300 Incursion Defense Info/GA/Analytics: Event added to queue: {"ios\_bundle\_id":"com.booblyc.TowerCardGame","ios\_app\_build":"2019.09.131428","device":"iPad3,6","os\_version":"ios 10.3.4","connection\_type":"wifi","category":"user","platform":"ios","session\_num":28,"ios\_idfv":"5DFD9E1D-92D5-4E15-BA04-AE98A98BE7E9","client\_ts":1568914107,"sdk\_version":"corona 2.2.1","ios\_app\_version":"413","user\_id":"684DBDD5-A523-4CA9-8A47-D249DA6B9351","manufacturer":"apple","build":"","ios\_idfa":"C3C18B1C-1216-465C-9260-6CE5FD8DECE7","session\_id":"463ff800-5017-4ecf-aa36-ec91fe746a12","v":2,"engine\_version":"corona 2019.3520"} стандартное 20:28:27.353964 +0300 Incursion Defense Info/GA/Analytics: Event queue: Sending 1 events. стандартное 20:28:27.355021 +0300 Incursion Defense TIC TCP Conn Start [13:0xa07d070] стандартное 20:28:27.475759 +0300 Incursion Defense TIC TCP Conn Event [13:0xa07d070]: 1 Err(0) стандартное 20:28:27.475947 +0300 Incursion Defense TIC TCP Conn Connected [13:0xa07d070]: Err(0) стандартное 20:28:27.476183 +0300 Incursion Defense TIC Enabling TLS [13:0xa07d070] стандартное 20:28:27.536025 +0300 Incursion Defense TIC TLS Event [13:0xa07d070]: 2, Pending(0) стандартное 20:28:27.537762 +0300 Incursion Defense TIC TLS Event [13:0xa07d070]: 20, Pending(0) стандартное 20:28:27.550498 +0300 Incursion Defense TIC TCP Conn Event [13:0xa07d070]: 8 Err(0) стандартное 20:28:27.551440 +0300 Incursion Defense TIC TLS Handshake Complete [13:0xa07d070] стандартное 20:28:27.849042 +0300 Incursion Defense Info/GA/Analytics: Event queue: 1 events sent. стандартное 20:28:27.851584 +0300 Incursion Defense Info/GA/Analytics: Resuming SDK (starting event queue). стандартное 20:28:28.034833 +0300 Incursion Defense 1306: Starting AURemoteIO(0x17a7b020) output client: 2 ch, 44100 Hz, Float32, non-inter, output HW: 2 ch, 44100 Hz, Float32, non-inter input client: 2 ch, 0 Hz, Float32, non-inter, input HW: 2 ch, 0 Hz, Float32, non-inter стандартное 20:28:28.550758 +0300 Incursion Defense Stream client bypassing proxies on TCP Conn [14:0xa1805b0] стандартное 20:28:28.555861 +0300 Incursion Defense TCP Conn 0xa1805b0 started стандартное 20:28:28.582998 +0300 Incursion Defense GASignalHandler entered стандартное 20:28:28.593912 +0300 Incursion Defense Info/GA/Analytics: Add ERROR event: {severity:critical, message:PComp version 2} стандартное 20:28:28.595546 +0300 Incursion Defense Info/GA/Analytics: Event added to queue: {"manufacturer":"apple","severity":"critical","device":"iPad3,6","user\_id":"684DBDD5-A523-4CA9-8A47-D249DA6B9351","ios\_idfa":"C3C18B1C-1216-465C-9260-6CE5FD8DECE7","engine\_version":"corona 2019.3520","category":"error","connection\_type":"wifi","v":2,"message":"PComp version 2019.09.131428 build (null)\nUncaught Signal\nsi\_signo 13\nsi\_code 0\nsi\_value 0\nsi\_errno 0\nsi\_addr 0x1A9DDD4C\nsi\_status 13\nStack trace:n\n 0 - 0 Incursion Defense 0x00cfaaad setGAUncaughtExceptionHandlers + 2560\n 1 - 1 libsystem\_platform.dylib 0x1aaa4259 \_sigtramp + 24\n 2 - 2 Incursion Defense 0x00d7d847 BIO\_sock\_non\_fatal\_error + 70\n 3 - 3 Incursion Defense 0x00d7c077 BIO\_write + 104\n 4 - 4 Incursion Defense 0x00debecf ssl3\_write\_pending + 156\n 5 - 5 Incursion Defense 0x00debd59 ssl3\_write\_bytes + 260\n 6 - 6 Incursion Defense \<…\> стандартное 20:28:28.597994 +0300 Incursion Defense TIC TCP Conn Start [15:0xa148fb0] стандартное 20:28:28.606710 +0300 Incursion Defense Info/GA/Analytics: Event queue: Sending 1 events. стандартное 20:28:28.656210 +0300 Incursion Defense TCP Conn 0xa1805b0 event 1. err: 0 стандартное 20:28:28.656567 +0300 Incursion Defense TCP Conn 0xa1805b0 complete. fd: 28, err: 0 стандартное 20:28:28.657616 +0300 Incursion Defense Info/GA/Analytics: Event queue: 1 events sent.

PComp version 2019.08.201917 build (null) Uncaught Signal si\_signo 13 si\_code 0 si\_value 0 si\_errno 0 si\_addr 0x1D05BD920 si\_status 13 Stack trace:n 0 - 0 Incursion Defense 0x0000000101edf718 setGAUncaughtExceptionHandlers + 1876 1 - 1 libsystem\_platform.dylib 0x00000001d062e9fc \<redacted\> + 56 2 - 2 Incursion Defense 0x0000000101f8556c BIO\_sock\_non\_fatal\_error + 116 3 - 3 Incursion Defense 0x0000000101f82ff4 BIO\_write + 124 4 - 4 Incursion Defense 0x000000010201dea4 ssl3\_write\_pending + 196 5 - 5 Incursion Defense 0x000000010201dcc0 ssl3\_write\_bytes + 308 6 - 6 Incursion Defense 0x0000000101f20c88 luaopen\_ssl\_core + 5404 7 - 7 Incursion Defense 0x0000000101bf49e0 \_ZNK3Rtt12VideoTexture9GetFilterEv + 378360 8 - 8 Incursion Defense 0x0000000101bdcac8 \_ZNK3Rtt12VideoTexture9GetFilterEv + 280288 9 - 9 Incursion Defense 0x0000000101bf1a10 \_ZNK3Rtt12VideoTexture9GetFilterEv + 366120 10 - 10 Incursion Defense 0x0000000101bdd0fc \_ZNK3Rtt12VideoTexture9GetFilterEv + 281876 11 - 11 Incursion Defense 0x0000000101bf2f24 \_ZNK3Rtt12VideoTexture9GetFilterEv + 371516 12 - 12 Incursion Defense 0x0000000101bdd468 \_ZNK3Rtt12VideoTexture9GetFilterEv + 282752 13 - 13 Incursion Defense 0x0000000101bd3738 \_ZNK3Rtt12VideoTexture9GetFilterEv + 242512 14 - 14 Incursion Defense 0x0000000101c1d6c8 \_ZNK3Rtt12VideoTexture9GetFilterEv + 545504 15 - 15 Incursion Defense 0x0000000101c3e8ec \_ZNK3Rtt12VideoTexture9GetFilterEv + 681220 16 - 16 Incursion Defense 0x0000000101b74780 vng\_unzeof + 184532 17 - 17 GLKit 0x00000001dd9a391c \<redacted\> + 256 18 - 18 GLKit 0x00000001dd9a4b24 \<redacted\> + 520 19 - 19 QuartzCore 0x00000001d4e2eff0 \<redacted\> + 636 20 - 20 QuartzCore 0x00000001d4ef8de0 \<redacted\> + 272 21 - 21 CoreFoundation 0x00000001d098a19c \<redacted\> + 188 22 - 22 CoreFoundation 0x00000001d09b0da0 \<redacted\> + 56 23 - 23 CoreFoundation 0x00000001d09b04ec \<redacted\> + 440 24 - 24 CoreFoundation 0x00000001d09ab310 \<redacted\> + 2096 25 - 25 CoreFoundation 0x00000001d09aa7c0 CFRunLoopRunSpecific + 436 26 - 26 GraphicsServices 0x00000001d2bab79c GSEventRunModal + 104 27 - 27 UIKitCore 0x00000001fd36dc38 UIApplicationMain + 212 28 - 28 Incursion Defense 0x0000000101b6185c vng\_unzeof + 106928 29 - 29 libdyld.dylib 0x00000001d046e8e0 \<redacted\> + 4

This does not happen on my app. I just confirmed. I lock the device for a few minutes then come back and do something that I would expect a connection to Gamesparks. No crash. 

iPad Air Running: 12.1.1

iPhone 7 Running: 13.1.2

You can try my app to see if you can replicate it:

https://apps.apple.com/app/buscando-palabras/id1299376972

Here is the entire code I use for all my games. Some have newer version and some have older but this is the must current for the app above. I don’t see anything exciting:

https://gist.github.com/agramonte/f6140dfb57c0db06084df84609c43883