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

[v1.34.1] Process crashes when custom toast is shown - java.io.IOException: Command failed (tcp:7001): closed #1618

Closed
jaychang0917 opened this issue Dec 13, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@jaychang0917
Copy link

jaychang0917 commented Dec 13, 2023

Describe the bug
The process crashes after Android toast is shown. Only happens for custom toast(i.e. with custom view)

Exception in thread "pool-4-thread-1" java.io.IOException: Command failed (tcp:7001): closed
	at dadb.adbserver.AdbServer.send$dadb(AdbServer.kt:99)
	at dadb.adbserver.AdbServerDadb.open(AdbServer.kt:138)
	at dadb.forwarding.TcpForwarder.handleForwarding$lambda-1(TcpForwarder.kt:64)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)

To Reproduce
when the -tapOn: Show toast command is executed (i.e. a Android toast is shown), the whole process crashes.

name: Test toast
appId: com.myapp
---
- launchApp:
    clearState: true
- tapOn: Show toast
- tapOn: Next

Expected behavior
The flow runs without crash

Screenshots

Environment information (please complete the following information):

  • Maestro version [v1.34.1]
  • Platform: [Android 13]
  • Framework: [Native Android]
  • Device model and OS version: [vivo Y76 5G]
  • Physical device
  • Host [Mac M1]
@jaychang0917 jaychang0917 added the bug Something isn't working label Dec 13, 2023
@jaychang0917 jaychang0917 changed the title [v1.34.1] Process crashes after toast is shown [v1.34.1] Process crashes after toast is shown - java.io.IOException: Command failed (tcp:7001): closed Dec 13, 2023
@jaychang0917 jaychang0917 changed the title [v1.34.1] Process crashes after toast is shown - java.io.IOException: Command failed (tcp:7001): closed [v1.34.1] Process crashes when toast is shown - java.io.IOException: Command failed (tcp:7001): closed Dec 13, 2023
@frichez
Copy link

frichez commented Dec 15, 2023

I have the same error. Here is the error from logcat :

FATAL EXCEPTION: main
Process: dev.mobile.maestro, PID: 17831
java.lang.NoSuchMethodError: No direct method ()V in class Landroid/view/accessibility/AccessibilityNodeInfo; or its super classes (declaration of 'android.view.accessibility.AccessibilityNodeInfo' appears in /system/framework/framework.jar!classes3.dex)
at dev.mobile.maestro.ToastAccessibilityListener.onAccessibilityEvent(ToastAccessibilityListener.kt:26)

AccessibilityNodeInfo empty constructor added in api level 30 and my device is running api level 29.

@jaychang0917 jaychang0917 changed the title [v1.34.1] Process crashes when toast is shown - java.io.IOException: Command failed (tcp:7001): closed [v1.34.1] Process crashes when custom toast is shown - java.io.IOException: Command failed (tcp:7001): closed Jan 8, 2024
@bartekpacia
Copy link
Contributor

Hey, thanks for creating this issue! Unfortunately, it's not reproducible to us.

Please provide a minimal, reproducible example that clearly explains how to reproduce the problem with the detailed, step-by-step instructions (that can be easily run by me or other maintainers).

This issue does not contain such an example, therefore I'm going to reluctantly close it.

If you don't have time right now, that's totally OK. Feel free to open a new issue in the future with all the required information provided.

@bartekpacia bartekpacia closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.
Thank you for helping keep us our issue tracker clean!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants