Comments (7)
@amcalgates Thanks for the additional info. I understand now. You're not using Page Mode at all, yet it is causing crashes.
I think that's all we need for right now.
To your other question, the core library in the StarPRNT SDK; StarIO & StarIO_Extension are not open source.
@bandit-ibayashi can you have someone from R&D look into this?
from starprnt-sdk-ios-swift.
@bandit-ibayashi and @gare-bear - thanks for your help and patience with this.
Our crash reporter, Crashlytics, must be incorrect in assigning blame to the StarPRNT SDK. I am finally able to reproduce the crash, and it's in the Magtek MTSCRA SDK we also use, not the StarPRNT SDK.
I should have been more careful before dragging you into this. We have never had issues with Star software - you guys are good at your jobs. Your SDK is one of my favorites to work with. Thanks for making a great SDK and for lending a hand with this issue.
from starprnt-sdk-ios-swift.
@amcalgates Can you share some code showing your usage of the Page Mode function(s)?
and for your non-Star users, why would any of the Star functions be referenced?
from starprnt-sdk-ios-swift.
Hey @gare-bear - we are not calling setPageMode
in our app. Per the stack trace in the OP (also pasted again below), setPageMode
seems to be getting called within your SDK from CBPeripheral
. Perhaps it's an operation you're performing in a CBPeripheralDelegate
?
As far as I can tell, the stack trace leaves me with nothing to debug on my end.
Is StarPRNT SDK open source?
Fatal Exception: NSRangeException
0 CoreFoundation 0x9e48 __exceptionPreprocess
1 libobjc.A.dylib 0x178d8 objc_exception_throw
2 Foundation 0x5051c -[NSConcreteData copyWithZone:]
3 Rezku-POS 0x96b310 -[StarPRNTBuilderImpl setPageMode:] + 49 (StarPRNTBuilderImpl.m:49)
4 CoreBluetooth 0x38d40 -[CBPeripheral handleAttributeEvent:args:attributeSelector:delegateSelector:delegateFlag:]
5 CoreBluetooth 0x38e70 -[CBPeripheral handleCharacteristicEvent:characteristicSelector:delegateSelector:delegateFlag:]
6 CoreBluetooth 0x35ae8 -[CBPeripheral handleMsg:args:]
7 CoreBluetooth 0x2570 -[CBCentralManager handleMsg:args:]
8 CoreBluetooth 0x20f0 -[CBManager xpcConnectionDidReceiveMsg:args:]
9 CoreBluetooth 0x1fc8 __30-[CBXpcConnection _handleMsg:]_block_invoke
10 libdispatch.dylib 0x24b4 _dispatch_call_block_and_release
11 libdispatch.dylib 0x3fdc _dispatch_client_callout
12 libdispatch.dylib 0xb694 _dispatch_lane_serial_drain
13 libdispatch.dylib 0xc214 _dispatch_lane_invoke
14 libdispatch.dylib 0xb56c _dispatch_lane_serial_drain
15 libdispatch.dylib 0xc1e0 _dispatch_lane_invoke
16 libdispatch.dylib 0x16e10 _dispatch_workloop_worker_thread
17 libsystem_pthread.dylib 0xdf8 _pthread_wqthread
18 libsystem_pthread.dylib 0xb98 start_wqthread
from starprnt-sdk-ios-swift.
@amcalgates Thank you for your report.
In my confirmation, setPageMode
is a non-public property setter. For the specification, if you are not using the printer's page mode, this property will still be used if you are using ISCBBuilder
class.
But I have checked the internal implementation and have not been able to pinpoint the likely cause, nor have I been able to reproduce this issue in my environment.
Therefore, could you please to provide the following information?
- Xcode SDK version
- If possible, it would be appreaciated if you let us know the result of the
xcodebuild -version
command.
- If possible, it would be appreaciated if you let us know the result of the
- Frequency of this crash
- The means of communication between the iOS device and the printer
- I'm assuming Bluetooth, but please let me know just in case.
Here is my environmental information.
- Build PC
- MacBook Pro 2017
- mac OS 13.2.1 (Ventura)
- Xcode
- Xcode 14.2 (Build version 14C18)
- SDKVersion: 16.2
Thank you for your cooperation.
from starprnt-sdk-ios-swift.
Hey @bandit-ibayashi -
If possible, it would be appreaciated if you let us know the result of the xcodebuild -version command.
% xcodebuild -version
Xcode 14.2
Build version 14C18
Frequency of this crash
In the last week, it's occurred 290 times across 71 users.
The means of communication between the iOS device and the printer
Per my OP:
We are seeing this crash with a mixture of users who are using STAR Printers and users who are not. So printer model is not relevant.
My environment:
MacBook Pro 2021
macOS Monterey 12.5
Xcode Version 14.2 (14C18)
SDK Version 16.2
I cannot reproduce the issue myself.
Since your SDK is not open source, I am trying my best to help: the stack trace says you are calling copy
on an NSData
object in StarPRNTBuilderImpl.m
. The trace seems to think it's even on line 49 in this file.
Are you not seeing that?
from starprnt-sdk-ios-swift.
@amcalgates Thanks for confirming the issue is outside of our SDK.
And thanks for the kind words! We love to hear that kind of feedback!
from starprnt-sdk-ios-swift.
Related Issues (20)
- Is there a function to align left and right on a single line or column? or how to print like this design? HOT 2
- is this sdk work for M1 processer ? HOT 10
- Pods Issue StarIO for 2.8.2 - Signature not valid in the specified time frame HOT 7
- CPU usage above 90%!!! HOT 2
- Create receipt by commands vs. pdf HOT 1
- Print cash receipt from PDF HOT 1
- Printer Connection Failed!!![BUG] HOT 7
- Cash Drawer on Mpop HOT 4
- [BUG] Inconsistency in printed receipts HOT 1
- SPM Support [BUG] HOT 1
- Suggestion: Add StarPRNT emulation for Stargraphic printers HOT 1
- [BUG] App built with Xcode 14 causes crash when calling disconnect HOT 5
- Pod install failure for StarIO 2.8.1, 403 server failed to authenticate the request HOT 2
- iPadOS 16.5 HOT 2
- Missing privacy manifest? HOT 1
- SM-T300i Connection HOT 1
- Rotate ticket failed after enable "180 Rotation" HOT 2
- Add support for TUP* models (open frame kiosk printers) HOT 2
- Cannot find TSP100GT printer that's shared through network HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starprnt-sdk-ios-swift.