Skip to content

Mediapipe and SSZipArchive together --> run time issue (iOS) #5440

Open
@kers97

Description

@kers97

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

None

OS Platform and Distribution

macOS Sonoma 14.4.1, iOS 17.2, M1 MacBook Pro

Mobile device if the issue happens on mobile device

No response

Browser and version if the issue happens on browser

No response

Programming Language and version

Swift 5

MediaPipe version

No response

Bazel version

No response

Solution

Mediapipe should change the function signature i guess

Android Studio, NDK, SDK versions (if issue is related to building in Android environment)

No response

Xcode & Tulsi version (if issue is related to building for iOS)

Xcode 15.1

Describe the actual behavior

When using SSZipArchive library alongside with mediapipe, I get crash

Describe the expected behaviour

crash free

Standalone code/steps you may have used to try to get what you need

I have a react native project. And there is codepush library that is dependent on SSZipArchive library. As I trace the crash, At the time the facelandmarker object is created ( iOS code example -> faceLandmarker = try FaceLandmarker(options: faceLandmarkerOptions) ), mediapipe run this function (https://github.com/google-ai-edge/mediapipe/blob/c001e4613e4d0b23fee295fa3d59e56811814170/mediapipe/tasks/cc/metadata/utils/zip_utils.cc#L121) , (https://github.com/search?q=repo%3AZipArchive%2FZipArchive%20unzOpen2_64&type=code) And the problem is SSZipArchive library has the exact named function (maybe mediapipe took code from that lib idk.) and in run time Xcode tries to run the function from SSZipArchive and crashes. When I remove the SSZipArchive library (codepush) from project every thing is fine. But codepush is a must library for react native projects. I think if mediapipe change the function signature it will be fine.

Other info / Complete Logs

No response

Metadata

Metadata

Assignees

Labels

os:macOSIssues on MacOSplatform:iosMediaPipe IOS issuesplatform:javascriptMediaPipe Javascript issuesstat:awaiting googlerWaiting for Google Engineer's Responsetask::allAll tasks of MediaPipetype:bugBug in the Source Code of MediaPipe Solution

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions