Application type: mobile
Titanium SDK version: 3.1.1 (06/15/13 16:09 f7592c1)
Platform & version: Android 4.3 and 2.3.3
Device: Android emulator and Samsung Galaxy S2 with Android 4.0.3
Host Operating System: OSX 10.8.4 Mountain Lion
Titanium Studio: build: 3.1.1.201306112235
Hello guys,
I'm currently having some issues with running my app on the Android emulator and thought maybe someone could help. The problem is that when I launch the app on android emulator (2.3.3 or 4.3) or on actual device (Samsung Galaxy S2) it will crash.
I have to mention that on IPhone simulator won't crash. Android 2.3.3 emulator will load the app but then it's crashing repeateadly (reloads then crashes infintely). On android 4.3 emulator it's just a black screen when launching the app. From the logs I see that's something native...and has to do with corrupted memory but there are multiple errors among which I don't know which is more severe :)
I tried to re-install Android SDK and after that the Titanium Studio. It didn't change anything.
I attached the logs but they are very huge...sory for that :(
If someone has any ideas on this issue, please help.
Thank you !
The logs for Android 4.3 emulator:
` [INFO] Titanium SDK version: 3.1.1 (06/15/13 16:09 f7592c1) [INFO] Fastdev server running, deploying in Fastdev mode [INFO] Copying CommonJS modules... [INFO] Copying project resources.. [INFO] Tiapp.xml unchanged, skipping class generation [INFO] Force including all modules... [INFO] Compiling Javascript Resources ... [INFO] Waiting for SDCard to become available.. [INFO] Re-launching application ... c1rca Error killing app, result: ['App not connected'] [INFO] Launching application ... c1rca [INFO] : Project built successfully in 3s 188ms [INFO] : Running logcat process: python "/Users/programm/Library/Application Support/Titanium/mobilesdk/osx/3.1.1.GA/android/builder.py" "logcat" "/Users/programm/Downloads/adt-bundle-mac-x86_64-20130717/sdk" "-e" [INFO][PeopleSearchIndexManage( 807)] Rebuilding index...
[ERROR][StrictMode( 702)] A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
[ERROR][StrictMode( 702)] java.lang.Throwable: Explicit termination method 'close' not called
[ERROR][StrictMode( 702)] at dalvik.system.CloseGuard.open(CloseGuard.java:184) [ERROR][StrictMode( 702)] at java.io.FileInputStream.<init>(FileInputStream.java:80) [ERROR][StrictMode( 702)] at dalvik.system.NativeStart.main(Native Method) [ERROR][GCM ( 702)] Missing token, falling back to GSF
[WARN][Bundle ( 702)] Key GOOG.USER_SERIAL expected String but value was a java.lang.Integer. The default value <null> was returned. [WARN][Bundle ( 702)] Attempt to cast generated internal exception: [WARN][Bundle ( 702)] java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) [WARN][Bundle ( 702)] at android.os.HandlerThread.run(HandlerThread.java:61) [INFO][PeopleSearchIndexManage( 807)] Rebuilding index done. [INFO][dalvikvm-heap( 766)] Grow heap (frag case) to 16.615MB for 1286224-byte allocation [INFO][MediaProvider( 669)] Upgrading media database from version 0 to 601, which will destroy all old data
[ERROR][StrictMode( 1114)] A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. [ERROR][StrictMode( 1114)] java.lang.Throwable: Explicit termination method 'release' not called
[INFO][GCM ( 807)] Message from Bundle[{error=AUTHENTICATION_FAILED}] null [ERROR][GCM ( 807)] Failed registration AUTHENTICATION_FAILED [WARN][Uploader( 807)] No account for auth token provided [ERROR][StrictMode( 702)] A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks. [ERROR][StrictMode( 702)] java.lang.Throwable: Explicit termination method 'close' not called
[ERROR][StrictMode( 702)] at android.os.Looper.loop(Looper.java:137) [ERROR][StrictMode( 702)] at android.os.HandlerThread.run(HandlerThread.java:61)
[ERROR][SQLiteLog( 1042)] (1) no such table: Account
[WARN][EmailProvider( 1042)] Exception cleaning EmailProvider.dbandroid.database.sqlite.SQLiteException: no such table: Account (code 1): , while compiling: delete from Account WHERE displayName ISNULL;
[ERROR][BluetoothAdapter( 646)] Bluetooth binder is null [INFO][GCoreUlr( 598)] Ensuring that reporting is stopped because of reasons: (no Google accounts)
[INFO][SystemUpdateService( 702)] cancelUpdate (empty URL) [WARN][GCM ( 702)] DIR: /data/data/com.google.android.gms/app_APP /data/data/com.google.android.gsf [WARN][dalvikvm( 1275)] PR_CAPBSET_DROP 0 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. [WARN][dalvikvm( 1275)] PR_CAPBSET_DROP 1 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
[INFO][ActivityManager( 330)] Start proc com.google.android.apps.maps for service com.google.android.apps.maps/com.google.android.apps.gmm.ulr.GcoreUlrService: pid=1275 uid=10026 gids={50026, 3003, 1015, 1028} [INFO][GCoreUlr( 598)] Ensuring that reporting is stopped because of reasons: (no Google accounts)
[ERROR][WVMExtractor( 40)] Failed to open libwvm.so
[ERROR][SQLiteDatabase( 766)] Error inserting preview_bitmap=[B@418dca38 size=168x134 name=Widget:com.android.email/com.android.email.provider.WidgetProvider
[ERROR][SQLiteDatabase( 766)] android.database.sqlite.SQLiteConstraintException: columns name, size are not unique (code 19) [ERROR][SQLiteDatabase( 766)] at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
state=CONNECTING [WARN][dalvikvm( 1323)] PR_CAPBSET_DROP 0 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled. [WARN][dalvikvm( 1323)] PR_CAPBSET_DROP 1 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
[INFO][ActivityManager( 330)] Start proc com.svox.pico for service com.svox.pico/.PicoService: pid=1323 uid=10032 gids={50032, 1015, 1028} [INFO][TextToSpeech( 1275)] Sucessfully bound to com.svox.pico [INFO][PackageManager( 330)] Running dexopt on: com.svox.pico [ERROR][GCoreUlr( 598)] Failed to retrieve GMM settings, proceeding without them [ERROR][GCoreUlr( 598)] java.util.concurrent.TimeoutException [ERROR][GCoreUlr( 598)] at eha.a(SourceFile:80) [ERROR][GCoreUlr( 598)] at android.os.HandlerThread.run(HandlerThread.java:61)
[WARN][MediaScanner( 669)] Error opening directory '/storage/sdcard/.android_secure/', skipping: Permission denied. [WARN][PeopleReceiver( 807)] Received unexcepted broadcast: android.intent.action.PACKAGE_CHANGED
[INFO][ContactDirectoryManager( 724)] deleted 0 stale rows which don't have any relevant directory [INFO][ContactDirectoryManager( 724)] Discovered 0 contact directories in 4477ms [INFO][ContactsProvider( 724)] Locale has changed from null to en_US [INFO][ContactsDatabaseHelper( 724)] Switching to locale en_US (ICU v50.1.1.3)
[WARN][zipro ( 660)] Unable to open zip '/data/local/tmp/app.apk': No such file or directory
[WARN][PackageParser( 660)] Unable to read AndroidManifest.xml of /data/local/tmp/app.apk
[WARN][PackageParser( 660)] java.io.FileNotFoundException: AndroidManifest.xml
[WARN][PackageParser( 660)] at android.content.res.AssetManager.openXmlAssetNative(Native Method) [WARN][PackageParser( 660)] at dalvik.system.NativeStart.run(Native Method) [WARN][DefContainer( 660)] Failed to parse package [WARN][ActivityManager( 330)] No content provider found for permission revoke: file:///data/local/tmp/app.apk
[ERROR][cutils-trace( 1388)] Error opening trace file: No such file or directory (2)
[INFO][ActivityManager( 330)] START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.c1rca.c1rca/.C1rcaActivity} from pid 1388
[INFO][dalvikvm-heap( 330)] Grow heap (frag case) to 7.185MB for 1536016-byte allocation [INFO][dalvikvm( 1399)] Turning on JNI app bug workarounds for target SDK version 8...
[INFO][ActivityManager( 330)] Start proc com.c1rca.c1rca for activity com.c1rca.c1rca/.C1rcaActivity: pid=1399 uid=10050 gids={50050, 1015, 3003, 1028} [INFO][ARMAssembler( 37)] generated scanline__00000077:03515104_00009001_00000000 [131 ipp] (153 ins) at [0x4191d1f0:0x4191d454] in 9293002 ns
[ERROR][TiApplication( 1399)] (KrollRuntimeThread) [912,966] APP PROXY: ti.modules.titanium.app.AppModule@417a98d8 [WARN][V8Object( 1399)] Runtime disposed, cannot set property 'userAgent' [INFO][ActivityManager( 330)] START u0 {cmp=com.c1rca.c1rca/org.appcelerator.titanium.TiActivity (has extras)} from pid 1399 [INFO][TiAPI ( 1399)] Stored login
[INFO][dalvikvm-heap( 1399)] Grow heap (frag case) to 4.723MB for 1536016-byte allocation [INFO][dalvikvm-heap( 1399)] Grow heap (frag case) to 5.629MB for 635812-byte allocation [WARN][TiUIActivityIndicator( 1399)] (main) [234,1341] Invalid value "0" for style.
[ERROR][dalvikvm( 1399)] JNI ERROR (app bug): local reference table overflow (max=512)
[WARN][dalvikvm( 1399)] JNI local reference table (0x2a22cfa0) dump: [WARN][dalvikvm( 1399)] Last 10 entries (of 512): [WARN][dalvikvm( 1399)] 511: 0x4196b738 org.appcelerator.kroll.KrollDict [WARN][dalvikvm( 1399)] 510: 0x417b11c8 org.appcelerator.titanium.proxy.ActivityProxy [WARN][dalvikvm( 1399)] 509: 0x4178faa0 ti.modules.titanium.ui.TabGroupProxy [WARN][dalvikvm( 1399)] 508: 0x41a9bfc8 org.appcelerator.titanium.proxy.ActionBarProxy [WARN][dalvikvm( 1399)] 507: 0x41791940 ti.modules.titanium.ui.TabProxy [WARN][dalvikvm( 1399)] 506: 0x417b11c8 org.appcelerator.titanium.proxy.ActivityProxy
[WARN][dalvikvm( 1399)] Summary: [WARN][dalvikvm( 1399)] 1 of java.lang.String [WARN][dalvikvm( 1399)] 1 of java.util.HashMap$KeySet [WARN][dalvikvm( 1399)] 2 of org.appcelerator.kroll.runtime.v8.V8Object (2 unique instances) [WARN][dalvikvm( 1399)] 127 of org.appcelerator.titanium.proxy.ActivityProxy (1 unique instances) [WARN][dalvikvm( 1399)] 2 of org.appcelerator.kroll.KrollDict (2 unique instances) [WARN][dalvikvm( 1399)] 127 of ti.modules.titanium.ui.TabGroupProxy (1 unique instances) [WARN][dalvikvm( 1399)] 127 of ti.modules.titanium.ui.TabProxy (1 unique instances) [WARN][dalvikvm( 1399)] 125 of org.appcelerator.titanium.proxy.ActionBarProxy (1 unique instances)
[ERROR][dalvikvm( 1399)] Failed adding to JNI local ref table (has 512 entries)
[ERROR][dalvikvm( 1399)] VM aborting
F/libc ( 1399): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 1417 (KrollRuntimeThr)
[INFO][DEBUG ( 35)] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** [INFO][DEBUG ( 35)] Build fingerprint: 'generic/google_sdk/generic:4.3/JB_MR2/774058:eng/test-keys' [INFO][DEBUG ( 35)] Revision: '0' [INFO][DEBUG ( 35)] pid: 1399, tid: 1417, name: UNKNOWN >>> com.c1rca.c1rca <<< [INFO][DEBUG ( 35)] signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
[INFO][WindowState( 330)] WIN DEATH: Window{41765ab0 u0 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity} [INFO][WindowManager( 330)] Screenshot max retries 4 of Token{41752648 ActivityRecord{417637b0 u0 com.c1rca.c1rca/org.appcelerator.titanium.TiActivity}} appWin=Window{41762950 u0 Starting com.c1rca.c1rca} drawState=4
android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:635) [WARN][ActivityManager( 330)] at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:990)
[WARN][ActivityManager( 330)] at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:834
com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java [INFO][ActivityManager( 330)] Start proc com.c1rca.c1rca for activity com.c1rca.c1rca/.C1rcaActivity: pid=1428 uid=10050 gids={50050, 1015, 3003, 1028} [INFO][ActivityManager( 330)] Process com.c1rca.c1rca (pid 1399) has died and restarted (pid 1428).
[ERROR][NativeCrashListener( 330)] Unable to report native crash
[ERROR][NativeCrashListener( 330)] java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
[ERROR][NativeCrashListener( 330)] at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) [ERROR][NativeCrashListener( 330)] at java.util.ArrayList.get(ArrayList.java:308) [ERROR][NativeCrashListener( 330)] at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86) `
The logs for Android 2.3.3 emulator:
` [INFO] Titanium SDK version: 3.1.1 (06/15/13 16:09 f7592c1)
[WARN][InputManagerService( 62)] Got RemoteException sending setActive(false) notification to pid 618 uid 10038 [INFO][ActivityManager( 62)] Displayed com.c1rca.c1rca/.C1rcaActivity: +4m47s976ms (total +3s554ms) [INFO][ActivityManager( 62)] Displayed com.c1rca.c1rca/org.appcelerator.titanium.TiActivity: +1s588ms [INFO][EventLogService( 194)] Aggregate from 1379503037486 (log), 1379503037486 (data)
[WARN][dalvikvm( 634)] ReferenceTable overflow (max=512)
[WARN][dalvikvm( 634)] Last 10 entries in JNI local reference table: [WARN][dalvikvm( 634)] 502: 0x406773d0 cls=Lti/modules/titanium/ui/TabGroupProxy; (164 bytes) [WARN][dalvikvm( 634)] 503: 0x40680028 cls=Lorg/appcelerator/titanium/proxy/ActivityProxy; (92 bytes) [WARN][dalvikvm( 634)] 504: 0x40679208 cls=Lti/modules/titanium/ui/TabProxy; (116 bytes) [WARN][dalvikvm( 634)] 505: 0x406773d0 cls=Lti/modules/titanium/ui/TabGroupProxy; (164 bytes)
[ERROR][dalvikvm( 634)] Failed adding to JNI local ref table (has 512 entries)
[INFO][dalvikvm( 634)] "KrollRuntimeThread" prio=5 tid=10 RUNNABLE [INFO][dalvikvm( 634)] | group="main" sCount=0 dsCount=0 obj=0x40627d00 self=0x2cea70 [INFO][dalvikvm( 634)] | sysTid=644 nice=0 sched=0/0 cgrp=default handle=2947344
[ERROR][dalvikvm( 634)] VM aborting
[INFO][DEBUG ( 31)] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** [INFO][DEBUG ( 31)] Build fingerprint: 'generic/google_sdk/generic:2.3.4/GINGERBREAD/123630:eng/test-keys' [INFO][DEBUG ( 31)] pid: 634, tid: 644 >>> com.c1rca.c1rca <<<
[INFO][DEBUG ( 31)] signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
[INFO][DEBUG ( 31)] r0 fffffec4 r1 deadd00d r2 00000026 r3 00000000 [INFO][DEBUG ( 31)] r4 800a45c0 r5 40013be0 r6 002ceba8 r7 41924f9c [INFO][DEBUG ( 31)] r8 80d67478 r9 002f7dec 10 40673a08 fp 002f7de8 [INFO][DEBUG ( 31)] ip 800a4720 sp 4431ec28 lr afd19375 pc 80045a4a cpsr 20000030 [INFO][DEBUG ( 31)] #00 pc 00045a4a /system/lib/libdvm.so [INFO][DEBUG ( 31)] #01 pc 00049e06 /system/lib/libdvm.so
[ERROR][InputDispatcher( 62)] channel '407a9e78 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8
[ERROR][InputDispatcher( 62)] channel '407a9e78 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
[INFO][ActivityManager( 62)] Process com.c1rca.c1rca (pid 634) has died. [INFO][WindowManager( 62)] WIN DEATH: Window{407a9e78 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity paused=false}
[ERROR][TiApplication( 651)] (KrollRuntimeThread) [514,514] APP PROXY: ti.modules.titanium.app.AppModule@406425c0
[WARN][V8Object( 651)] Runtime disposed, cannot set property 'userAgent' [INFO][dalvikvm( 651)] Could not find method org.appcelerator.titanium.TiBaseActivity.getActionBar, referenced from method ti.modules.titanium.ui.TabGroupProxy.windowCreated [WARN][dalvikvm( 651)] VFY: unable to resolve virtual method 7642: Lorg/appcelerator/titanium/TiBaseActivity;.getActionBar ()Landroid/app/ActionBar; [INFO][ActivityManager( 62)] Starting: Intent { cmp=com.c1rca.c1rca/org.appcelerator.titanium.TiActivity (has extras) } from pid 651 [INFO][TiAPI ( 651)] Stored login [INFO][TiAPI ( 651)] storedUsername:null [INFO][TiAPI ( 651)] storedPwdHash:null [INFO][TiAPI ( 651)] Ti.App.FriendName: 0
[WARN][dalvikvm( 651)] ReferenceTable overflow (max=512) [WARN][dalvikvm( 651)] Last 10 entries in JNI local reference table: [WARN][dalvikvm( 651)] 502: 0x406778e0 cls=Lti/modules/titanium/ui/TabGroupProxy; (164 bytes)
[WARN][dalvikvm( 651)] JNI local reference table summary (512 entries):
[[ERROR][dalvikvm( 651)] Failed adding to JNI local ref table (has 512 entries)
[INFO][dalvikvm( 651)] "KrollRuntimeThread" prio=5 tid=10 RUNNABLE org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112) [INFO][dalvikvm( 651)] [ERROR][dalvikvm( 651)] VM aborting [INFO][DEBUG ( 31)] Build fingerprint: 'generic/google_sdk/generic:2.3.4/GINGERBREAD/123630:eng/test-keys' [INFO][DEBUG ( 31)] pid: 651, tid: 661 >>> com.c1rca.c1rca <<< [###[INFO][DEBUG ( 31)] signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d [INFO][DEBUG ( 31)] r0 fffffec4 r1 deadd00d r2 00000026 r3 00000000
[INFO][BootReceiver( 62)] Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE) [ERROR][InputDispatcher( 62)] channel '4072fe10 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8 [ERROR][InputDispatcher( 62)] channel '4072fe10 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity (server)' ~ Channel is unrecoverably broken and will be disposed! [INFO][ActivityManager( 62)] Process com.c1rca.c1rca (pid 651) has died. [INFO][WindowManager( 62)] WIN DEATH: Window{4072fe10 com.c1rca.c1rca/com.c1rca.c1rca.C1rcaActivity paused=false} [INFO][ActivityManager( 62)] Start proc com.c1rca.c1rca for activity com.c1rca.c1rca/.C1rcaActivity: pid=667 uid=10038 gids={1015, 3003} [INFO][dalvikvm( 667)] Could not find method android.app.Application.onTrimMemory, referenced from method org.appcelerator.titanium.TiApplication.onTrimMemory [WARN][dalvikvm( 667)] VFY: unable to resolve virtual method 123: Landroid/app/Application;.onTrimMemory (I)V `