Eddayy / flutter_star_prnt

Flutter plugin for star printer
GNU General Public License v3.0
16 stars 73 forks source link

Android IllegalStateException Reply already submitted #25

Open mogsten opened 3 years ago

mogsten commented 3 years ago

Hello Devs,

Our team has encountered an issue with a Supported Star Micronics Bluetooth Printer. This is what Flutter Logs are printing out during a Debug Session

186 D/BluetoothSocket( 9307): available: android.net.LocalSocketImpl$SocketInputStream@bf953c9 D/BluetoothSocket( 9307): close() in, this: android.bluetooth.BluetoothSocket@7261ace, channel: 1, state: CONNECTED D/BluetoothSocket( 9307): close() this: android.bluetooth.BluetoothSocket@7261ace, channel: 1, mSocketIS: android.net.LocalSocketImpl$SocketInputStream@bf953c9, mSocketOS: android.net.LocalSocketImpl$SocketOutputStream@37d0mSocket: android.net.LocalSocket@b85def impl:android.net.LocalSocketImpl@f900fc fd:java.io.FileDescriptor@b1d86f7 D/BluetoothSocket( 9307): Closing mSocket: android.net.LocalSocket@b85def impl:android.net.LocalSocketImpl@f900fc fd:java.io.FileDescriptor@b1d86f7 2 D/BluetoothSocket( 9307): close() in, this: android.bluetooth.BluetoothSocket@7261ace, channel: 1, state: CLOSED D/BluetoothSocket( 9307): available: android.net.LocalSocketImpl$SocketInputStream@bf953c9 2 D/BluetoothSocket( 9307): close() in, this: android.bluetooth.BluetoothSocket@7261ace, channel: 1, state: CLOSED D/AndroidRuntime( 9307): Shutting down VM E/AndroidRuntime( 9307): FATAL EXCEPTION: main E/AndroidRuntime( 9307): Process: com.thebitenetwork.restaurantsbeta, PID: 9307 E/AndroidRuntime( 9307): java.lang.IllegalStateException: Reply already submitted E/AndroidRuntime( 9307): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:164) E/AndroidRuntime( 9307): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:243) E/AndroidRuntime( 9307): at io.eddayy.flutter_star_prnt.FlutterStarPrntPlugin$MethodResultWrapper$error$1.run(FlutterStarPrntPlugin.kt:104) E/AndroidRuntime( 9307): at android.os.Handler.handleCallback(Handler.java:836) E/AndroidRuntime( 9307): at android.os.Handler.dispatchMessage(Handler.java:103) E/AndroidRuntime( 9307): at android.os.Looper.loop(Looper.java:203) E/AndroidRuntime( 9307): at android.app.ActivityThread.main(ActivityThread.java:6337) E/AndroidRuntime( 9307): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 9307): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1084) E/AndroidRuntime( 9307): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:945) Lost connection to device.

Running flutter_star_prnt version 2.3.6

Any help would be appreciated!