Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7691] Android: packaging - v8 only - Packaged app using Tabbed Application template crashes when run on device

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-02-16T15:45:52.000+0000
Affected Version/sRelease 1.8.2
Fix Version/sn/a
ComponentsAndroid
Labelsqe-and021312, regression
ReporterEric Merriman
AssigneeMarshall Culpepper
Created2012-02-16T14:48:04.000+0000
Updated2012-02-16T18:07:55.000+0000

Description

Description: While testing packaging for Android on Windows, a bug was reported. Pulls were created to fi the packaging problem. Now that packaging is functioning, we discovered that with one of the templates (tabbed application) on one of the runtimes (V8) the app crashes when run. Console output is:

I/TiApplication( 3172): (main) [290,660] Titanium Javascript runtime: v8
D/dalvikvm( 3172): Trying to load lib /data/data/com.appcelerator.tabs/lib/libstlport_shared.so 0x41825598
D/dalvikvm( 3172): Added shared lib /data/data/com.appcelerator.tabs/lib/libstlport_shared.so 0x41825598
D/dalvikvm( 3172): No JNI_OnLoad found in /data/data/com.appcelerator.tabs/lib/libstlport_shared.so 0x41825598, skipping init
D/dalvikvm( 3172): Trying to load lib /data/data/com.appcelerator.tabs/lib/libkroll-v8.so 0x41825598
I/TiRootActivity( 3172): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
D/dalvikvm( 3172): Added shared lib /data/data/com.appcelerator.tabs/lib/libkroll-v8.so 0x41825598
D/TiAnalyticsDb( 3172): (main) [132,132] Creating Database tianalytics.db
I/TiAnalyticsDb( 3172): (main) [1,133] Upgrading Database from 1 to 4
E/TiApplication( 3172): (KrollRuntimeThread) [207,340] APP PROXY: ti.modules.titanium.app.AppModule@4183ec78
I/ActivityManager(  185): START {cmp=com.appcelerator.tabs/ti.modules.titanium.ui.TiTabActivity (has extras)} from pid 3172
D/dalvikvm( 3172): GC_FOR_ALLOC freed 219K, 3% free 14316K/14663K, paused 25ms
I/dalvikvm-heap( 3172): Grow heap (frag case) to 15.515MB for 1536016-byte allocation
D/dalvikvm( 3172): GC_CONCURRENT freed 34K, 3% free 15782K/16199K, paused 4ms+2ms
D/dalvikvm( 3172): GC_FOR_ALLOC freed 0K, 3% free 15782K/16199K, paused 11ms
I/dalvikvm-heap( 3172): Grow heap (frag case) to 18.087MB for 2731536-byte allocation
D/dalvikvm( 3172): GC_CONCURRENT freed 0K, 3% free 18450K/18887K, paused 2ms+5ms
I/TiRootActivity( 3172): (main) [0,0] checkpoint, on root activity resume. activity = com.appcelerator.tabs.TabsActivity@41864290
W/TiTabActivity( 3172): (main) [51,51] Notifying TiTabGroup, activity is created
I/WindowManager(  185): createSurface Window{41c0a898 com.appcelerator.tabs/ti.modules.titanium.ui.TiTabActivity paused=false}: DRAW NOW PENDING
D/TiUIView( 3172): (main) [144,195] Nativeview is null
F/libc    ( 3172): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
D/dalvikvm( 3139): GC_CONCURRENT freed 440K, 5% free 14975K/15687K, paused 2ms+4ms
I/DEBUG   (  112): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  112): Build fingerprint: 'google/mysid/toro:4.0.2/ICL53F/235179:user/release-keys'
I/DEBUG   (  112): pid: 3172, tid: 3201  >>> com.appcelerator.tabs <<<
I/DEBUG   (  112): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/DEBUG   (  112):  r0 00000000  r1 56e63250  r2 00152798  r3 00000000
I/DEBUG   (  112):  r4 00000000  r5 00000000  r6 56e63250  r7 5b45a820
I/DEBUG   (  112):  r8 000004c0  r9 5b4da39d  10 5b45a82f  fp 5b009039
I/DEBUG   (  112):  ip 408cc1c0  sp 5b45a7e0  lr 40870bed  pc 40870bf0  cpsr 60000030
I/DEBUG   (  112):  d0  002350cc0c000021  d1  002350d400235051
I/DEBUG   (  112):  d2  1a000007e1530040  d3  e59f2024e52d1030
I/DEBUG   (  112):  d4  e3a00003e92d0005  d5  e3451b82e3071bd0
I/DEBUG   (  112):  d6  e12fff1ce59fc014  d7  e12fff1ce59fc010
I/DEBUG   (  112):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   (  112):  d10 0000000000000000  d11 0000000000000000
I/DEBUG   (  112):  d12 0000000000000000  d13 0000000000000000
I/DEBUG   (  112):  d14 0000000000000000  d15 0000000000000000
I/DEBUG   (  112):  d16 0000000041848188  d17 3ff0000000000000
I/DEBUG   (  112):  d18 4028000000000000  d19 3ff0000000000000
I/DEBUG   (  112):  d20 4197d78400000000  d21 0100010001000100
I/DEBUG   (  112):  d22 0000000000000000  d23 0000000000000000
I/DEBUG   (  112):  d24 0000000000000000  d25 0000000000000000
I/DEBUG   (  112):  d26 0100010001000100  d27 0100010001000100
I/DEBUG   (  112):  d28 0100010001000100  d29 0100010001000100
I/DEBUG   (  112):  d30 0001000000010000  d31 0001000000010000
I/DEBUG   (  112):  scr 30000012
I/DEBUG   (  112): 
I/DEBUG   (  112):          #00  pc 00057bf0  /system/lib/libdvm.so
I/DEBUG   (  112):          #01  pc 0007f444  /data/data/com.appcelerator.tabs/lib/libkroll-v8.so (_ZN8titanium17TiBaseWindowProxy13setWindowViewERKN2v89ArgumentsE)
I/DEBUG   (  112): 
I/DEBUG   (  112): code around pc:
I/DEBUG   (  112): 40870bd0 4604b5f0 460db087 4621a805 461f4616 
I/DEBUG   (  112): 40870be0 f8aef7fc 46294620 fd44f7fd 46044631 
I/DEBUG   (  112): 40870bf0 f01f6800 4601fe4b ab02b138 93009805 
I/DEBUG   (  112): 40870c00 23014622 f0149701 9805fe09 f0062107 
I/DEBUG   (  112): 40870c10 b007fe8f bf00bdf0 4604b5f0 460db087 
I/DEBUG   (  112): 
I/DEBUG   (  112): code around lr:
I/DEBUG   (  112): 40870bcc bf004770 4604b5f0 460db087 4621a805 
I/DEBUG   (  112): 40870bdc 461f4616 f8aef7fc 46294620 fd44f7fd 
I/DEBUG   (  112): 40870bec 46044631 f01f6800 4601fe4b ab02b138 
I/DEBUG   (  112): 40870bfc 93009805 23014622 f0149701 9805fe09 
I/DEBUG   (  112): 40870c0c f0062107 b007fe8f bf00bdf0 4604b5f0 
I/DEBUG   (  112): 
I/DEBUG   (  112): stack:
I/DEBUG   (  112):     5b45a7a0  5b45a8cc  
I/DEBUG   (  112):     5b45a7a4  00217a48  
I/DEBUG   (  112):     5b45a7a8  00217a48  
I/DEBUG   (  112):     5b45a7ac  5b832dd0  /data/data/com.appcelerator.tabs/lib/libkroll-v8.so
I/DEBUG   (  112):     5b45a7b0  5b45a95c  
I/DEBUG   (  112):     5b45a7b4  5b578514  /data/data/com.appcelerator.tabs/lib/libkroll-v8.so
I/DEBUG   (  112):     5b45a7b8  5b45a7f4  
I/DEBUG   (  112):     5b45a7bc  4086cd13  /system/lib/libdvm.so
I/DEBUG   (  112):     5b45a7c0  00152798  
I/DEBUG   (  112):     5b45a7c4  00152798  
I/DEBUG   (  112):     5b45a7c8  5b45a7f4  
I/DEBUG   (  112):     5b45a7cc  00000000  
I/DEBUG   (  112):     5b45a7d0  00152798  
I/DEBUG   (  112):     5b45a7d4  00000000  
I/DEBUG   (  112):     5b45a7d8  df0027ad  
I/DEBUG   (  112):     5b45a7dc  00000000  
I/DEBUG   (  112): #00 5b45a7e0  0000195c  
I/DEBUG   (  112):     5b45a7e4  5b831d9c  /data/data/com.appcelerator.tabs/lib/libkroll-v8.so
I/DEBUG   (  112):     5b45a7e8  5b45a910  
I/DEBUG   (  112):     5b45a7ec  000004c0  
I/DEBUG   (  112):     5b45a7f0  5b4da39d  /data/data/com.appcelerator.tabs/lib/libkroll-v8.so
I/DEBUG   (  112):     5b45a7f4  001df258  
I/DEBUG   (  112):     5b45a7f8  5b009039  
I/DEBUG   (  112):     5b45a7fc  00152798  
I/DEBUG   (  112):     5b45a800  40870bd1  /system/lib/libdvm.so
I/DEBUG   (  112):     5b45a804  00000000  
I/DEBUG   (  112):     5b45a808  5b8fafa8  
I/DEBUG   (  112):     5b45a80c  5b4da447  /data/data/com.appcelerator.tabs/lib/libkroll-v8.so
I/DEBUG   (  112): #01 5b45a810  00217a48  
I/DEBUG   (  112):     5b45a814  002350c4  
I/DEBUG   (  112):     5b45a818  002360a8  
I/DEBUG   (  112):     5b45a81c  00000000  
I/DEBUG   (  112):     5b45a820  002002f6  
I/DEBUG   (  112):     5b45a824  00000001  
I/DEBUG   (  112):     5b45a828  41818018  
I/DEBUG   (  112):     5b45a82c  00000024  
I/DEBUG   (  112):     5b45a830  41888fc0  
I/DEBUG   (  112):     5b45a834  41888fc0  
I/DEBUG   (  112):     5b45a838  41818018  
I/DEBUG   (  112):     5b45a83c  00000024  
I/DEBUG   (  112):     5b45a840  00010740  
I/DEBUG   (  112):     5b45a844  408d29c0  
I/DEBUG   (  112):     5b45a848  41888fc0  
I/DEBUG   (  112):     5b45a84c  dc9db7fb  
I/DEBUG   (  112):     5b45a850  408d0c58  
I/DEBUG   (  112):     5b45a854  001df258  
W/dalvikvm( 3172): threadid=4: spin on suspend #1 threadid=10 (pcf=0)
I/BootReceiver(  185): Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
D/Zygote  (  115): Process 3172 terminated by signal (11)
I/WindowManager(  185): WIN DEATH: Window{41d780e8 com.appcelerator.tabs/com.appcelerator.tabs.TabsActivity paused=false}
I/ActivityManager(  185): Process com.appcelerator.tabs (pid 3172) has died.
W/ActivityManager(  185): Force removing ActivityRecord{41c7f2a0 com.appcelerator.tabs/ti.modules.titanium.ui.TiTabActivity}: app died, no saved state
I/WindowManager(  185): WIN DEATH: Window{41c0a898 com.appcelerator.tabs/ti.modules.titanium.ui.TiTabActivity paused=false}
Steps to reproduce: 1) Install SDK 2.0.0.v20120216123135 or 1.8.2 (post pull 1447 merge) 2) Create new studio project using Tabbed Application template 3) Package for distribution for Android 4) Install on device and launch Result: On Nexus S (2.3.6), app splash repeatedly displays and console outputs as shown above On Galaxy Nexus (4.0), app crash and quit Expected: Tabbed application template runs without error. Notes: While originally discovered testing pull 1442 on Win 7, then reproduced on Win XP, we are currently unable to reproduce on Win 7 with pull 1447. This does not occur with Rhino

Comments

  1. Eric Merriman 2012-02-16

    WIth the pull requests merged into the master and the 1_8_X branches we are unable to reproduce this issue on Windows 7 or Windows XP.

JSON Source