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

[BUG] Emgu prevents apps from running on iPhone 6/iOS 12 #911

Open
KRA2008 opened this issue Feb 7, 2024 · 7 comments
Open

[BUG] Emgu prevents apps from running on iPhone 6/iOS 12 #911

KRA2008 opened this issue Feb 7, 2024 · 7 comments
Assignees

Comments

@KRA2008
Copy link

KRA2008 commented Feb 7, 2024

Describe the bug
Emgu built into any app causes the app to crash seconds after launching on iOS 12 (iPhone 6)

OS / Platform
iOS 12.5.7/iPhone 6

.Net version
.Net 8

CPU Architecture
A8 chip with 64-bit architecture

Emgu CV package used
Emgu.CV.runtime.maui.mini.ios v4.8.1.5350

To Reproduce
Take any app that runs, then install the package. No actual usage of the package is needed. The app will now crash moments after launching it.

Expected behavior
The app should stay open.

Screenshots
n/a - I'm attaching the device log output. The two error lines that stand out to me are:

Feb 6 20:38:44 iPwn-Whale Error 21673 symptomsd(SymptomEvaluator) Attempt to add an app with insufficient id, info {

and

Time Device Name Type PID Tag Message
Feb 6 20:38:45 iPwn-Whale Error 62 assertiond [ExampleApp:30734] SyscallError: setpriority(PRIO_DARWIN_ROLE, 30734, 3): No such process"

Additional context
Emgu works great in my project app on my iPhone SE (2020) on iOS 17.2.1 (allows launching and usage), but the same app crashes immediately after launch on my iPhone 6. To make sure it isn't something about my app, a new empty MAUI app runs on my SE, and on my 6, but after installing Emgu it crashes on the iPhone 6 (but runs fine on the SE).

emguCrashLog.txt

@emgucv
Copy link
Owner

emgucv commented Feb 7, 2024

The crash log contains two error lines:

...
Feb 6 20:38:45 iPwn-Whale Error 62 assertiond [ExampleApp:30734] SyscallError: setpriority(PRIO_DARWIN_ROLE, 30734, 3): No such process
...
Feb 6 20:38:44 iPwn-Whale Error 21673 symptomsd(SymptomEvaluator) Attempt to add an app with insufficient id, info {
...

None of them seems to help pinpoint what went wrong. We don't have a iPhone 6 in house and is not able to reproduce the issue.

FYI, our iOS build set IPHONE_OS_DEPLOYMENT_TARGET=11.0

At this point we are not sure how to proceed without an error messages that pointing to the cause.

@KRA2008
Copy link
Author

KRA2008 commented Feb 8, 2024

I experimented a little bit and I can say that the problem is present in v4.8.1.5350 but absent from v4.8.0.5324. I also played around to see if Xamarin/Forms vs .Net/MAUI makes a difference and it doesn't, the problem is present in the latest version of both. I'm happy to just keep using v4.8.0.

But if you think of something you'd like me to test on my old phones I would be happy to do so.

@mlancione
Copy link

The issue also happens on any iPad running iPadOS 11 or 12. Confirmed that the issue is also present in Emgu v4.9.0.5494 on Xamarin.iOS.

@canmingh
Copy link
Contributor

canmingh commented May 6, 2024

iPadOS starts at version 13. Before iPadOS 13, iPad was running iOS 12. Are you with an iPad running iOS 12? iOS 12 has reached end of support by Apple on 23, Jan 2023.
https://endoflife.date/ios

iPhone 6 is out of support by Apple, we will not be able to support iPhone 6 (end of support at 23 Jan 2023).
https://endoflife.date/iphone

We also don't have those devices in-house. If you have found a solution to back-support those out-of-support devices, please create a pull-request, we will review and merge.

@mlancione
Copy link

mlancione commented May 6, 2024 via email

@emgucv
Copy link
Owner

emgucv commented May 6, 2024

XCode released after Jan 23, 2023 no longer gurantee to produce binary that is compatible with iOS 12 and older because the OS version is out-of-support. I suspect that in-order to have Emgu CV work on iOS 12 or older, you will need to download older version of XCode to build Emgu CV from source.

Looking at XCode release dates, it looks like XCode 14.2 or older may be what you need:
https://en.wikipedia.org/wiki/Xcode

@emgucv
Copy link
Owner

emgucv commented May 6, 2024

FYI, Emgu CV 4.8.0 release is compiled with Xcode 14.3.1, Emgu CV 4.8.1 release is compiled with Xcode 15.0

If supporting iOS 12 is a requirement, I would recommend using Emgu CV 4.8.0 instead of the 4.9.0 release.

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

4 participants