react-native-esc-pos-printer icon indicating copy to clipboard operation
react-native-esc-pos-printer copied to clipboard

EXC_BAD_ACCESS when running the code on a device (iPad)

Open abosaqr opened this issue 3 years ago • 10 comments

Hello,

thanks for the work put into the library, I am having an issue after building then executing the app.

This is the issue image

This is the stack image

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

abosaqr avatar Jan 23 '22 18:01 abosaqr

@update:

in the simulator there is no issue, the exception happens in physical device: an iPad Air (4th generation), software version 15.0.

abosaqr avatar Jan 24 '22 10:01 abosaqr

@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

abosaqr avatar Jan 24 '22 16:01 abosaqr

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.

fragilehm avatar Feb 18 '22 14:02 fragilehm

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.

yedidyak avatar May 10 '22 09:05 yedidyak

By the way, we're getting this on any iOS device when running debug with Flipper running, not just iPads.

yedidyak avatar May 10 '22 09:05 yedidyak

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.

yedidyak avatar May 10 '22 13:05 yedidyak

Hello, I am facing this issue as well, does anyone has a workaround for that without removing flipper ? I need flipper 😬 Thanks in advance!

lucienbl avatar May 11 '22 18:05 lucienbl

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 avatar May 11 '22 18:05 yedidyak

@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 😄

lucienbl avatar May 11 '22 18:05 lucienbl

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?

tr3v3r avatar May 11 '22 21:05 tr3v3r

@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

Folks using this workaround must remember to delete pods and pod install again after commenting out >

"#"use_flipper!()

sisoalbert avatar Jan 12 '23 09:01 sisoalbert

Hey @yedidyak ! You think it's possible to create a patch to solve the conflict for the openssl between EpsonEposSDK & Flipper?

592da avatar Jul 17 '23 12:07 592da

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",

hoang-nha avatar Jul 29 '23 02:07 hoang-nha

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

tr3v3r avatar Sep 02 '23 21:09 tr3v3r