Resizing on Meta Quest gives "No hosts currently connected"
Bug description
I installed connectbot onto a meta quest 3. It seems to work fine, but side loaded apps only start in profile, not landscape. To get around this, you can resize windows arbitrarily.
It seems that when I resize connectbot, it no longer displays my session, instead saying "no hosts currently connected".
What I'm doing is unconventional, nevertheless I'm very much hoping I can get this working.
To be clear, when I leave it in profile, it displays my session just fine. I can even make the window maybe 10% bigger, no problem. But if I resize it more, it gives the above message
Steps to reproduce
- Sideload connectbot onto a meta quest 3
- Click "switch distance", so that apps are in the curved display
- Open connectbot and open any connection; notice that the connection succeeded, and text appears fine
- Resize connectbot by grabbing and dragging any of the four corners (they will flash white when highlighted).
- The console session disappears, and is replaced by the aforementioned message
Expected behavior
It will resize, and the remote terminal remains visible.
Android device
- Device: Meta Quest 3
- ConnectBot Version: 1.9.10
I realize you probably don't have a meta quest at your disposal, so I have two ideas:
- You can point me in the right direction, and I can try to fix this myself, or
- We can collaborate to fix this together, with me testing and reporting back.
Ran into the same issue on quest. I can see this warning in LogCat.
TerminalView not displayed because it is too large to fit into a software layer (or drawing cache), needs 7648900 bytes, only 1600000 available
Adding android:hardwareAccelerated="false" to AndroidManifest.xml seems to have resolved the issue for me for now.
When I try to change the size of the terminal window it just goes black. It works if I leave it alone.
After logging in, this is what I get from logcat when I try to change the window size. It bumps me back to the Hosts. After this, when I try to select the host that I was connected to I just get the "No Hosts connected" message. 08-09 02:28:59.440 3286 3286 D KeyboardInputMethodService: onShowInputRequested package: org.connectbot.debug 08-09 02:29:04.368 3286 3516 I [SEO] PanelAppHostComponent: Setting panel layer visibility of layer "#main" to invisible, panel 10 (org.connectbot.debug/org.connectbot.HostListActivity) 08-09 02:29:04.368 3286 3516 I [SEO] PanelAppHostComponent: Resize layer #main to size 1190 x 1200 shape: 2 stereo: 0, panel 10 (org.connectbot.debug/org.connectbot.HostListActivity) 08-09 02:29:04.378 1239 6625 W InputManager-JNI: Input channel object 'debe60b org.connectbot.debug/org.connectbot.ConsoleActivity (client)' was disposed without first being removed with the input manager! 08-09 02:29:04.379 3286 3516 I [SEO] PanelAppHostComponent: Setting panel layer visibility of layer "#main" to visible, panel 10 (org.connectbot.debug/org.connectbot.HostListActivity) 08-09 02:29:04.472 1239 6624 W InputManager-JNI: Input channel object 'bfe082f org.connectbot.debug/org.connectbot.HostListActivity (client)' was disposed without first being removed with the input manager! 08-09 02:29:04.488 1239 3068 D VrDesktopService: startActivity(): Intent { flg=0x14000000 cmp=org.connectbot.debug/org.connectbot.HostListActivity (has extras) } 08-09 02:29:04.488 1239 3068 D VrDesktopContainer: startActivityIntent { flg=0x14000000 cmp=org.connectbot.debug/org.connectbot.HostListActivity (has extras) } 08-09 02:29:04.498 1239 3068 I ActivityTaskManager: START u0 {flg=0x14000000 cmp=org.connectbot.debug/org.connectbot.HostListActivity (has extras)} from uid 1000 08-09 02:29:04.498 1239 1282 W UsageStatsService: Unexpected activity event reported! (org.connectbot.debug/org.connectbot.HostListActivity event : 23 instanceId : 200617158) 08-09 02:29:04.556 6781 6781 E VrosSystemServiceRegistry: Package org.connectbot.debug is retrieving Core SDK manager (VolumetricWindowManager), but the app manifest does not specify a minimum Core SDK version. Apps must fix this: this will soon start failing. See https://fburl.com/mhos-sdk-versioning. 08-09 02:29:04.682 1239 1272 I ActivityTaskManager: Displayed org.connectbot.debug/org.connectbot.HostListActivity: +175ms 08-09 02:29:04.752 3567 3720 W AppManagerInternal: Entitlement for packageName=org.connectbot.debug not found in cache, channels=[com.oculus.ocms.am.init.VrStoreChannel@eed6e64, com.oculus.ocms.am.init.Q4bChannel@812a8cd] 08-09 02:29:04.783 4790 5456 W OVRLibrary: null cursor received for query content://com.oculus.ocms.library/apps/org.connectbot.debug
For reference, this is what it says when I launch the app: 08-09 02:38:15.224 5003 5334 I [SUI] PanelAppBase: actionNavigate - App: org.connectbot.debug, Uri: , LaunchId: e96586bb-e371-45ac-ad75-8d347b488cf1 08-09 02:38:15.254 3375 3545 I [SEO] LaunchCommandHandler: Processing launch request as JSON. Request args: {"componentName":"org.connectbot.debug","timestamp":60980,"skipDestinationUi":false,"launchId":"e96586bb-e371-45ac-ad75-8d347b488cf1"}, sourcePanelId: 2 08-09 02:38:15.255 3375 3545 I [SEO] PanelAppLaunchInfo: PanelAppLaunchInfo componentString:org.connectbot.debug packageName:org.connectbot.debug serviceName: componentName:org.connectbot.debug/ 08-09 02:38:15.255 3375 3545 I [SEO] HostPlatform: Retrieving component launch information for package (org.connectbot.debug) and service () 08-09 02:38:15.255 3375 3545 I [SEO] HostPlatform: Is valid panel service component for package (org.connectbot.debug) and service () - false 08-09 02:38:15.257 3375 3545 I [SEO] PanelAppLaunchInfo: PanelAppLaunchInfo componentString:org.connectbot.debug packageName:org.connectbot.debug serviceName: componentName:org.connectbot.debug/ 08-09 02:38:15.257 3375 3545 I [SEO] HostPlatform: Retrieving component launch information for package (org.connectbot.debug) and service () 08-09 02:38:15.258 3375 3545 I [SEO] HostPlatform: Is valid panel service component for package (org.connectbot.debug) and service () - false 08-09 02:38:15.259 3375 3545 I [SEO] LaunchController: VrDesktop launch for org.connectbot.debug/org.connectbot.HostListActivity. 08-09 02:38:15.260 3375 3545 I [SEO] PanelAppLaunchInfo: NativeAppLaunchConfigurationJson ({"componentName":"org.connectbot.debug/org.connectbot.HostListActivity","colorMode":0,"com.google.android.backup.api_key":"AEdPqrEAAAAIDlFz9nSUr2g0gSytW0t2cNnYAGHDkptlVohsBA","android.max_aspect":2.1,"com.google.android.gms.version":12451000,"isVrApplication":false,"isVolumeAperture":false}) 08-09 02:38:15.261 3375 3545 I [SEO] PanelAppLaunchInfo: Layer for reprojected android app config={"componentName":"org.connectbot.debug/org.connectbot.HostListActivity","colorMode":0,"com.google.android.backup.api_key":"AEdPqrEAAAAIDlFz9nSUr2g0gSytW0t2cNnYAGHDkptlVohsBA","android.max_aspect":2.1,"com.google.android.gms.version":12451000,"isVrApplication":false,"isVolumeAperture":false} with settings: 1 08-09 02:38:15.277 3596 4255 W AppManagerInternal: Entitlement for packageName=org.connectbot.debug not found in cache, channels=[com.oculus.ocms.am.init.VrStoreChannel@85568f6, com.oculus.ocms.am.init.Q4bChannel@69cd4f7] 08-09 02:38:15.283 3375 3545 W OVRLibrary: null cursor received for query content://com.oculus.ocms.library/apps/org.connectbot.debug 08-09 02:38:15.283 3375 3545 D [SEO] 0dU: app is null, packageName: org.connectbot.debug 08-09 02:38:15.288 3375 3545 I [SEO] PanelAppLaunchInfo: NativeAppLaunchConfigurationJson ({"componentName":"org.connectbot.debug/org.connectbot.HostListActivity","colorMode":0,"com.google.android.backup.api_key":"AEdPqrEAAAAIDlFz9nSUr2g0gSytW0t2cNnYAGHDkptlVohsBA","android.max_aspect":2.1,"com.google.android.gms.version":12451000,"isVrApplication":false,"isVolumeAperture":false}) 08-09 02:38:15.289 3375 3545 I [SEO] PanelAppLaunchInfo: Layer for reprojected android app config={"componentName":"org.connectbot.debug/org.connectbot.HostListActivity","colorMode":0,"com.google.android.backup.api_key":"AEdPqrEAAAAIDlFz9nSUr2g0gSytW0t2cNnYAGHDkptlVohsBA","android.max_aspect":2.1,"com.google.android.gms.version":12451000,"isVrApplication":false,"isVolumeAperture":false} with settings: 1 08-09 02:38:15.289 3375 3545 I [SEO] DesktopPanelController: LaunchOrRestore( org.connectbot.debug/org.connectbot.HostListActivity ) with launchAsNew=0, sourcePanelId=2, launchTarget=Default, targetMonitor=-1, launchingComponent=com.oculus.systemux/com.oculus.panelapp.anytimeui.AnytimeUIPanelService 08-09 02:38:15.289 3375 3545 I [SEO] PanelAppsManager: ActivatePanelApp for component org.connectbot.debug/org.connectbot.HostListActivity. New instance requested: 0 08-09 02:38:15.289 3375 3545 I [SEO] PanelAppsManager: launching new instance of org.connectbot.debug/org.connectbot.HostListActivity 08-09 02:38:15.289 3375 3545 I [SEO] ShellAppBase: CreatePanelApp( org.connectbot.debug/org.connectbot.HostListActivity ) 08-09 02:38:15.290 3375 3545 I [SEO] PanelAppHostComponent: PanelAppHost constructor, panel 10 (org.connectbot.debug/org.connectbot.HostListActivity) 08-09 02:38:15.294 3375 3545 I [SEO] PanelAppHostComponent: Calling sendPanelLaunchIntent for panel app 10 (org.connectbot.debug/org.connectbot.HostListActivity) 08-09 02:38:15.298 3375 3545 I [SEO] PanelAppHostComponent: Panel app 10 (org.connectbot.debug/org.connectbot.HostListActivity) changing state from startup to foreground 08-09 02:38:15.298 3375 3545 I [SEO] DesktopPanelController: Checking whether desktop switch is necessary with current desktop Tablet for activation of app org.connectbot.debug/org.connectbot.HostListActivity 08-09 02:38:15.298 3375 3545 I [SEO] DesktopPanelController: Initial cooperative state for app org.connectbot.debug/org.connectbot.HostListActivity with uri vrdesktop://org.connectbot.debug/org.connectbot.HostListActivity is cooperative 08-09 02:38:15.298 3375 3545 I [SEO] LegacyBrowserRecovery: Sending message to org.connectbot.debug/org.connectbot.HostListActivity: Moving Panel to 0 08-09 02:38:15.298 3375 3545 I [SEO] VrShellDesktopBase: Remove panelApp: org.connectbot.debug/org.connectbot.HostListActivity from monitor 4 08-09 02:38:15.299 3375 3545 I [SEO] LegacyBrowserRecovery: Sending message to org.connectbot.debug/org.connectbot.HostListActivity: Moving Panel to 1 08-09 02:38:15.299 3375 3545 I [SEO] AppActivationRecord: AppActivation result is Success with reason and type:Launch, launchTarget:Default, sourcePanelId:2, targetMonitorId:5, launchAsNew:0, uri:vrdesktop://org.connectbot.debug/org.connectbot.HostListActivity, launchingComponent:com.oculus.systemux/com.oculus.panelapp.anytimeui.AnytimeUIPanelService 08-09 02:38:15.301 3375 3545 I [SEO] DesktopFocusManager: Notifying panel with id:10, component:org.connectbot.debug/org.connectbot.HostListActivity of isFocused:1 08-09 02:38:15.304 3375 3545 I [SEO] PanelAppAnalytics: First frame latency: 0.014 for id 10 org.connectbot.debug/org.connectbot.HostListActivity 08-09 02:38:15.352 3596 4255 W AppManagerInternal: Entitlement for packageName=org.connectbot.debug not found in cache, channels=[com.oculus.ocms.am.init.VrStoreChannel@85568f6, com.oculus.ocms.am.init.Q4bChannel@69cd4f7] 08-09 02:38:15.359 5003 5200 W OVRLibrary: null cursor received for query content://com.oculus.ocms.library/apps/org.connectbot.debug 08-09 02:38:15.454 6768 6768 I VrDesktopPanelApp-ShellEnvironment: ShellEnvironment{width=-1 height=-1 shape=-1 density=-1 screenScale=1.000000 renderScale=1.250000 isSuperSamplingEnabled=false isBackNavigationEnabled=false targetUri=vrdesktop://org.connectbot.debug/org.connectbot.HostListActivity analyticsSessionId=55f61307-981c-4f49-806e-664b417b1e90 isUiAutomatorTest=false} 08-09 02:38:15.454 6768 6768 D VrDesktopPanelApp-AppProperties: Finding app properties for package:org.connectbot.debug. 08-09 02:38:15.466 3596 4255 W AppManagerInternal: Entitlement for packageName=org.connectbot.debug not found in cache, channels=[com.oculus.ocms.am.init.VrStoreChannel@85568f6, com.oculus.ocms.am.init.Q4bChannel@69cd4f7] 08-09 02:38:15.468 6768 6768 W OVRLibrary: null cursor received for query content://com.oculus.ocms.library/apps/org.connectbot.debug 08-09 02:38:15.468 6768 6768 D VrDesktopPanelApp-AppProperties: Oculus library app not found for package:org.connectbot.debug. 08-09 02:38:15.469 6768 6768 D VrDesktopPanelApp-AppProperties: AppProperties, ActivityName:org.connectbot.HostListActivity, ActivityCanHandleScreenResize:false, ActivityCanHandleOrientation:false, ApplicationIsResizable:true, AppDisplayName:ConnectBot, ShouldInhibitScreenCapture:false, DimensionsUtils: DimensionsUtils, DefaultOrientation:-1, RequestedPortraitFeature:false. 08-09 02:38:15.470 6768 6768 I VrDesktopPanelApp-Java: Target: LaunchConfiguration{w=400 h=640 shape=2 dpi=160 scale=1.250000 intent=Intent { flg=0x14000000 cmp=org.connectbot.debug/org.connectbot.HostListActivity (has extras) }} 08-09 02:38:15.507 3375 3545 I [SEO] PanelAppHostComponent: Setting panel layer visibility of layer "#main" to invisible, panel 10 (org.connectbot.debug/org.connectbot.HostListActivity) 08-09 02:38:15.507 3375 3545 I [SEO] PanelAppHostComponent: Resize layer #main to size 500 x 800 shape: 2 stereo: 0, panel 10 (org.connectbot.debug/org.connectbot.HostListActivity) 08-09 02:38:15.507 3375 3545 I [SEO] PanelAppHostComponent: Setting panel layer visibility of layer "#main" to visible, panel 10 (org.connectbot.debug/org.connectbot.HostListActivity) 08-09 02:38:15.562 1247 5430 D VrDesktopService: startActivity(): Intent { flg=0x14000000 cmp=org.connectbot.debug/org.connectbot.HostListActivity (has extras) } 08-09 02:38:15.562 1247 5430 D VrDesktopContainer: startActivityIntent { flg=0x14000000 cmp=org.connectbot.debug/org.connectbot.HostListActivity (has extras) } 08-09 02:38:15.585 1247 5430 I ActivityTaskManager: START u0 {flg=0x14000000 cmp=org.connectbot.debug/org.connectbot.HostListActivity (has extras)} from uid 1000 08-09 02:38:15.646 1247 1283 I ActivityManager: Start proc 6790:org.connectbot.debug/u0a132 for top-activity {org.connectbot.debug/org.connectbot.HostListActivity} 08-09 02:38:15.660 3596 3733 W AppManagerInternal: Entitlement for packageName=org.connectbot.debug not found in cache, channels=[com.oculus.ocms.am.init.VrStoreChannel@85568f6, com.oculus.ocms.am.init.Q4bChannel@69cd4f7] 08-09 02:38:15.666 3596 3733 W OVRLibrary: null cursor received for query content://com.oculus.ocms.library/apps/org.connectbot.debug 08-09 02:38:15.758 6790 6790 W re-initialized>: type=1400 audit(0.0:223): avc: granted { execute } for path="/data/data/org.connectbot.debug/code_cache/startup_agents/8e9a2d18-agent.so" dev="dm-44" ino=4596234 scontext=u:r:untrusted_app:s0:c132,c256,c512,c768 tcontext=u:object_r:app_data_file:s0:c132,c256,c512,c768 tclass=file app=org.connectbot.debug 08-09 02:38:15.781 6790 6790 W onnectbot.debu: DexFile /data/data/org.connectbot.debug/code_cache/.studio/instruments-bd0f66b3.jar is in boot class path but is not in a known location 08-09 02:38:15.851 6790 6790 V GraphicsEnvironment: ANGLE Developer option for 'org.connectbot.debug' set to: 'default' 08-09 02:38:15.851 6790 6790 V GraphicsEnvironment: ANGLE GameManagerService for org.connectbot.debug: false 08-09 02:38:15.920 6790 6790 E VrosSystemServiceRegistry: Package org.connectbot.debug is retrieving Core SDK manager (VolumetricWindowManager), but the app manifest does not specify a minimum Core SDK version. Apps must fix this: this will soon start failing. See https://fburl.com/mhos-sdk-versioning. 08-09 02:38:16.184 6790 6824 W GooglePlayServicesUtil: org.connectbot.debug requires the Google Play Store, but it is missing. 08-09 02:38:16.201 6790 6813 I AdrenoGLES-0: Process Name : org.connectbot.debug 08-09 02:38:16.281 1247 1271 I ActivityTaskManager: Displayed org.connectbot.debug/org.connectbot.HostListActivity: +682ms
As a workaround, could I just increase the size of the window the app opens into?
@kruton is there any hope in getting your eye on this? It seems like it ought to be a straightforward fix, and this has more or less caused me to stop using connectbot, which is a shame.
According to this comment, "this issue has to do with the android:configChanges manifest value". It seems like it might be a relatively easy fix, would you be willing to take a look, @kruton ?