Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6651] Android: Modules: V8 First call into 3rd party jar file causes crash

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionWon't Fix
Resolution Date2011-12-15T11:54:42.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-50, Release 1.8.0.1
ComponentsAndroid
Labelsbranch-v8, merge-1.8.0.1
ReporterJeff English
AssigneeOpie Cyrus
Created2011-12-13T17:48:06.000+0000
Updated2011-12-19T12:52:17.000+0000

Description

Using the barcode module (for example) and building the app for V8, the application's main window will display correctly. Press the "Scan" button and the application will crash. This is the first call into the module which results in a call to the 3rd party jar file. This also occurs on other modules that use 3rd party jar files. Crash log is as follows:
12-13 17:43:23.164: INFO/DEBUG(31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-13 17:43:23.164: INFO/DEBUG(31): Build fingerprint: 'generic/sdk/generic/:2.2/FRF91/43546:eng/test-keys'
12-13 17:43:23.164: INFO/DEBUG(31): pid: 1188, tid: 1196  >>> com.appcelerator.barcodetest <<<
12-13 17:43:23.164: INFO/DEBUG(31): signal 11 (SIGSEGV), fault addr 0000000a
12-13 17:43:23.164: INFO/DEBUG(31):  r0 00000000  r1 00000210  r2 00000003  r3 00000000
12-13 17:43:23.174: INFO/DEBUG(31):  r4 45cf63d0  r5 428a4dfc  r6 460f98c0  r7 000030f8
12-13 17:43:23.174: INFO/DEBUG(31):  r8 80813b00  r9 0000000f  10 428a4de8  fp 5d25b60d
12-13 17:43:23.174: INFO/DEBUG(31):  ip 000000f8  sp 460f9880  lr 8081792c  pc 80818614  cpsr 00000010
12-13 17:43:23.893: INFO/DEBUG(31):          #00  pc 00018614  /system/lib/libdvm.so
12-13 17:43:23.893: INFO/DEBUG(31):          #01  pc 0001e8c4  /system/lib/libdvm.so
12-13 17:43:23.903: INFO/DEBUG(31):          #02  pc 0001d790  /system/lib/libdvm.so
12-13 17:43:23.903: INFO/DEBUG(31):          #03  pc 00053d80  /system/lib/libdvm.so
12-13 17:43:23.903: INFO/DEBUG(31):          #04  pc 0003e870  /system/lib/libdvm.so
12-13 17:43:23.903: INFO/DEBUG(31):          #05  pc 0002ef8c  /system/lib/libdvm.so
12-13 17:43:23.913: INFO/DEBUG(31):          #06  pc 00004044  /data/data/com.appcelerator.barcodetest/lib/libti.barcode.so
12-13 17:43:23.913: INFO/DEBUG(31): code around pc:
12-13 17:43:23.913: INFO/DEBUG(31): 808185f4 e2522001 e48a1004 1afffffb e1d030bc 
12-13 17:43:23.913: INFO/DEBUG(31): 80818604 ea00001c e1b02627 e245a014 e1d410b4 
12-13 17:43:23.913: INFO/DEBUG(31): 80818614 e1d090ba e1d030bc 0a000016 e2622005 
12-13 17:43:23.913: INFO/DEBUG(31): 80818624 e08ff202 eb0000b9 e207cc0f e795232c 
12-13 17:43:23.923: INFO/DEBUG(31): 80818634 e1a00000 e52a2004 e201ca0f e795252c 
12-13 17:43:23.923: INFO/DEBUG(31): code around lr:
12-13 17:43:23.923: INFO/DEBUG(31): 8081790c e7952103 e3520000 0a0003f9 e5922000 
12-13 17:43:23.923: INFO/DEBUG(31): 8081791c e5922074 e5054008 e7920101 eb000336 
12-13 17:43:23.923: INFO/DEBUG(31): 8081792c e1a00000 e1a00000 e1a00000 e1a00000 
12-13 17:43:23.923: INFO/DEBUG(31): 8081793c e1a00000 e1d430b4 e1d410b2 e7952103 
12-13 17:43:23.923: INFO/DEBUG(31): 8081794c e3520000 0a0003ea e5922000 e5922074 
12-13 17:43:23.923: INFO/DEBUG(31): stack:
12-13 17:43:23.923: INFO/DEBUG(31):     460f9840  00228b88  [heap]
12-13 17:43:23.933: INFO/DEBUG(31):     460f9844  80848e0f  /system/lib/libdvm.so
12-13 17:43:23.933: INFO/DEBUG(31):     460f9848  0011c3a0  [heap]
12-13 17:43:23.933: INFO/DEBUG(31):     460f984c  460f98c0  
12-13 17:43:23.933: INFO/DEBUG(31):     460f9850  43edb590  /dev/ashmem/mspace/dalvik-heap/2 (deleted)
12-13 17:43:23.933: INFO/DEBUG(31):     460f9854  0011c3a0  [heap]
12-13 17:43:23.933: INFO/DEBUG(31):     460f9858  43edb590  /dev/ashmem/mspace/dalvik-heap/2 (deleted)
12-13 17:43:23.933: INFO/DEBUG(31):     460f985c  80860691  /system/lib/libdvm.so
12-13 17:43:23.933: INFO/DEBUG(31):     460f9860  00121758  [heap]
12-13 17:43:23.943: INFO/DEBUG(31):     460f9864  00000007  
12-13 17:43:23.943: INFO/DEBUG(31):     460f9868  43edc590  /dev/ashmem/mspace/dalvik-heap/2 (deleted)
12-13 17:43:23.943: INFO/DEBUG(31):     460f986c  45cf63be  /data/dalvik-cache/data@app@com.appcelerator.barcodetest-1.apk@classes.dex
12-13 17:43:23.943: INFO/DEBUG(31):     460f9870  428a4dfc  
12-13 17:43:23.943: INFO/DEBUG(31):     460f9874  460f98c0  
12-13 17:43:23.943: INFO/DEBUG(31):     460f9878  df002777  
12-13 17:43:23.943: INFO/DEBUG(31):     460f987c  e3a070ad  
12-13 17:43:23.943: INFO/DEBUG(31): #00 460f9880  41861044  /data/dalvik-cache/system@framework@core.jar@classes.dex
12-13 17:43:23.953: INFO/DEBUG(31):     460f9884  460f98c0  
12-13 17:43:23.953: INFO/DEBUG(31):     460f9888  0011c3a0  [heap]
12-13 17:43:23.953: INFO/DEBUG(31):     460f988c  460f98c0  
12-13 17:43:23.953: INFO/DEBUG(31):     460f9890  460f9958  
12-13 17:43:23.953: INFO/DEBUG(31):     460f9894  00002448  
12-13 17:43:23.953: INFO/DEBUG(31):     460f9898  80903fc5  /data/data/com.appcelerator.barcodetest/lib/libti.barcode.so
12-13 17:43:23.953: INFO/DEBUG(31):     460f989c  57cac061  
12-13 17:43:23.953: INFO/DEBUG(31):     460f98a0  5d25b60d  
12-13 17:43:23.953: INFO/DEBUG(31):     460f98a4  8081e8c8  /system/lib/libdvm.so
12-13 17:43:23.953: INFO/DEBUG(31): #01 460f98a8  00228b88  [heap]
12-13 17:43:23.963: INFO/DEBUG(31):     460f98ac  8081e870  /system/lib/libdvm.so
12-13 17:43:23.963: INFO/DEBUG(31):     460f98b0  460f98c0  
12-13 17:43:23.963: INFO/DEBUG(31):     460f98b4  8081d794  /system/lib/libdvm.so
12-13 17:43:26.374: INFO/DEBUG(31): debuggerd committing suicide to free the zombie!
12-13 17:43:26.394: INFO/DEBUG(1201): debuggerd: Jun 30 2010 13:59:20
12-13 17:43:27.264: DEBUG/Zygote(33): Process 1188 terminated by signal (11)
12-13 17:43:27.274: INFO/ActivityManager(60): Process com.appcelerator.barcodetest (pid 1188) has died.

Comments

  1. Jeff English 2011-12-14

    Converting code to use HashMap instead of KrollDict resolved the issue for our modules
  2. Marshall Culpepper 2011-12-15

    This was agreed to be a change that is required in the new module updates wiki, Jeff English is updating the wiki.
  3. Michael Pettiford 2011-12-19

    Closing this issue due to comments by Jeff and Marshall

JSON Source