{"action":"created","issue":{"url":"https://api.github.com/repos/baldurk/renderdoc/issues/900","repository_url":"https://api.github.com/repos/baldurk/renderdoc","labels_url":"https://api.github.com/repos/baldurk/renderdoc/issues/900/labels{/name}","comments_url":"https://api.github.com/repos/baldurk/renderdoc/issues/900/comments","events_url":"https://api.github.com/repos/baldurk/renderdoc/issues/900/events","html_url":"https://github.com/baldurk/renderdoc/issues/900","id":302954551,"number":900,"title":"Error - Couldn't make JDWP connection","user":{"login":"stolk","id":455280,"avatar_url":"https://avatars2.githubusercontent.com/u/455280?v=4","gravatar_id":"","url":"https://api.github.com/users/stolk","html_url":"https://github.com/stolk","followers_url":"https://api.github.com/users/stolk/followers","following_url":"https://api.github.com/users/stolk/following{/other_user}","gists_url":"https://api.github.com/users/stolk/gists{/gist_id}","starred_url":"https://api.github.com/users/stolk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stolk/subscriptions","organizations_url":"https://api.github.com/users/stolk/orgs","repos_url":"https://api.github.com/users/stolk/repos","events_url":"https://api.github.com/users/stolk/events{/privacy}","received_events_url":"https://api.github.com/users/stolk/received_events","type":"User","site_admin":false},"labels":[{"id":83527755,"url":"https://api.github.com/repos/baldurk/renderdoc/labels/status:%20unresolved","name":"status: unresolved","color":"e11d21","default":false},{"id":83085853,"url":"https://api.github.com/repos/baldurk/renderdoc/labels/type:%20bug","name":"type: bug","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-07T03:45:16Z","updated_at":"2018-03-07T17:19:04Z","closed_at":null,"author_association":"NONE","body":"I am trying to use renderdoc on my Android device.\r\n\r\nPer the documentation, I made sure that:\r\n  1. I did not have Android Studio running\r\n  2. The device shows up in adb. (I can do a logcat for it.)\r\n\r\n```\r\nbram@ubuntu64:~/Downloads/renderdoc_1.0/bin$ adb devices\r\nList of devices attached\r\n7YRBBDB6B3003105\tdevice\r\n```\r\n\r\nWhen I set the remote context, an Android app is installed, and opens up, and I can select my app in the launch dialog.\r\n\r\nHowever, as I launch, I get:\r\n\r\n**Error   - Couldn't make JDWP connection**\r\n\r\n**Error   - Failed to inject using JDWP**\r\n\r\n\r\n\r\n```\r\nbram@ubuntu64:~/Downloads/renderdoc_1.0/bin$ ./qrenderdoc \r\nLog     - QRenderDoc initialising.\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:39970 localabstract:renderdoc_39920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:38970 localabstract:renderdoc_38920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell getprop ro.product.manufacturer'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell getprop ro.product.model'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell setprop debug.vulkan.layers :'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell setprop debug.vulkan.layers :'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:39970 localabstract:renderdoc_39920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:38970 localabstract:renderdoc_38920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell pm list packages -3'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:39970 localabstract:renderdoc_39920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:38970 localabstract:renderdoc_38920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:39970 localabstract:renderdoc_39920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:38970 localabstract:renderdoc_38920'\r\nLog     - Checking that APK is debuggable\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell dumpsys package com.steenriver.biplane'\r\nLog     - Checking for root access on 7YRBBDB6B3003105\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 root'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell whoami'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell test -e /system/xbin/su && echo found'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:39970 localabstract:renderdoc_39920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:38970 localabstract:renderdoc_38920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:39970 localabstract:renderdoc_39920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:38970 localabstract:renderdoc_38920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:39970 localabstract:renderdoc_39920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:38970 localabstract:renderdoc_38920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:39970 localabstract:renderdoc_39920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:38970 localabstract:renderdoc_38920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell cmd package resolve-activity -c android.intent.category.LAUNCHER com.steenriver.biplane'\r\nError   - Didn't find default activity in adb output\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward --remove tcp:39021'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell am force-stop com.steenriver.biplane'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell setprop debug.vulkan.layers VK_LAYER_RENDERDOC_Capture'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell mkdir -p /sdcard/Android/data/com.steenriver.biplane'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell setprop debug.rdoc.RENDERDOC_CAPTUREOPTS ababaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabalaf'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell pm path com.steenriver.biplane'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell ls /data/app/com.steenriver.biplane-1/base.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_dependencies_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_0_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_1_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_2_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_3_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_4_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_5_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_6_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_7_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_8_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_9/lib/*/libVkLayer_GLES_RenderDoc.so'\r\nLog     - No library found in /data/app/com.steenriver.biplane-1/base.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_dependencies_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_0_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_1_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_2_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_3_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_4_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_5_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_6_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_7_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_8_apk.apk\r\npackage:/data/app/com.steenriver.biplane-1/split_lib_slice_9/lib/*/libVkLayer_GLES_RenderDoc.so for com.steenriver.biplane - assuming injection is required.\r\nLog     - Setting up to launch the application as a debugger to inject.\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell am start -S -D com.steenriver.biplane/'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell ps -A | grep com.steenriver.biplane'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell ps -A | grep com.steenriver.biplane'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell ps -A | grep com.steenriver.biplane'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell ps -A | grep com.steenriver.biplane'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 shell ps -A | grep com.steenriver.biplane'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:39970 localabstract:renderdoc_39920'\r\nLog     - COMMAND: /home/bram/android-sdk-linux/platform-tools/adb '-s 7YRBBDB6B3003105 forward tcp:38970 localabstract:renderdoc_38920'\r\nError   - Couldn't make JDWP connection\r\nError   - Failed to inject using JDWP\r\n```\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/baldurk/renderdoc/issues/comments/371213198","html_url":"https://github.com/baldurk/renderdoc/issues/900#issuecomment-371213198","issue_url":"https://api.github.com/repos/baldurk/renderdoc/issues/900","id":371213198,"user":{"login":"baldurk","id":661798,"avatar_url":"https://avatars3.githubusercontent.com/u/661798?v=4","gravatar_id":"","url":"https://api.github.com/users/baldurk","html_url":"https://github.com/baldurk","followers_url":"https://api.github.com/users/baldurk/followers","following_url":"https://api.github.com/users/baldurk/following{/other_user}","gists_url":"https://api.github.com/users/baldurk/gists{/gist_id}","starred_url":"https://api.github.com/users/baldurk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baldurk/subscriptions","organizations_url":"https://api.github.com/users/baldurk/orgs","repos_url":"https://api.github.com/users/baldurk/repos","events_url":"https://api.github.com/users/baldurk/events{/privacy}","received_events_url":"https://api.github.com/users/baldurk/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T17:19:04Z","updated_at":"2018-03-07T17:19:04Z","author_association":"OWNER","body":"It makes sense to have 7.0 as a minimum for vulkan dev but maybe we could support GLES on older devices? I guess it depends on what the problem is, and how common it is for devs to be running older devices.\r\n\r\nIt's not possible to attach to a running program as RenderDoc requires its hooks to be present from startup to work properly. Since you're using GLES, you could try linking against the renderdoc library directly - if you extract the relevant library from the provided apks and link to it while building your binaries, then remove any uses of `-lEGL` or `-lGLESv2` or anything like that so that renderdoc's exported GL symbols are used. This is a very messy way of hooking so it might take some doing to get it right, but it avoids the need to set up a debug connection.\r\n\r\nFor the reinstalling issue, that seems like it's a problem with the 1.0 build unfortunately. It looks like `android:versionName` is set to the commit hash in unofficial builds, but just the version number in stable builds. Unfortunately my stable build scripts weren't set up to pass the cmake variable needed to toggle this behaviour. I'm not sure why the distinction is needed since the commit hash seems like it would work OK in stable builds - @cnorthrop wrote that code so he may be able to shine a light on it. Either way it can be fixed for the next stable release.\r\n\r\nFWIW, as long as the renderdoc app is running on the device then the UI will just connect to it without checking for uninstall/reinstall, so that can be used as a workaround to avoid this behaviour."}}
{"actor":{"display_login":"baldurk"}}