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

read failed, socket might closed or timeout, read ret: -1 #15

Closed
ravi2143 opened this issue Mar 24, 2022 · 1 comment
Closed

read failed, socket might closed or timeout, read ret: -1 #15

ravi2143 opened this issue Mar 24, 2022 · 1 comment

Comments

@ravi2143
Copy link

E/BThermalPrinterPlugin: read failed, socket might closed or timeout, read ret: -1
java.io.IOException: read failed, socket might closed or timeout, read ret: -1
at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:758)
at android.bluetooth.BluetoothSocket.readInt(BluetoothSocket.java:772)
at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:404)
at id.kakzaki.blue_thermal_printer.BlueThermalPrinterPlugin.lambda$connect$1$BlueThermalPrinterPlugin(BlueThermalPrinterPlugin.java:544)
at id.kakzaki.blue_thermal_printer.-$$Lambda$BlueThermalPrinterPlugin$Ahw9MM_9K6f9UCVqtrNy_jHybcU.run(Unknown Source:6)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)

I am getting this error while printing.

@tcd93
Copy link
Owner

tcd93 commented Mar 25, 2022

That seems like a bug related to older Android device, what printer were you running on?

I've pushed a fix, run flutter pub upgrade and try again

@tcd93 tcd93 closed this as completed Apr 1, 2022
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