Closed netmaxt3r closed 9 years ago
I tried the same with Eclipse and also started app directly in debug mode. Both worked fine for me.
There was an issue with this during my attempts on KitKat, but it's no longer occuring for me on Lollipop. I could try to include my change and compile a version for you to test, but that won't be today.
yeah eclipse attaches fine , android studio is having issues, let me check any workaround for this thanks
debugger attaches fine on intellij as well seems to be a android studio/local env issue , needs more investigation. closing
This happened to me too when I tried to debug my app (which wasn't a xposed module): (Lollipop - Resurrection Remix based on CM12 - Xperia SP - IntelliJ IDEA) http://hastebin.com/lexororoki.coffee I was able debug with xposed for a while, but suddenly it didn't work anymore.
I suggest to re-open this issue
in the initial report I was debugging xposed module was causing this issue , today in the office when I attached debugger to project without any xposed api the process crashed , immediately swaping app_process without xposed and debugger was fine. needs more investigation
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:117) 3.0 alpha2
@c3ph3us Well, it's the method initializing the ZygoteInit class, but its not the cause of the error...the error happens at libart.so
Can you maybe post the full stacktrace?
Seems it happens for all debugged apps if a by Xposed hooked method should be executed: A/art(22663): art/runtime/mirror/art_method.cc:201] Failed to find Dex offset for PC offset 0xfffffc68(PC 0x723bc4b9, entry_point=0x723bc851) in (hooked method here) A/libc(22663): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x3a in tid 22889 (Thread-985)
I had the same issue but it seemed to be fixed it by ticking "Disabled resource hooks" within the Xposed Installer and rebooting. I was able to debug for several hours without issue after doing this
I also deactivated the resource hooks, but without success :( Any updates here?
I dont have any problems since using Alpha 2, but it could also be a deactived module which fixed it, so try updating to Alpha 2 and/or deactivating some modules...
Alpha 2 didn't fixed it. I had to deactivate all Modules. I will try to find out what Modul causes it.
Solution: Deactivate your Module, that you want to debug. Then it is working fine!
From what I can see, any overlap between app API usage and xposed hooks = crash on debug
For example the module UnbelovedHosts was crashing debugging of an empty LibGDX project, which presumably has some networking involved.
Still not fixed: http://hastebin.com/imedatavuq.mel
It crashes the app when I attach the debugger and click something.
Sorry, but I haven't released a new version yet that includes this fix. If you tried an unofficial build by someone else, please contact that person first.
Is there any unofficial build with recent fixes for Lollipop? I doubt there is. Maybe somebody can build it...
@pylerSM yes, there's one for LP 5.1 posted by dk_zero-cool. He compiled it from my fork so it contains all the recent fixes.
Did you have the chance to test this on version 65 or later?
Guys I'm having same problem when I attach debugger on my app on Nexus 5, Android 6.0, Android Studio 1.3.2
Here is full stack trace.
12-19 19:34:49.388 28736-28742/com.seeforge.SEEForge I/art﹕ Debugger is active
12-19 19:34:53.925 201-805/? D/audio_hw_primary﹕ out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
--------- beginning of system
12-19 19:34:53.926 781-15545/? I/ActivityManager﹕ START u0 {cmp=com.seeforge.SEEForge/.ui.screens.SubmitNewActivity (has extras)} from uid 10254 on display 0
12-19 19:34:53.940 201-804/? D/audio_hw_primary﹕ select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
12-19 19:34:53.940 201-804/? D/msm8974_platform﹕ platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(15)
12-19 19:34:53.940 201-804/? D/audio_hw_primary﹕ enable_snd_device: snd_device(2: speaker)
12-19 19:34:53.943 201-804/? D/audio_hw_primary﹕ enable_audio_route: apply and update mixer path: low-latency-playback
12-19 19:34:54.075 28736-28736/com.seeforge.SEEForge E/RecyclerView﹕ No adapter attached; skipping layout
12-19 19:34:54.080 1276-1276/? I/Keyboard.Facilitator﹕ onFinishInput()
12-19 19:34:54.085 28736-28736/com.seeforge.SEEForge E/RecyclerView﹕ No adapter attached; skipping layout
12-19 19:34:54.107 781-815/? I/ActivityManager﹕ Displayed com.seeforge.SEEForge/.ui.screens.SubmitNewActivity: +176ms
--------- beginning of crash
12-19 19:34:54.135 28736-28895/com.seeforge.SEEForge A/libc﹕ Fatal signal 11 (SIGSEGV), code 2, fault addr 0x76a86ddc in tid 28895 (AsyncTask #3)
12-19 19:34:54.238 197-197/? A/DEBUG﹕ * * * * * * * * * * * * * * * *
12-19 19:34:54.238 197-197/? A/DEBUG﹕ Build fingerprint: 'google/hammerhead/hammerhead:6.0/MRA58K/2256973:user/release-keys'
12-19 19:34:54.238 197-197/? A/DEBUG﹕ Revision: '0'
12-19 19:34:54.239 197-197/? A/DEBUG﹕ ABI: 'arm'
12-19 19:34:54.239 197-197/? A/DEBUG﹕ pid: 28736, tid: 28895, name: AsyncTask #3 >>> com.seeforge.SEEForge <<<
12-19 19:34:54.239 197-197/? A/DEBUG﹕ signal 11 (SIGSEGV), code 2 (SEGVACCERR), fault addr 0x76a86ddc
12-19 19:34:54.261 197-197/? A/DEBUG﹕ r0 70f86424 r1 016c026f r2 70f863b4 r3 b4d5fe60
12-19 19:34:54.261 197-197/? A/DEBUG﹕ r4 9a4ff4ac r5 016c026e r6 b4d731f0 r7 00000000
12-19 19:34:54.261 197-197/? A/DEBUG﹕ r8 7104e8d0 r9 135723a0 sl af0a23f8 fp 9cbc9500
12-19 19:34:54.261 197-197/? A/DEBUG﹕ ip 70fe52f0 sp 9a4ff3b0 lr 70fb2660 pc b4a39952 cpsr 000e0030
12-19 19:34:54.274 197-197/? A/DEBUG﹕ backtrace:
12-19 19:34:54.275 197-197/? A/DEBUG﹕ #00 pc 001e2952 /system/lib/libart.so (art::instrumentation::Instrumentation::PopInstrumentationStackFrame(art::Thread, unsigned int_, unsigned long long, unsigned long long)+397)
12-19 19:34:54.275 197-197/? A/DEBUG﹕ #01 pc 003faf17 /system/lib/libart.so (artInstrumentationMethodExitFromCode+62)
12-19 19:34:54.275 197-197/? A/DEBUG﹕ #02 pc 000eab59 /system/lib/libart.so (art_quick_instrumentation_entry+104)
12-19 19:34:54.275 197-197/? A/DEBUG﹕ #03 pc 01649f07 /data/app/com.seeforge.SEEForge-1/oat/arm/base.odex (offset 0xa64000) (com.seeforge.SEEForge.api.AsyncResult com.seeforge.SEEForge.api.async.GetFileAsyncTask.doInBackground(java.lang.Object[])+1130)
12-19 19:34:54.275 197-197/? A/DEBUG﹕ #04 pc 000eab25 /system/lib/libart.so (art_quick_instrumentation_entry+52)
12-19 19:34:54.953 781-29582/? W/ActivityManager﹕ Force finishing activity com.seeforge.SEEForge/.ui.screens.SubmitNewActivity
12-19 19:34:54.953 197-197/? A/DEBUG﹕ Tombstone written to: /data/tombstones/tombstone_01
12-19 19:34:54.953 197-197/? E/DEBUG﹕ AM write failed: Broken pipe
12-19 19:34:54.953 781-812/? I/BootReceiver﹕ Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE)
12-19 19:34:54.961 781-29582/? W/ActivityManager﹕ Force finishing activity com.seeforge.SEEForge/.ui.screens.ReportNewActivity
12-19 19:34:54.990 781-7535/? D/GraphicsStats﹕ Buffer count: 4
12-19 19:34:54.990 781-1401/? I/WindowState﹕ WIN DEATH: Window{256f08 u0 com.seeforge.SEEForge/com.seeforge.SEEForge.ui.screens.ReportNewActivity}
12-19 19:34:54.993 781-1349/? I/WindowState﹕ WIN DEATH: Window{bc2cf31 u0 com.seeforge.SEEForge/com.seeforge.SEEForge.ui.screens.MainScreenActivity}
12-19 19:34:54.994 781-949/? I/WindowState﹕ WIN DEATH: Window{21c1f4e u0 com.seeforge.SEEForge/com.seeforge.SEEForge.ui.screens.SubmitNewActivity}
12-19 19:34:55.013 781-7453/? I/OpenGLRenderer﹕ Initialized EGL, version 1.4
12-19 19:34:55.052 213-213/? I/Zygote﹕ Process 28736 exited due to signal (11)
12-19 19:34:55.066 781-1055/? I/ActivityManager﹕ Process com.seeforge.SEEForge (pid 28736) has died
12-19 19:34:55.069 781-1055/? W/ActivityManager﹕ Scheduling restart of crashed service com.seeforge.SEEForge/.services.DownloadRequestsQueue in 1000ms
12-19 19:34:55.080 781-1055/? I/ActivityManager﹕ Start proc 29586:com.seeforge.SEEForge/u0a254 for activity com.seeforge.SEEForge/.ui.screens.MainScreenActivity
12-19 19:34:55.084 29586-29586/? I/art﹕ Late-enabling -Xcheck:jni
12-19 19:34:55.103 29586-29592/? I/art﹕ Debugger is no longer active
12-19 19:34:55.121 29586-29586/? W/System﹕ ClassLoader referenced unknown path: /data/app/com.seeforge.SEEForge-1/lib/arm
12-19 19:34:55.205 29586-29586/? I/GAv4﹕ Google Analytics 7.5.71 is starting up. To enable debug logging on a device run:
adb shell setprop log.tag.GAv4 DEBUG
adb logcat -s GAv4
12-19 19:34:55.221 29586-29586/? W/GAv4﹕ AnalyticsReceiver is not registered or is disabled. Register the receiver for reliable dispatching on non-Google Play devices. See http://goo.gl/8Rd3yj for instructions.
12-19 19:34:55.228 29586-29586/? W/GAv4﹕ CampaignTrackingReceiver is not registered, not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions.
12-19 19:34:55.233 29586-29586/? I/GAv4﹕ Logger is deprecated. To enable debug logging, please run:
adb shell setprop log.tag.GAv4 DEBUG
12-19 19:34:55.251 29586-29607/? W/GAv4﹕ AnalyticsService not registered in the app manifest. Hits might not be delivered reliably. See http://goo.gl/8Rd3yj for instructions.
12-19 19:34:55.268 29586-29608/? D/OpenGLRenderer﹕ Use EGL_SWAP_BEHAVIOR_PRESERVED: true
12-19 19:34:55.332 29586-29608/? I/Adreno-EGL﹕
Steps reproduce.
env device - sony z 2 tablet ( castor ) rom - cm12 UNOFFICIAL jdwp client - android studio
native crash log
activity manager crash