react-native-esc-pos-printer
react-native-esc-pos-printer copied to clipboard
EXC_BAD_ACCESS when running the code on a device (iPad)
Hello,
thanks for the work put into the library, I am having an issue after building then executing the app.
This is the issue

This is the stack

From the stack it seems the library (Flipper) is trying to create or get a certificateSigningRequest but not being successful
do you think it is a configuration issue?
kind regards, abosaqr
@update:
in the simulator there is no issue, the exception happens in physical device: an iPad Air (4th generation), software version 15.0.
@update
disabling flipper by commenting the line in ios/Podfile makes it work again.
use_flipper!()
i don't like removing things i don't know, so is this an issue or not? or better question, what functionality am I losing without flipper?
thanks
Hi, @abosaqr I am not sure what is the real issue here, but a flipper is just an Inspector which is helpful for developing as it gives you a clear view of the layout and network actions. But this will not affect your production (release) app.
Hi, we are getting this issue as well. My guess is that something in this library conflicts with the version of OpenSSL-Universal that Flipper depends on.
By the way, we're getting this on any iOS device when running debug with Flipper running, not just iPads.
The reason for this crash is that the EpsonEposSDK has embedded openSSL library with conflicts with the OpenSSL-Univeral pod brought and used by Flipper. So it's in the actual Epson SDK, not this library. Which is awesome btw.
Hello, I am facing this issue as well, does anyone has a workaround for that without removing flipper ? I need flipper 😬 Thanks in advance!
Yes, you can add this pod only on Release and Release-Store configurations in the Podfile. Then you can still use Flipper in Debug builds.
@yedidyak thank you very much for your quick reply. But adding this pod only to Release configurations will prevent me to use it while I'm developing, right ? If there's no other solution maybe it's even better to remove Flipper instead, sadly 😄
The reason for this crash is that the EpsonEposSDK has embedded openSSL library with conflicts with the OpenSSL-Univeral pod brought and used by Flipper. So it's in the actual Epson SDK, not this library. Which is awesome btw.
Hi! Thanks for helping! How did you figure out that issue with this conflict? I mean OpenSSL dependency?
@update
disabling flipper by commenting the line in
ios/Podfilemakes it work again.use_flipper!()i don't like removing things i don't know, so is this an issue or not? or better question, what functionality am I losing without flipper?
thanks
Folks using this workaround must remember to delete pods and pod install again after commenting out >
"#"use_flipper!()
Hey @yedidyak ! You think it's possible to create a patch to solve the conflict for the openssl between EpsonEposSDK & Flipper?
I am facing a similar issue, please help me with the solution. "react-native-esc-pos-printer": "^2.5.1", "react-native-flipper": "^0.201.0", "react-native": "0.72.3",
I've investigated a bit and found the version of OpenSSL lib used in EPSON iOS SDK. Also, I've found a workaround that should help.
Please check it here: https://github.com/tr3v3r/react-native-esc-pos-printer/blob/main/docs/flipperWorkaround.md