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

0.4.2 and 0.4.3 versions of the pod are crashing on app launch on iOS 12.5.7 #964

Open
eugene-naloiko-imito opened this issue Feb 1, 2024 · 0 comments

Comments

@eugene-naloiko-imito
Copy link

eugene-naloiko-imito commented Feb 1, 2024

I've integrated the Pod "TensorFlowLiteTaskVision" to the app (is needed for iOS 14+).
But as well there is a requirement still for the app to run on iOS 12.
But when I try to run it on iOS 12.5.7 (iPad Mini 2 Retina (WiFi) / 16GB / ME276LL/A) and other iOS 12 devices - I get a crash on start.

Something related to protobuf.
image
image
image
image

I've experimented a bit - and can see that 0.4.1 version of the pod was not crashing. All newer versions are crashing the app on iOS 12.5.7. Even though the pod is not imported in the code. Just the pod is installed - gets added to the app binary - and that leads to the crash on app start. 7 GB of free memory on device.
image

Can you please resolve it somehow?
a) can you please fix that, and release the Pod version which won't crash on iOS 12.5 +
b) can you maybe repackage it via SPM, and make sure that the Pod is not crashing the app on iOS 12.5 +

======== Second issue =======
And in another app - while installing versions 0.4.2, 0.4.3 - the app is compiling. But while installing 0.4.1 - the source code is not compiling with the following logs (Related to Undefined Behavior Sanitizer - this thing got overcomed this way https://stackoverflow.com/a/77921194/1847511):

ld: Undefined symbols:
___ubsan_handle_add_overflow, referenced from:
+[TFLClassificationOptions(Helpers) cStringArrayFromNSArray:error:] in TensorFlowLiteTaskVision11
+[TFLClassificationOptions(Helpers) deleteCStringsArray:count:] in TensorFlowLiteTaskVision11
+[TFLClassificationResult(Helpers) classificationResultWithCResult:] in TensorFlowLiteTaskVision13
+[TFLClassificationResult(Helpers) classificationResultWithCResult:] in TensorFlowLiteTaskVision13
+[TFLDetectionResult(Helpers) detectionResultWithCResult:] in TensorFlowLiteTaskVision16
+[TFLDetectionResult(Helpers) detectionResultWithCResult:] in TensorFlowLiteTaskVision16
+[TFLSegmentationResult(Helpers) segmentationResultWithCResult:] in TensorFlowLiteTaskVision21
+[TFLSegmentationResult(Helpers) segmentationResultWithCResult:] in TensorFlowLiteTaskVision21
+[TFLSegmentationResult(Helpers) segmentationResultWithCResult:] in TensorFlowLiteTaskVision21
...
___ubsan_handle_builtin_unreachable, referenced from:
-[TFLClassificationOptions(Helpers) copyToCOptions:error:] in TensorFlowLiteTaskVision11
+[TFLCommonUtils mallocWithSize:error:] in TensorFlowLiteTaskVision14
+[TFLImageSegmenter imageSegmenterWithOptions:error:] in TensorFlowLiteTaskVision18
___ubsan_handle_float_cast_overflow, referenced from:
-[TFLImageClassifier classifyWithGMLImage:regionOfInterest:error:] in TensorFlowLiteTaskVision17
-[TFLImageClassifier classifyWithGMLImage:regionOfInterest:error:] in TensorFlowLiteTaskVision17
-[TFLImageClassifier classifyWithGMLImage:regionOfInterest:error:] in TensorFlowLiteTaskVision17
-[TFLImageClassifier classifyWithGMLImage:regionOfInterest:error:] in TensorFlowLiteTaskVision17
___ubsan_handle_mul_overflow, referenced from:
-[TFLCategoryMask initWithWidth:height:mask:] in TensorFlowLiteTaskVision20
-[TFLCategoryMask initWithWidth:height:mask:] in TensorFlowLiteTaskVision20
-[TFLConfidenceMask initWithWidth:height:mask:] in TensorFlowLiteTaskVision20
-[TFLConfidenceMask initWithWidth:height:mask:] in TensorFlowLiteTaskVision20
___ubsan_handle_nonnull_arg, referenced from:
+[TFLCVPixelBufferUtils createRGBImageDatafromImageData:withWidth:height:stride:pixelBufferFormat:error:] in TensorFlowLiteTaskVision4
+[TFLCVPixelBufferUtils createRGBImageDatafromImageData:withWidth:height:stride:pixelBufferFormat:error:] in TensorFlowLiteTaskVision4
+[TFLCVPixelBufferUtils createRGBImageDatafromImageData:withWidth:height:stride:pixelBufferFormat:error:] in TensorFlowLiteTaskVision4
+[TFLCVPixelBufferUtils createRGBImageDatafromImageData:withWidth:height:stride:pixelBufferFormat:error:] in TensorFlowLiteTaskVision4
___ubsan_handle_pointer_overflow, referenced from:
+[TFLClassificationOptions(Helpers) cStringArrayFromNSArray:error:] in TensorFlowLiteTaskVision11
+[TFLClassificationOptions(Helpers) cStringArrayFromNSArray:error:] in TensorFlowLiteTaskVision11
+[TFLClassificationOptions(Helpers) cStringArrayFromNSArray:error:] in TensorFlowLiteTaskVision11
+[TFLClassificationOptions(Helpers) cStringArrayFromNSArray:error:] in TensorFlowLiteTaskVision11
+[TFLClassificationOptions(Helpers) deleteCStringsArray:count:] in TensorFlowLiteTaskVision11
+[TFLClassificationResult(Helpers) classificationResultWithCResult:] in TensorFlowLiteTaskVision13
+[TFLClassificationResult(Helpers) classificationResultWithCResult:] in TensorFlowLiteTaskVision13
...
___ubsan_handle_type_mismatch_v1, referenced from:
-[GMLImage initWithImage:] in TensorFlowLiteTaskVision3
-[GMLImage initWithImage:] in TensorFlowLiteTaskVision3
-[GMLImage initWithImage:] in TensorFlowLiteTaskVision3
-[GMLImage initWithImage:] in TensorFlowLiteTaskVision3
-[GMLImage initWithImage:] in TensorFlowLiteTaskVision3
-[GMLImage initWithPixelBuffer:] in TensorFlowLiteTaskVision3
-[GMLImage initWithPixelBuffer:] in TensorFlowLiteTaskVision3
-[GMLImage initWithPixelBuffer:] in TensorFlowLiteTaskVision3
-[GMLImage initWithPixelBuffer:] in TensorFlowLiteTaskVision3
-[GMLImage initWithPixelBuffer:] in TensorFlowLiteTaskVision3
...
clang: error: linker command failed with exit code 1 (use -v to see invocation)

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

1 participant