Application crash at startup on Android 2.3.7

You must Login before you can answer or comment on any questions.

Hello,

I've made an application for iOS/Android with Titanium SDK 3.0.0.v20121019153308. It's working well on iOS (iPhone/iPad), and on Android 3.2 (Iconia A101), but it's not working in Android 2.3.7.

Here is the stack trace i've got :

[INFO][DEBUG   (  968)] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[INFO][DEBUG   (  968)] Build fingerprint: 'Pidion/pidion_bip6000/bip6000:2.3.7/GWK74/r6:userdebug/release-keys'
[INFO][DEBUG   (  968)] pid: 2834, tid: 2843  >>> com.process2wine.p2w <<<
[INFO][DEBUG   (  968)] signal 7 (SIGBUS), code 128 (?), fault addr 00000000
[INFO][DEBUG   (  968)]  r0 5c715f91  r1 32808181  r2 00000000  r3 7ff80000
[INFO][DEBUG   (  968)]  r4 00000000  r5 7ff80000  r6 0028bfc0  r7 00000000
[INFO][DEBUG   (  968)]  r8 00000000  r9 29a08091  10 0028c380  fp 44cc4588
[INFO][DEBUG   (  968)]  ip 80000000  sp 44cc4538  lr 809cd53c  pc 809cd558  cpsr 80000010
[INFO][DEBUG   (  968)]          #00  pc 001cd558  /data/data/com.process2wine.p2w/lib/libkroll-v8.so
[INFO][DEBUG   (  968)]          #01  lr 809cd53c  /data/data/com.process2wine.p2w/lib/libkroll-v8.so
...
D/Zygote  (  970): Process 2834 terminated by signal (7)
I/ActivityManager( 1096): Process com.process2wine.p2w (pid 2834) has died.
Then, is used this command to have a little more information :
arm-linux-androideabi-addr2line -C -f -i -e /MyProject/build/android/bin/app/lib/armeabi/libkroll-v8.so 001cd558
v8::String::ExternalStringResource::~ExternalStringResource()
??:0

So, I guess Android is crashing because of an external string resource ? I checked every internationalization string of my app to verify it's in the i18n files.

I also checked call to images, to add the Ti.Filesystem.getResourcesDirectory() and not having absolute paths.

But nothing changed and I'm out of options.

When I add a breakpoint to the first line of app.js, the debugger never reach it.

Does someone have a clue of what I can do know to find informations ?

Thanks, D2E.

— asked 7 months ago by SAS D2E
1 Comment
  • If I change the V8 runtime by rhino, I cannot debug the device, but I can go a little further and see some strange errors about deep recursion in about all the files... (I never did recursion in any file)

    — commented 7 months ago by SAS D2E

1 Answer

Changing Android runtime to Rhino and adding this line to the TiApp.xml solved all the problems : <property name="ti.android.threadstacksize" type="int">32768</property>

Your Answer

Think you can help? Login to answer this question!