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

Application is getting crashed when connecting to the printer using bluetooth_print 4.3.0 Dependency in IOS but Working fine in android #179

Open
ChinmayeePallavi opened this issue Nov 16, 2023 · 1 comment

Comments

@ChinmayeePallavi
Copy link

"I attempted to establish a Bluetooth connection and initiate a print job, but encountered an uncaught exception that led to the application crashing, despite employing a try-catch method."
Log :
*** Assertion failure in -[CBCentralManager cancelPeripheralConnection:options:], CBCentralManager.m:664
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: peripheral != nil'
*** First throw call stack:
(0x180f33c60 0x19875fee4 0x1826d8c80 0x1a3d6f9c8 0x1a3d6fa80 0x102a41774 0x180bf4094 0x180b96bb8 0x180ba88dc 0x180ba0c90 0x180ba0994 0x180eef014 0x180eac4f8 0x180ebf174 0x1a19da988 0x1836c1a88 0x18345af78 0x102a1d35c 0x1035104d0)
libc++abi: terminating with uncaught exception of type NSException

  • thread 请问一下如何扫描蓝牙连接 #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00000001bb7f3bbc libsystem_kernel.dylib__pthread_kill + 8 libsystem_kernel.dylib:
    -> 0x1bb7f3bbc <+8>: b.lo 0x1bb7f3bd8 ; <+36>
    0x1bb7f3bc0 <+12>: stp x29, x30, [sp, #-0x10]!
    0x1bb7f3bc4 <+16>: mov x29, sp
    0x1bb7f3bc8 <+20>: bl 0x1bb7ef60c ; cerror_nocancel
    Target 0: (Runner) stopped
@RegisSaffi
Copy link

Facing the same issue when I try to connect the printer on iOS, It works well on Android.

iOS version: [iOS 17.1.1]

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