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

EXC_BAD_ACCESS when running the code on a device (iPad) #44

Closed
abosaqr opened this issue Jan 23, 2022 · 14 comments
Closed

EXC_BAD_ACCESS when running the code on a device (iPad) #44

abosaqr opened this issue Jan 23, 2022 · 14 comments

Comments

@abosaqr
Copy link

abosaqr commented Jan 23, 2022

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
Copy link
Author

abosaqr commented Jan 24, 2022

@update:

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

@abosaqr
Copy link
Author

abosaqr commented Jan 24, 2022

@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

@fragilehm
Copy link
Contributor

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.

@yedidyak
Copy link

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
Copy link

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

@yedidyak
Copy link

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.

@lucienbl
Copy link

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

@yedidyak
Copy link

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.

@lucienbl
Copy link

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

@tr3v3r
Copy link
Owner

tr3v3r commented May 11, 2022

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?

@sisoalbert
Copy link

sisoalbert commented Jan 12, 2023

@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!()

@592da
Copy link

592da commented Jul 17, 2023

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

@hoang-nha
Copy link

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

@tr3v3r
Copy link
Owner

tr3v3r commented Sep 2, 2023

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 tr3v3r closed this as completed Sep 2, 2023
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

8 participants