Unfornately, App has stopped. Help on Debug

Would you please guys help to debug my app is not starting at all. Here is the adb logcat.

D/AndroidRuntime( 2315):
D/AndroidRuntime( 2315): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 2315): CheckJNI is OFF
D/AndroidRuntime( 2313):
D/AndroidRuntime( 2313): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 2313): CheckJNI is OFF
E/memtrack( 2315): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 2315): failed to load memtrack module: -2
D/AndroidRuntime( 2315): Calling main entry com.android.commands.pm.Pm
E/memtrack( 2313): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 2313): failed to load memtrack module: -2
D/AndroidRuntime( 2315): Shutting down VM
D/AndroidRuntime( 2313): Calling main entry com.android.commands.pm.Pm
D/AndroidRuntime( 2313): Shutting down VM
D/Genyd   (  118): Received Set Clipboard
D/Genymotion(  118): Received Set Clipboard
D/AndroidRuntime( 2352):
D/AndroidRuntime( 2352): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 2352): CheckJNI is OFF
E/memtrack( 2352): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 2352): failed to load memtrack module: -2
D/AndroidRuntime( 2352): Calling main entry com.android.commands.pm.Pm
D/AndroidRuntime( 2352): Shutting down VM
W/AudioTrack(  707): AUDIO_OUTPUT_FLAG_FAST denied by client
W/AudioTrack(  707): AUDIO_OUTPUT_FLAG_FAST denied by client
W/AudioTrack(  707): AUDIO_OUTPUT_FLAG_FAST denied by client
I/ActivityManager(  707): START u0 {act=com.android.systemui.recents.SHOW_RECENTS flg=0x10804000 cmp=com.android.systemui/.recents.RecentsActivity (has extras)} from uid 10013 on display 0
D/OpenGLRenderer( 1062): setting property ambientRatio to 1.5
D/OpenGLRenderer( 1062): ambientRatio = 1.50
W/EGL_emulation( 1062): eglSurfaceAttrib not implemented
W/OpenGLRenderer( 1062): Failed to set EGL_SWAP_BEHAVIOR on surface 0xe1e8adc0, error=EGL_SUCCESS
I/ActivityManager(  707): Displayed com.android.systemui/.recents.RecentsActivity: +303ms
W/AudioTrack(  707): AUDIO_OUTPUT_FLAG_FAST denied by client
I/ActivityManager(  707): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher3/.Launcher} from uid 10013 on display 0
W/EGL_emulation( 1499): eglSurfaceAttrib not implemented
W/OpenGLRenderer( 1499): Failed to set EGL_SWAP_BEHAVIOR on surface 0xeb999640, error=EGL_SUCCESS
W/OpenGLRenderer( 1499): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
I/ActivityManager(  707): START u0 {act=com.android.systemui.recents.SHOW_RECENTS flg=0x10804000 cmp=com.android.systemui/.recents.RecentsActivity (has extras)} from uid 10013 on display 0
D/        (  749): HostConnection::get() New Host Connection established 0xf4214030, tid 2420
W/EGL_emulation( 1062): eglSurfaceAttrib not implemented
W/OpenGLRenderer( 1062): Failed to set EGL_SWAP_BEHAVIOR on surface 0xe1e8a1c0, error=EGL_SUCCESS
W/AudioTrack(  707): AUDIO_OUTPUT_FLAG_FAST denied by client
I/ActivityManager(  707): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher3/.Launcher} from uid 10013 on display 0
W/EGL_emulation( 1499): eglSurfaceAttrib not implemented
W/OpenGLRenderer( 1499): Failed to set EGL_SWAP_BEHAVIOR on surface 0xeb999640, error=EGL_SUCCESS
W/OpenGLRenderer( 1499): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
W/AudioTrack(  707): AUDIO_OUTPUT_FLAG_FAST denied by client
I/ActivityManager(  707): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher3/.Launcher} from uid 1000 on display 0
W/AudioTrack(  707): AUDIO_OUTPUT_FLAG_FAST denied by client
I/ActivityManager(  707): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=info.ecuasanitas.ecuasanitas577105/.MainActivity (has extras)} from uid 10039 on display 0
W/AudioTrack(  707): AUDIO_OUTPUT_FLAG_FAST denied by client
E/libprocessgroup( 2434): failed to make and chown /acct/uid_10059: Read-only file system
W/Zygote  ( 2434): createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
I/art     ( 2434): Late-enabling -Xcheck:jni
I/ActivityManager(  707): Start proc info.ecuasanitas.ecuasanitas577105 for activity info.ecuasanitas.ecuasanitas577105/.MainActivity: pid=2434 uid=10059 gids={50059, 9997, 3003, 1028, 1015} abi=x86
I/CordovaLog( 2434): Changing log level to DEBUG(3)
I/CordovaActivity( 2434): Apache Cordova native platform version 6.2.1 is starting
D/CordovaActivity( 2434): CordovaActivity.onCreate()
I/WebViewFactory( 2434): Loading com.android.webview version 37 (eng.genymotion-x86) (code 199997)
I/LibraryLoader( 2434): Loading: webviewchromium
I/LibraryLoader( 2434): Time to load native libraries: 2 ms (timestamps 7996-7998)
I/LibraryLoader( 2434): Expected native library version number "",actual native library version number ""
V/WebViewChromiumFactoryProvider( 2434): Binding Chromium to main looper Looper (main, tid 1) {3c089c46}
I/LibraryLoader( 2434): Expected native library version number "",actual native library version number ""
I/chromium( 2434): [INFO:library_loader_hooks.cc(106)] Chromium logging enabled: level = 0, default verbosity = 0
I/BrowserStartupController( 2434): Initializing chromium process, renderers=0
W/art     ( 2434): Attempt to remove local handle scope entry from IRT, ignoring
W/AudioManagerAndroid( 2434): Requires BLUETOOTH permission
W/chromium( 2434): [WARNING:resource_bundle.cc(315)] locale_file_path.empty()
I/chromium( 2434): [INFO:aw_browser_main_parts.cc(63)] Load from apk succesful, fd=28 off=46092 len=2953
I/chromium( 2434): [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:29 off:228796 len:643667
D/libEGL  ( 2434): loaded /system/lib/egl/libEGL_emulation.so
D/libEGL  ( 2434): loaded /system/lib/egl/libGLESv1_CM_emulation.so
D/libEGL  ( 2434): loaded /system/lib/egl/libGLESv2_emulation.so
D/        ( 2434): HostConnection::get() New Host Connection established 0xeb971c90, tid 2434
W/chromium( 2434): [WARNING:mailbox_synchronizer.cc(36)] MailboxSync not supported due to missing EGL image/fence support
W/chromium( 2434): [WARNING:proxy_service.cc(901)] PAC support disabled because there is no system implementation
W/chromium( 2434): [WARNING:data_reduction_proxy_settings.cc(403)] SPDY proxy OFF at startup
W/art     ( 2434): Attempt to remove local handle scope entry from IRT, ignoring
W/AwContents( 2434): onDetachedFromWindow called when already detached. Ignoring
D/SystemWebViewEngine( 2434): CordovaWebView is running on device made by: unknown
W/art     ( 2434): Attempt to remove local handle scope entry from IRT, ignoring
W/art     ( 2434): Attempt to remove local handle scope entry from IRT, ignoring
D/PluginManager( 2434): init()
D/FileUtils( 2434): Unrecognized extra filesystem identifier: assets
D/AndroidRuntime( 2434): Shutting down VM
E/AndroidRuntime( 2434): FATAL EXCEPTION: main
E/AndroidRuntime( 2434): Process: info.ecuasanitas.ecuasanitas577105, PID: 2434
E/AndroidRuntime( 2434): java.lang.RuntimeException: Unable to start activity ComponentInfo{info.ecuasanitas.ecuasanitas577105/info.ecuasanitas.ecuasanitas577105.MainActivity}: java.lang.NumberFormatException: Invalid long: "1.0"
E/AndroidRuntime( 2434): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
E/AndroidRuntime( 2434): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
E/AndroidRuntime( 2434): 	at android.app.ActivityThread.access$800(ActivityThread.java:144)
E/AndroidRuntime( 2434): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
E/AndroidRuntime( 2434): 	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 2434): 	at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 2434): 	at android.app.ActivityThread.main(ActivityThread.java:5221)
E/AndroidRuntime( 2434): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 2434): 	at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 2434): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
E/AndroidRuntime( 2434): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
E/AndroidRuntime( 2434): Caused by: java.lang.NumberFormatException: Invalid long: "1.0"
E/AndroidRuntime( 2434): 	at java.lang.Long.invalidLong(Long.java:124)
E/AndroidRuntime( 2434): 	at java.lang.Long.parse(Long.java:363)
E/AndroidRuntime( 2434): 	at java.lang.Long.decode(Long.java:177)
E/AndroidRuntime( 2434): 	at org.apache.cordova.CordovaPreferences.getInteger(CordovaPreferences.java:78)
E/AndroidRuntime( 2434): 	at org.apache.cordova.splashscreen.SplashScreen.getFadeDuration(SplashScreen.java:127)
E/AndroidRuntime( 2434): 	at org.apache.cordova.splashscreen.SplashScreen.showSplashScreen(SplashScreen.java:268)
E/AndroidRuntime( 2434): 	at org.apache.cordova.splashscreen.SplashScreen.pluginInitialize(SplashScreen.java:110)
E/AndroidRuntime( 2434): 	at org.apache.cordova.CordovaPlugin.privateInitialize(CordovaPlugin.java:58)
E/AndroidRuntime( 2434): 	at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:171)
E/AndroidRuntime( 2434): 	at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:97)
E/AndroidRuntime( 2434): 	at org.apache.cordova.PluginManager.init(PluginManager.java:86)
E/AndroidRuntime( 2434): 	at org.apache.cordova.CordovaWebViewImpl.init(CordovaWebViewImpl.java:115)
E/AndroidRuntime( 2434): 	at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:149)
E/AndroidRuntime( 2434): 	at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:224)
E/AndroidRuntime( 2434): 	at info.ecuasanitas.ecuasanitas577105.MainActivity.onCreate(MainActivity.java:39)
E/AndroidRuntime( 2434): 	at android.app.Activity.performCreate(Activity.java:5933)
E/AndroidRuntime( 2434): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
E/AndroidRuntime( 2434): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
E/AndroidRuntime( 2434): 	... 10 more
W/ActivityManager(  707):   Force finishing activity info.ecuasanitas.ecuasanitas577105/.MainActivity
D/        (  707): HostConnection::get() New Host Connection established 0xe0beee20, tid 727
E/EGL_emulation(  749): tid 749: eglCreateSyncKHR(1181): error 0x3004 (EGL_BAD_ATTRIBUTE)
I/OpenGLRenderer(  707): Initialized EGL, version 1.4
W/EGL_emulation(  707): eglSurfaceAttrib not implemented
W/OpenGLRenderer(  707): Failed to set EGL_SWAP_BEHAVIOR on surface 0xdf122140, error=EGL_SUCCESS
W/ActivityManager(  707): Activity pause timeout for ActivityRecord{264a9f6b u0 info.ecuasanitas.ecuasanitas577105/.MainActivity t6 f}
W/EGL_emulation( 1499): eglSurfaceAttrib not implemented
W/OpenGLRenderer( 1499): Failed to set EGL_SWAP_BEHAVIOR on surface 0xeb999640, error=EGL_SUCCESS
I/ActivityManager(  707): Killing 1981:com.android.camera2/u0a22 (adj 15): empty #17
W/libprocessgroup(  707): failed to open /acct/uid_10022/pid_1981/cgroup.procs: No such file or directory
W/libprocessgroup(  707): failed to open /acct/uid_10022/pid_1981/cgroup.procs: No such file or directory
W/ActivityManager(  707): Activity destroy timeout for ActivityRecord{264a9f6b u0 info.ecuasanitas.ecuasanitas577105/.MainActivity t6 f}
D/TaskPersister(  707): removeObsoleteFile: deleting file=6_task.xml
D/TaskPersister(  707): removeObsoleteFile: deleting file=6_task_thumbnail.png
I/UsageStatsService(  707): User[0] Flushing usage stats to disk
I/PowerUI.Notification( 1062): show low battery warning: level=15 [-1] playSound=true
D/ZenLog  (  707): disable_effects: 0|com.android.systemui|100|low_battery|10013,booleanState
W/KeyguardTouchDelegate( 1062): isShowingAndNotOccluded(): NO SERVICE!
W/KeyguardTouchDelegate( 1062): isInputRestricted(): NO SERVICE!
V/KeyguardTouchDelegate( 1062): Connected to keyguard
W/EGL_emulation( 1062): eglSurfaceAttrib not implemented
W/OpenGLRenderer( 1062): Failed to set EGL_SWAP_BEHAVIOR on surface 0xe1d86b60, error=EGL_SUCCESS

That error message looks remarkably informative to me. You put “1.0” into the fade duration preference for the splash screen plugin, and it is expecting an integer.

1 Like