Post by fnllc on Sept 16, 2019 20:25:58 GMT
If I send my app to background manually or just when phone goes to sleep, it crashes when I reopen it at a later time. If, I reopen after a few minutes, no problem. However, if I reopen after a few hours, the WebView is active and works, but the Ruby VM server is not working. So no controller actions work. Here is the log when the app gets reactivated from background and to the time I have to manually close it.
E 09/16/2019 16:17:10:611 6f9b7000 HttpServer| Can not accept connection: 9
I 09/16/2019 16:17:10:622 6f9b7000 RhodesApp| RhodesApp thread wait.
I 09/16/2019 16:17:10:622 6f9b7000 HttpServer| Start HTTP server
I 09/16/2019 16:17:10:622 6f9b7000 HttpServer| Listen for connections on port 59771
I 09/16/2019 16:17:10:622 6f9b7000 AppCallbacks| addCommand: LOCAL-SERVER-STARTED
I 09/16/2019 16:17:10:623 6f813000 AppCallbacks| LOCAL-SERVER-STARTED is received ++++++++++++++++++++++++++++
I 09/16/2019 16:17:10:623 6f813000 AppCallbacks| Local server restarted before activate.Do not restart it again.
I 09/16/2019 16:17:10:623 6f813000 AppCallbacks| process command: LOCAL-SERVER-STARTED<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I 09/16/2019 16:17:10:625 6f813000 RhodesApp| rho_sys_report_app_started has no implementation on iPhone.
I 09/16/2019 16:17:10:628 6f813000 AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
E 09/16/2019 16:17:10:679 6f9b7000 HttpServer| Can not accept connection: 9
I 09/16/2019 16:17:10:679 6f9b7000 RhodesApp| RhodesApp thread wait.
I 09/16/2019 16:17:12:370 0121abc0 Rhodes| Application did become active
I 09/16/2019 16:17:12:371 0121abc0 RhodesApp| callAppActiveCallback
I 09/16/2019 16:17:12:371 0121abc0 AppCallbacks| addCommand: APP-ACTIVATED
I 09/16/2019 16:17:12:374 6f813000 AppCallbacks| APP-ACTIVATED is received ++++++++++++++++++++++++++++
I 09/16/2019 16:17:12:374 6f813000 AppCallbacks| process command: APP-ACTIVATED<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I 09/16/2019 16:17:12:432 6f813000 AppCallbacks| Change base url and try again.
E 09/16/2019 16:17:12:443 6f813000 AppCallbacks| /system/activateapp call failed. Code: -1; Error body:
I 09/16/2019 16:17:12:443 6f813000 AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
I 09/16/2019 16:17:17:852 0121abc0 Rhodes| Application will resign active
I 09/16/2019 16:17:17:853 0121abc0 RhodesApp| callAppActiveCallback
I 09/16/2019 16:17:17:853 0121abc0 AppCallbacks| addCommand: APP-DEACTIVATED
I 09/16/2019 16:17:17:853 6f813000 AppCallbacks| APP-DEACTIVATED is received ++++++++++++++++++++++++++++
I 09/16/2019 16:17:17:853 6f813000 AppCallbacks| process command: APP-DEACTIVATED<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I 09/16/2019 16:17:17:854 6f813000 AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
E 09/16/2019 16:17:17:863 0121abc0 RhodesApp| deactivate app failed. Code: -1; Error body:
I 09/16/2019 16:17:17:864 0121abc0 RhodesApp| New start params:
I 09/16/2019 16:17:20:916 0121abc0 Rhodes| Application go to background
E 09/16/2019 16:17:20:925 0121abc0 RhodesApp| UI destroy callback failed. Code: -1; Error body:
I 09/16/2019 16:17:20:925 0121abc0 RhodesApp| New start params:
I 09/16/2019 16:17:20:927 0121abc0 Rhodes| Will wait sync thread to finish sync
I 09/16/2019 16:17:20:927 6f557000 Rhodes| Waiting for sync thread
I 09/16/2019 16:17:20:928 6f557000 Rhodes| Check sync, rho_rcclient_issyncing = 0
I 09/16/2019 16:17:20:930 0121abc0 Rhodes| Runner will terminate
E 09/16/2019 16:17:20:948 0121abc0 RhodesApp| UI destroy callback failed. Code: -1; Error body:
I 09/16/2019 16:17:20:949 6f813000 AppCallbacks| Thread shutdown
I 09/16/2019 16:17:20:949 0121abc0 HttpServer| Stopping server...
E 09/16/2019 16:17:20:950 0121abc0 HttpServer| Stopping server: can not connect to listener: 61
I 09/16/2019 16:17:20:950 6f9b7000 RhodesApp| RhodesApp thread shutdown
I 09/16/2019 16:17:20:950 6fbf7000 Network| Thread shutdown
I 09/16/2019 16:17:20:951 6f9b7000 GeoLocation| Destroying singleton instance.
I 09/16/2019 16:17:20:951 6f9b7000 ClientRegister| Stopping ClientRegister...
I 09/16/2019 16:17:20:951 6f43f000 ClientRegister| ClientRegister thread shutdown
I 09/16/2019 16:17:20:952 6f9b7000 Sync| Stopping Sync thread
I 09/16/2019 16:17:20:952 6fa53000 Sync| Thread shutdown
E 09/16/2019 16:17:10:611 6f9b7000 HttpServer| Can not accept connection: 9
I 09/16/2019 16:17:10:622 6f9b7000 RhodesApp| RhodesApp thread wait.
I 09/16/2019 16:17:10:622 6f9b7000 HttpServer| Start HTTP server
I 09/16/2019 16:17:10:622 6f9b7000 HttpServer| Listen for connections on port 59771
I 09/16/2019 16:17:10:622 6f9b7000 AppCallbacks| addCommand: LOCAL-SERVER-STARTED
I 09/16/2019 16:17:10:623 6f813000 AppCallbacks| LOCAL-SERVER-STARTED is received ++++++++++++++++++++++++++++
I 09/16/2019 16:17:10:623 6f813000 AppCallbacks| Local server restarted before activate.Do not restart it again.
I 09/16/2019 16:17:10:623 6f813000 AppCallbacks| process command: LOCAL-SERVER-STARTED<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I 09/16/2019 16:17:10:625 6f813000 RhodesApp| rho_sys_report_app_started has no implementation on iPhone.
I 09/16/2019 16:17:10:628 6f813000 AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
E 09/16/2019 16:17:10:679 6f9b7000 HttpServer| Can not accept connection: 9
I 09/16/2019 16:17:10:679 6f9b7000 RhodesApp| RhodesApp thread wait.
I 09/16/2019 16:17:12:370 0121abc0 Rhodes| Application did become active
I 09/16/2019 16:17:12:371 0121abc0 RhodesApp| callAppActiveCallback
I 09/16/2019 16:17:12:371 0121abc0 AppCallbacks| addCommand: APP-ACTIVATED
I 09/16/2019 16:17:12:374 6f813000 AppCallbacks| APP-ACTIVATED is received ++++++++++++++++++++++++++++
I 09/16/2019 16:17:12:374 6f813000 AppCallbacks| process command: APP-ACTIVATED<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I 09/16/2019 16:17:12:432 6f813000 AppCallbacks| Change base url and try again.
E 09/16/2019 16:17:12:443 6f813000 AppCallbacks| /system/activateapp call failed. Code: -1; Error body:
I 09/16/2019 16:17:12:443 6f813000 AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
I 09/16/2019 16:17:17:852 0121abc0 Rhodes| Application will resign active
I 09/16/2019 16:17:17:853 0121abc0 RhodesApp| callAppActiveCallback
I 09/16/2019 16:17:17:853 0121abc0 AppCallbacks| addCommand: APP-DEACTIVATED
I 09/16/2019 16:17:17:853 6f813000 AppCallbacks| APP-DEACTIVATED is received ++++++++++++++++++++++++++++
I 09/16/2019 16:17:17:853 6f813000 AppCallbacks| process command: APP-DEACTIVATED<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
I 09/16/2019 16:17:17:854 6f813000 AppCallbacks| ThreadQueue blocked for 4294967295 seconds...
E 09/16/2019 16:17:17:863 0121abc0 RhodesApp| deactivate app failed. Code: -1; Error body:
I 09/16/2019 16:17:17:864 0121abc0 RhodesApp| New start params:
I 09/16/2019 16:17:20:916 0121abc0 Rhodes| Application go to background
E 09/16/2019 16:17:20:925 0121abc0 RhodesApp| UI destroy callback failed. Code: -1; Error body:
I 09/16/2019 16:17:20:925 0121abc0 RhodesApp| New start params:
I 09/16/2019 16:17:20:927 0121abc0 Rhodes| Will wait sync thread to finish sync
I 09/16/2019 16:17:20:927 6f557000 Rhodes| Waiting for sync thread
I 09/16/2019 16:17:20:928 6f557000 Rhodes| Check sync, rho_rcclient_issyncing = 0
I 09/16/2019 16:17:20:930 0121abc0 Rhodes| Runner will terminate
E 09/16/2019 16:17:20:948 0121abc0 RhodesApp| UI destroy callback failed. Code: -1; Error body:
I 09/16/2019 16:17:20:949 6f813000 AppCallbacks| Thread shutdown
I 09/16/2019 16:17:20:949 0121abc0 HttpServer| Stopping server...
E 09/16/2019 16:17:20:950 0121abc0 HttpServer| Stopping server: can not connect to listener: 61
I 09/16/2019 16:17:20:950 6f9b7000 RhodesApp| RhodesApp thread shutdown
I 09/16/2019 16:17:20:950 6fbf7000 Network| Thread shutdown
I 09/16/2019 16:17:20:951 6f9b7000 GeoLocation| Destroying singleton instance.
I 09/16/2019 16:17:20:951 6f9b7000 ClientRegister| Stopping ClientRegister...
I 09/16/2019 16:17:20:951 6f43f000 ClientRegister| ClientRegister thread shutdown
I 09/16/2019 16:17:20:952 6f9b7000 Sync| Stopping Sync thread
I 09/16/2019 16:17:20:952 6fa53000 Sync| Thread shutdown