• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to debug an app in Genymotion

marcnn

Lurker
I used the Qt Creator to create an x86 APK of a basic Qt app. The Qt libraries were bundled with it. I dragged and dropped the resulting APK to the Genymotion emulator (I used it as the SDK emulator fails to work for me)

After the app is installed in Genymotion, it's launched and I get a dialog

Unfortunately, YourApp has stopped​

How can I diagnose it inside Genymotion? Is there any way to get a sensible log of an app as it would be done in the desktop environment?

The app works correctly if built and run in a desktop environment. My host is Linux Mint 17.1 x64
 
You can see error details in logcat. I not use Linux, but under Windows I can see all crashes with command
Code:
adb logcat -d *:E > logcat.txt
and full logcat with
Code:
adb logcat -d> logcat.txt
After one of these commands last logcat messages written to file logcat.txt
Genymotion by default uses own ADB, that can be changed in settings
 
Thanks! After getting the log, I found out the cause:
Code:
Abort message: '(null):0 ((null)): Aborted. Incompatible processor: missing feature 0x10 - ssse3.

The whole log is:
Code:
V/WindowManager(  487): Adding window Window{203de4c4 u0 org.qtproject.example.YourApp/org.qtproject.qt5.android.bindings.QtActivity} at 2 of 8 (before Window{297502fb u0 Starting org.qtproject.example.YourApp})
I/OpenGLRenderer( 1571): Initialized EGL, version 1.4
D/  ( 1571): HostConnection::get() New Host Connection established 0xb42e7ac0, tid 1590
D/OpenGLRenderer( 1571): Enabling debug mode 0
W/EGL_emulation( 1571): eglSurfaceAttrib not implemented
W/OpenGLRenderer( 1571): Failed to set EGL_SWAP_BEHAVIOR on surface 0xb4125c00, error=EGL_SUCCESS
F/libYourApp.so( 1571): (null):0 ((null)): Aborted. Incompatible processor: missing feature 0x10 - ssse3.
F/libc  ( 1571): Fatal signal 6 (SIGABRT), code -6 in tid 1589 (QtThread)
I/ActivityManager(  487): Displayed org.qtproject.example.YourApp/org.qtproject.qt5.android.bindings.QtActivity: +1s816ms (total +9s331ms)
W/AudioFlinger(  89): write blocked for 1235 msecs, 1 delayed writes, thread 0xb58ba000
I/DEBUG  (  86): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG  (  86): Build fingerprint: 'generic/vbox86p/vbox86p:5.1/LMY47D/buildbot04091026:userdebug/test-keys'
I/DEBUG  (  86): Revision: '0'
I/DEBUG  (  86): ABI: 'x86'
I/DEBUG  (  86): pid: 1571, tid: 1589, name: QtThread  >>> org.qtproject.example.YourApp <<<
I/DEBUG  (  86): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
I/DEBUG  (  86): Abort message: '(null):0 ((null)): Aborted. Incompatible processor: missing feature 0x10 - ssse3.
I/DEBUG  (  86): '
I/DEBUG  (  86):  eax 00000000  ebx 00000623  ecx 00000635  edx 00000006
I/DEBUG  (  86):  esi a17bedb8  edi 00000002
I/DEBUG  (  86):  xcs 00000073  xds 0000007b  xes 0000007b  xfs 0000006f  xss 0000007b
I/DEBUG  (  86):  eip b75073c6  ebp 00000635  esp a17be580  flags 00200286
I/DEBUG  (  86):
I/DEBUG  (  86): backtrace:
I/DEBUG  (  86):  #00 pc 000753c6  /system/lib/libc.so (tgkill+22)
I/DEBUG  (  86):  #01 pc 000221ab  /system/lib/libc.so (pthread_kill+155)
I/DEBUG  (  86):  #02 pc 00023a24  /system/lib/libc.so (raise+36)
I/DEBUG  (  86):  #03 pc 0001be24  /system/lib/libc.so (abort+84)
I/DEBUG  (  86):  #04 pc 000b0db1  /data/app/org.qtproject.example.YourApp-1/lib/x86/libQt5Core.so (QMessageLogger::fatal(char const*, ...) const+273)
I/DEBUG  (  86):  #05 pc 001517dd  /data/app/org.qtproject.example.YourApp-1/lib/x86/libQt5Core.so (qDetectCpuFeatures()+509)
I/DEBUG  (  86):  #06 pc 0033e637  /data/app/org.qtproject.example.YourApp-1/lib/x86/libQt5Gui.so (qInitDrawhelperAsm()+391)
I/DEBUG  (  86):  #07 pc 000ec873  /data/app/org.qtproject.example.YourApp-1/lib/x86/libQt5Gui.so (QGuiApplicationPrivate::init()+675)
I/DEBUG  (  86):  #08 pc 000ed4aa  /data/app/org.qtproject.example.YourApp-1/lib/x86/libQt5Gui.so (QGuiApplication::QGuiApplication(QGuiApplicationPrivate&)+58)
I/DEBUG  (  86):  #09 pc 0017661f  /data/app/org.qtproject.example.YourApp-1/lib/x86/libQt5Widgets.so (QApplication::QApplication(int&, char**, int)+79)
I/DEBUG  (  86):  #10 pc 00001251  /data/app/org.qtproject.example.YourApp-1/lib/x86/libYourApp.so (main+65)
I/DEBUG  (  86):  #11 pc 0002c5dc  /data/data/org.qtproject.example.YourApp/qt-reserved-files/plugins/platforms/android/libqtforandroid.so
I/DEBUG  (  86):  #12 pc 000211d8  /system/lib/libc.so (__pthread_start(void*)+56)
I/DEBUG  (  86):  #13 pc 0001c559  /system/lib/libc.so (__start_thread+25)
I/DEBUG  (  86):  #14 pc 00013126  /system/lib/libc.so (__bionic_clone+70)
I/DEBUG  (  86):
I/DEBUG  (  86): Tombstone written to: /data/tombstones/tombstone_01
I/BootReceiver(  487): Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE)
W/ActivityManager(  487):  Force finishing activity 1 org.qtproject.example.YourApp/org.qtproject.qt5.android.bindings.QtActivity
E/JavaBinder(  487): !!! FAILED BINDER TRANSACTION !!!
I/Zygote  (  95): Process 1571 exited due to signal (6)
W/InputDispatcher(  487): channel '203de4c4 org.qtproject.example.YourApp/org.qtproject.qt5.android.bindings.QtActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
E/InputDispatcher(  487): channel '203de4c4 org.qtproject.example.YourApp/org.qtproject.qt5.android.bindings.QtActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
E/EGL_emulation(  275): tid 275: eglCreateSyncKHR(1209): error 0x3004 (EGL_BAD_ATTRIBUTE)
W/art  (  487): Long monitor contention event with owner method=android.graphics.Bitmap com.android.server.wm.WindowManagerService.screenshotApplications(android.os.IBinder, int, int, int, boolean) from WindowManagerService.java:6129 waiters=2 for 170ms
I/WindowState(  487): WIN DEATH: Window{203de4c4 u0 org.qtproject.example.YourApp/org.qtproject.qt5.android.bindings.QtActivity}
W/InputDispatcher(  487): Attempted to unregister already unregistered input channel '203de4c4 org.qtproject.example.YourApp/org.qtproject.qt5.android.bindings.QtActivity (server)'
W/ActivityManager(  487): Exception thrown during pause
W/ActivityManager(  487): android.os.DeadObjectException
W/ActivityManager(  487):    at android.os.BinderProxy.transactNative(Native Method)
W/ActivityManager(  487):    at android.os.BinderProxy.transact(Binder.java:496)
W/ActivityManager(  487):    at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:704)
W/ActivityManager(  487):    at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:825)
W/ActivityManager(  487):    at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2726)
W/ActivityManager(  487):    at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2583)
W/ActivityManager(  487):    at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2497)
W/ActivityManager(  487):    at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11500)
W/ActivityManager(  487):    at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11397)
W/ActivityManager(  487):    at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12081)
W/ActivityManager(  487):    at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:11592)
W/ActivityManager(  487):    at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
E/lowmemorykiller(  272): Error opening /proc/1571/oom_score_adj; errno=2
I/ActivityManager(  487): Process org.qtproject.example.YourApp (pid 1571) has died
W/EGL_emulation(  738): eglSurfaceAttrib not implemented
W/OpenGLRenderer(  738): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa09f9d80, error=EGL_SUCCESS
I/OpenGLRenderer(  487): Initialized EGL, version 1.4
D/  (  275): HostConnection::get() New Host Connection established 0xb68c9220, tid 1593
W/EGL_emulation(  487): eglSurfaceAttrib not implemented
W/OpenGLRenderer(  487): Failed to set EGL_SWAP_BEHAVIOR on surface 0xa1459860, error=EGL_SUCCESS

What can I do with it?

/edit: my /proc/cpuinfo is http://paste.ubuntu.com/10938859/
 
Back
Top Bottom