Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Delayed click event shouldnt delay scrolling and crash the app #138

Closed
xDoge26 opened this issue Feb 7, 2023 · 4 comments
Closed

Comments

@xDoge26
Copy link

xDoge26 commented Feb 7, 2023

As you can see , it shouldnt delay scrolling and crash the app if i want to go back to avnc menu

Screenrecorder-2023-02-07-11-55-34-856.mp4
@gujjwal00
Copy link
Owner

Thanks for reporting the issue @ThieuMinh26. I didn't think about the effect of delayed events on scrolling. I will constrain the delay to left-click.

Can you please attach the logs after crash? I just want to confirm my theory about root cause. You can copy logs from Settings -> Tools -> Logs.

@xDoge26
Copy link
Author

xDoge26 commented Feb 7, 2023

Here

Logs

--------- beginning of main
02-07 12:31:27.226 28410 28410 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=325729743, downTime=325729743, deviceId=-1, source=0x101, displayId=0 }
02-07 12:31:27.279 28410 28410 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=325729809, downTime=325729743, deviceId=-1, source=0x101, displayId=0 }
02-07 12:31:27.565 28410 28410 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=325730090, downTime=325730090, deviceId=-1, source=0x101, displayId=0 }
02-07 12:31:27.618 28410 28410 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=325730150, downTime=325730090, deviceId=-1, source=0x101, displayId=0 }
02-07 12:31:27.673 28410 28410 D FrameIndicator: support status: 1 0x7e0fe77018 0x7e0fe774c4
02-07 12:31:28.133 28410 28410 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=325730652, downTime=325730652, deviceId=-1, source=0x101, displayId=0 }
02-07 12:31:28.175 28410 28410 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=325730707, downTime=325730652, deviceId=-1, source=0x101, displayId=0 }
02-07 12:31:28.932 28410 28428 D AnrScout: AppScoutStateMachine created
--------- beginning of system
02-07 12:31:28.932 28410 28410 I Timeline: Timeline: Activity_launch_request time:325731467
02-07 12:31:28.946 28410 28410 D DecorView[]: getWindowModeFromSystem  windowmode is 1
02-07 12:31:28.965 28410 28410 D DecorView[]: getWindowModeFromSystem  windowmode is 1
02-07 12:31:28.989 28410 28410 D FrameIndicator: support status: 1 0x7e5f552018 0x7e5f5524c4
02-07 12:31:29.009 28410 28438 E LB      : fail to open file: No such file or directory
02-07 12:31:29.786 28410 28410 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=325732319, downTime=325732319, deviceId=-1, source=0x101, displayId=0 }
02-07 12:31:29.833 28410 28410 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=325732368, downTime=325732319, deviceId=-1, source=0x101, displayId=0 }
02-07 12:31:37.884 28591 28591 E com.gaurav.avn: Not starting debugger since process cannot load the jdwp agent.
02-07 12:31:37.903 28591 28591 W ActivityThread: registerApplicationScoutThread result:true
02-07 12:31:37.911 28591 28611 D AnrScout: AppScoutStateMachine created
02-07 12:31:37.921 28591 28591 W com.gaurav.avn: JIT profile information will not be recorded: profile file does not exist.
02-07 12:31:37.926 28591 28591 I Perf    : Connecting to perf service.
02-07 12:31:37.930 28591 28591 I ForceDarkHelper: mForceDarkOrigin true
02-07 12:31:37.932 28591 28591 I MiuiForceDarkConfig: MiuiForceDarkConfig setConfig density:2.750000, mainRule:0, secondaryRule:0, tertiaryRule:0
02-07 12:31:37.933 28591 28591 D NetworkSecurityConfig: No Network Security Config specified, using platform default
02-07 12:31:37.934 28591 28591 I ContentProviderMonitor: PerfMonitor installContentProviders : before publish content providers
02-07 12:31:37.933 28591 28591 D NetworkSecurityConfig: No Network Security Config specified, using platform default
02-07 12:31:37.956 28591 28591 I Timeline: Timeline: Activity_launch_request time:325740491
02-07 12:31:37.968 28591 28591 D View    : com.gaurav.avnc initForcedUseForceDark: 1
02-07 12:31:37.973 28591 28591 D DecorView[]: getWindowModeFromSystem  windowmode is 1
02-07 12:31:37.986 28591 28591 D AppCompatDelegate: Checking for metadata for AppLocalesMetadataHolderService : Service not found
02-07 12:31:37.994 28591 28591 D DecorView[]: getWindowModeFromSystem  windowmode is 1
02-07 12:31:38.044 28591 28591 D FrameIndicator: support status: 1 0x7e08e6b018 0x7e08e6b4c4
02-07 12:31:38.046 28591 28615 I AdrenoGLES-0: QUALCOMM build                   : 5eaa426211, I07ee46fc66
02-07 12:31:38.046 28591 28615 I AdrenoGLES-0: Build Date                       : 10/08/21
02-07 12:31:38.046 28591 28615 I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.32.02.16
02-07 12:31:38.046 28591 28615 I AdrenoGLES-0: Local Branch                     : 
02-07 12:31:38.046 28591 28615 I AdrenoGLES-0: Remote Branch                    : 
02-07 12:31:38.046 28591 28615 I AdrenoGLES-0: Remote Branch                    : 
02-07 12:31:38.046 28591 28615 I AdrenoGLES-0: Reconstruct Branch               : 
02-07 12:31:38.046 28591 28615 I AdrenoGLES-0: Build Config                     : S P 10.0.7 AArch64
02-07 12:31:38.046 28591 28615 I AdrenoGLES-0: Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
02-07 12:31:38.050 28591 28615 I AdrenoGLES-0: PFP: 0x016ee197, ME: 0x00000000
02-07 12:31:38.161 28591 28615 E LB      : fail to open file: No such file or directory
02-07 12:31:38.637 28591 28591 W MirrorManager: this model don't Support
02-07 12:31:38.702 28591 28591 I Timeline: Timeline: Activity_launch_request time:325741237
02-07 12:31:38.729 28591 28591 D DecorView[]: getWindowModeFromSystem  windowmode is 1
02-07 12:31:38.730 28591 28628 I NativeVnc: VNC server supports protocol version 3.8 (viewer 3.8)
02-07 12:31:38.731 28591 28628 I NativeVnc: We have 2 security types to read
02-07 12:31:38.731 28591 28628 I NativeVnc: 0) Received security type 19
02-07 12:31:38.731 28591 28628 I NativeVnc: Selecting security type 19 (0/2 in the list)
02-07 12:31:38.731 28591 28628 I NativeVnc: 1) Received security type 2
02-07 12:31:38.731 28591 28628 I NativeVnc: Selected Security Scheme 19
02-07 12:31:38.731 28591 28628 I NativeVnc: Got VeNCrypt version 0.2 from server.
02-07 12:31:38.731 28591 28628 I NativeVnc: We have 2 security types to read
02-07 12:31:38.731 28591 28628 I NativeVnc: 0) Received security type 2
02-07 12:31:38.731 28591 28628 I NativeVnc: 1) Received security type 258
02-07 12:31:38.731 28591 28628 I NativeVnc: Selecting security type 258
02-07 12:31:38.733 28591 28628 I NativeVnc: OpenSSL version wolfSSL 5.5.4 initialized.
02-07 12:31:38.774 28591 28628 I NativeVnc: TLS session initialized.
02-07 12:31:38.778 28591 28628 I NativeVnc: VNC authentication succeeded
02-07 12:31:38.778 28591 28628 I NativeVnc: Desktop name "remote-desktop"
02-07 12:31:38.778 28591 28628 I NativeVnc: Connected to VNC server, using protocol version 3.8
02-07 12:31:38.778 28591 28628 I NativeVnc: VNC server default format:
02-07 12:31:38.778 28591 28628 I NativeVnc:   32 bits per pixel.
02-07 12:31:38.778 28591 28628 I NativeVnc:   Least significant byte first in each pixel.
02-07 12:31:38.778 28591 28628 I NativeVnc:   TRUE colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
02-07 12:31:38.991 28591 28591 D FrameIndicator: support status: 1 0x7e08e6b018 0x7e08e6b4c4
02-07 12:31:39.006 28591 28591 D DecorView[]: getWindowModeFromSystem  windowmode is 1
02-07 12:31:39.038 28591 28591 D DecorView[]: getWindowModeFromSystem  windowmode is 1
02-07 12:31:39.054 28591 28591 D SurfaceView: UPDATE null, mIsCastMode = false
02-07 12:31:39.058 28591 28591 D FrameIndicator: support status: 1 0x7e08e6b018 0x7e08e6b4c4
02-07 12:31:39.071 28591 28632 D ShaderCompiler: 
02-07 12:31:39.073 28591 28632 D ShaderCompiler: 
02-07 12:31:39.082 28591 28615 D OpenGLRenderer: endAllActiveAnimators on 0xb400007e025eed00 (MaterialCardView) with handle 0xb400007e0282ef80
02-07 12:31:39.083 28591 28632 D ShaderCompiler: 
02-07 12:31:45.941 28591 28613 I com.gaurav.avn: ProcessProfilingInfo new_methods=729 is saved saved_to_disk=1 resolve_classes_delay=8000
02-07 12:31:52.517 28591 28591 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=325755045, downTime=325755045, deviceId=-1, source=0x101, displayId=0 }
02-07 12:31:52.519 28591 28591 D MIUIInput: [KeyEvent] ViewRootImpl KeyEvent { action=ACTION_UP, keyCode=KEYCODE_BACK, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=325755051, downTime=325755045, deviceId=-1, source=0x101, displayId=0 }
02-07 12:31:52.580 28591 28591 D FrameIndicator: support status: 1 0x7e08e6b018 0x7e08e6b4c4
--------- beginning of crash
02-07 12:31:54.070 28591 28640 E AndroidRuntime: FATAL EXCEPTION: pool-3-thread-1
02-07 12:31:54.070 28591 28640 E AndroidRuntime: Process: com.gaurav.avnc, PID: 28591
02-07 12:31:54.070 28591 28640 E AndroidRuntime: java.lang.Error: java.lang.InterruptedException
02-07 12:31:54.070 28591 28640 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1173)
02-07 12:31:54.070 28591 28640 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
02-07 12:31:54.070 28591 28640 E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:923)
02-07 12:31:54.070 28591 28640 E AndroidRuntime: Caused by: java.lang.InterruptedException
02-07 12:31:54.070 28591 28640 E AndroidRuntime: 	at java.lang.Thread.sleep(Native Method)
02-07 12:31:54.070 28591 28640 E AndroidRuntime: 	at java.lang.Thread.sleep(Thread.java:442)
02-07 12:31:54.070 28591 28640 E AndroidRuntime: 	at java.lang.Thread.sleep(Thread.java:358)
02-07 12:31:54.070 28591 28640 E AndroidRuntime: 	at com.gaurav.avnc.vnc.Messenger$$ExternalSyntheticLambda3.run(Unknown Source:2)
02-07 12:31:54.070 28591 28640 E AndroidRuntime: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
02-07 12:31:54.070 28591 28640 E AndroidRuntime: 	... 2 more
02-07 12:31:54.154 28591 28640 I Process : Sending signal. PID: 28591 SIG: 9
02-07 12:31:56.371 28696 28696 E com.gaurav.avn: Not starting debugger since process cannot load the jdwp agent.
02-07 12:31:56.390 28696 28696 W ActivityThread: registerApplicationScoutThread result:true
02-07 12:31:56.400 28696 28715 D AnrScout: AppScoutStateMachine created
02-07 12:31:56.409 28696 28696 W com.gaurav.avn: JIT profile information will not be recorded: profile file does not exist.
02-07 12:31:56.414 28696 28696 I Perf    : Connecting to perf service.
02-07 12:31:56.418 28696 28696 I ForceDarkHelper: mForceDarkOrigin true
02-07 12:31:56.419 28696 28696 I MiuiForceDarkConfig: MiuiForceDarkConfig setConfig density:2.750000, mainRule:0, secondaryRule:0, tertiaryRule:0
02-07 12:31:56.420 28696 28696 D NetworkSecurityConfig: No Network Security Config specified, using platform default
02-07 12:31:56.422 28696 28696 I ContentProviderMonitor: PerfMonitor installContentProviders : before publish content providers
02-07 12:31:56.420 28696 28696 D NetworkSecurityConfig: No Network Security Config specified, using platform default
02-07 12:31:56.441 28696 28696 I Timeline: Timeline: Activity_launch_request time:325758977
02-07 12:31:56.454 28696 28696 D View    : com.gaurav.avnc initForcedUseForceDark: 1
02-07 12:31:56.459 28696 28696 D DecorView[]: getWindowModeFromSystem  windowmode is 1
02-07 12:31:56.473 28696 28696 D AppCompatDelegate: Checking for metadata for AppLocalesMetadataHolderService : Service not found
02-07 12:31:56.480 28696 28696 D DecorView[]: getWindowModeFromSystem  windowmode is 1
02-07 12:31:56.530 28696 28696 D FrameIndicator: support status: 1 0x7e08e59018 0x7e08e594c4
02-07 12:31:56.531 28696 28721 I AdrenoGLES-0: QUALCOMM build                   : 5eaa426211, I07ee46fc66
02-07 12:31:56.531 28696 28721 I AdrenoGLES-0: Build Date                       : 10/08/21
02-07 12:31:56.531 28696 28721 I AdrenoGLES-0: OpenGL ES Shader Compiler Version: EV031.32.02.16
02-07 12:31:56.531 28696 28721 I AdrenoGLES-0: Local Branch                     : 
02-07 12:31:56.531 28696 28721 I AdrenoGLES-0: Remote Branch                    : 
02-07 12:31:56.531 28696 28721 I AdrenoGLES-0: Remote Branch                    : 
02-07 12:31:56.531 28696 28721 I AdrenoGLES-0: Reconstruct Branch               : 
02-07 12:31:56.531 28696 28721 I AdrenoGLES-0: Build Config                     : S P 10.0.7 AArch64
02-07 12:31:56.531 28696 28721 I AdrenoGLES-0: Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
02-07 12:31:56.536 28696 28721 I AdrenoGLES-0: PFP: 0x016ee197, ME: 0x00000000
02-07 12:31:56.572 28696 28721 E LB      : fail to open file: No such file or directory
02-07 12:31:56.956 28696 28696 W MirrorManager: this model don't Support
02-07 12:31:57.014 28696 28696 I Timeline: Timeline: Activity_launch_request time:325759550
02-07 12:31:57.035 28696 28696 D DecorView[]: getWindowModeFromSystem  windowmode is 1
02-07 12:31:57.060 28696 28696 D FrameIndicator: support status: 1 0x7e08e59018 0x7e08e594c4

@gujjwal00
Copy link
Owner

Fixed in bb81bec
Test APK: https://github.com/gujjwal00/avnc/suites/10825014562/artifacts/544989274

You can use this APK until next version is released.

@gujjwal00
Copy link
Owner

v2.2.0 is now available with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants