Michel Neeser created CB-9829:
---------------------------------
Summary: Call to window.history.replaceState crashes application
Key: CB-9829
URL: https://issues.apache.org/jira/browse/CB-9829
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: Master
Environment: Cordova 5, Android 5.1, jQuery Mobile 1.4.4
Reporter: Michel Neeser
Priority: Critical
We have an app based on Cordova 5 and with jQuery Mobile 1.4.4 implemented. The
app crashes in some situations while transitioning to a new page. We tracked
down the code line leading to the crash to a call to
window.history.replaceState in jQuery Mobile. The crash only occurs in the
Cordova environment and not if the app runs in the web browser, so jQuery
Mobile doesn't seem to be the problem. Configuring "pushStateEnabled = false"
and "phonegapNavigationEnabled = true" in mobileinit did not make any
difference.
Here's the log of the error printed by logcat:
D/ExtensionsFactory( 1902): No custom extensions.
D/AlertReceiver( 1902): onReceive: a=android.intent.action.BOOT_COMPLETED
Intent { act=android.intent.action.BOOT_COMPLETED flg=0x8000010
cmp=com.android.calendar/.alerts.AlertReceiver (has extras) }
I/ActivityManager( 1220): Delay finish:
com.android.calendar/.alerts.AlertReceiver
D/AlertUtils( 1902): Flushing old alerts from shared prefs table
D/AlertService( 1902): 0 Action = android.intent.action.BOOT_COMPLETED
D/AlertService( 1902): Scheduling next alarm with AlarmScheduler.
sEventReminderReceived: null
D/AlarmScheduler( 1902): No events found starting within 1 week.
F/chromium( 1735): [FATAL:render_process_host_impl.cc(965)] Check failed: false.
--------- beginning of crash
F/libc ( 1735): Fatal signal 6 (SIGABRT), code -6 in tid 1735
(ign.nussbaumapp)
I/DEBUG ( 932): *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
***
I/DEBUG ( 932): Build fingerprint:
'generic_x86/sdk_phone_x86/generic_x86:5.1/LKY45/1737576:eng/test-keys'
I/DEBUG ( 932): Revision: '0'
I/DEBUG ( 932): ABI: 'x86'
I/DEBUG ( 932): pid: 1735, tid: 1735, name: ign.nussbaumapp >>>
ch.mysign.nussbaumapp <<<
I/DEBUG ( 932): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
I/DEBUG ( 932): Abort message: '[FATAL:render_process_host_impl.cc(965)]
Check failed: false.
I/DEBUG ( 932): '
I/DEBUG ( 932): eax 00000000 ebx 000006c7 ecx 000006c7 edx 00000006
I/DEBUG ( 932): esi b77f3c48 edi 0000000b
I/DEBUG ( 932): xcs 00000073 xds 0000007b xes 0000007b xfs 00000007
xss 0000007b
I/DEBUG ( 932): eip b7582256 ebp 000006c7 esp bff4bf20 flags 00200286
I/DEBUG ( 932):
I/DEBUG ( 932): backtrace:
I/DEBUG ( 932): #00 pc 00075256 /system/lib/libc.so (tgkill+22)
I/DEBUG ( 932): #01 pc 0002217b /system/lib/libc.so (pthread_kill+155)
I/DEBUG ( 932): #02 pc 000239f4 /system/lib/libc.so (raise+36)
I/DEBUG ( 932): #03 pc 0001bdf4 /system/lib/libc.so (abort+84)
I/DEBUG ( 932): #04 pc 00297c34 /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #05 pc 002509bc /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #06 pc 006b2d25 /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #07 pc 007854ba /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #08 pc 0078a96c /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #09 pc 0065f530 /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #10 pc 006628f2 /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #11 pc 006b550a /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #12 pc 019f3a89 /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #13 pc 019f37d6 /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #14 pc 00297e24 /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #15 pc 00256918 /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #16 pc 00258cfb /system/lib/libwebviewchromium.so
I/DEBUG ( 932): #17 pc 0028e3ea /system/lib/libwebviewchromium.so
(Java_com_android_org_chromium_base_SystemMessageHandler_nativeDoRunLoopOnce+42)
I/DEBUG ( 932): #18 pc 00021677
/data/dalvik-cache/x86/system@app@[email protected]@classes.dex
I/DEBUG ( 932):
I/DEBUG ( 932): Tombstone written to: /data/tombstones/tombstone_00
W/InputDispatcher( 1220): channel '3da98862
ch.mysign.nussbaumapp/ch.mysign.nussbaumapp.MainActivity (server)' ~ Consumer
closed input channel or an error occurred. events=0x9
E/InputDispatcher( 1220): channel '3da98862
ch.mysign.nussbaumapp/ch.mysign.nussbaumapp.MainActivity (server)' ~ Channel is
unrecoverably broken and will be disposed!
I/BootReceiver( 1220): Copying /data/tombstones/tombstone_00 to DropBox
(SYSTEM_TOMBSTONE)
I/WindowState( 1220): WIN DEATH: Window{3da98862 u0
ch.mysign.nussbaumapp/ch.mysign.nussbaumapp.MainActivity}
I/Zygote ( 938): Process 1735 exited due to signal (6)
I/ActivityManager( 1220): Process ch.mysign.nussbaumapp (pid 1735) has died
W/ActivityManager( 1220): Force removing ActivityRecord{37e20e5a u0
ch.mysign.nussbaumapp/.MainActivity t80}: app died, no saved state
W/InputDispatcher( 1220): Attempted to unregister already unregistered input
channel '3da98862 ch.mysign.nussbaumapp/ch.mysign.nussbaumapp.MainActivity
(server)'
I/art ( 1220): Background sticky concurrent mark sweep GC freed 7445(622KB)
AllocSpace objects, 7(816KB) LOS objects, 11% free, 6MB/7MB, paused 14.125ms
total 298.529ms
I/Choreographer( 1372): Skipped 36 frames! The application may be doing too
much work on its main thread.
I/Choreographer( 1220): Skipped 102 frames! The application may be doing too
much work on its main thread.
W/AudioTrack( 1220): AUDIO_OUTPUT_FLAG_FAST denied by client
W/InputMethodManagerService( 1220): Got RemoteException sending
setActive(false) notification to pid 1735 uid 10053
I/ActivityManager( 1220): Waited long enough for: ServiceRecord{185d88d4 u0
com.android.calendar/.alerts.InitAlarmsService}
I/ActivityManager( 1220): Resuming delayed broadcast
V/AlarmClock( 1553): AlarmInitReceiver android.intent.action.BOOT_COMPLETED
V/AlarmClock( 1553): AlarmInitReceiver - Reset timers and clear stopwatch data
V/AlarmClock( 1553): AlarmInitReceiver finished
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]