question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS crash when changing scenes with Selfie Segmentation

See original GitHub issue

Plugin Version or Commit ID

v0.10.1

Unity Version

2021.3.12f1

Your Host OS

Windows 11

Target Platform

iOS

Description

Hi, Only on iOS build (iPhone XR) when navigating between scenes several times (5-10 times), and one scene is initializing MediaPipe Selfie Segmentation sample, I get crash. It is hard to get a log when the app crashes, but sometimes I get this errors (they are watched with Sentry, but almost always only one of them at once:

System.InvalidOperationException: The table is full File "GlobalInstanceTable.cs", line 36, in Add File "Assembly-CSharp3.cpp", line 15896, in Start File "GraphRunner.cs", line 99, in Start

System.NullReferenceException: Object reference not set to an instance of an object. File "SolutionCustom.cs", line 101, in ReadFromImageSource File "ImageSourceSolutionCustom.cs", line 110, in Run

System.NullReferenceException: Object reference not set to an instance of an object. File "Assembly-CSharp1.cpp", in WaitForWebCamTexture { <lambda> } ... (1 additional frame(s) were not displayed)

Please, give some advice what can be a reason of that crash.

Code to Reproduce the issue

No response

Additional Context

No response

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
homulercommented, Dec 28, 2022

one texture (from TextureFramePool probably) remains in memory

I’m not sure, but maybe the texture of the Screen? https://github.com/homuler/MediaPipeUnityPlugin/blob/2c8a31ae5b4232fbffd97fdc6b4f2b8f1a6370b4/Assets/MediaPipeUnity/Samples/Common/Scripts/ImageSourceSolution.cs#L14

0reactions
LoopIssuercommented, Dec 28, 2022

Oh, they are probably created outside MediaPipe Unity Plugin.

Thank you for your great support! Have a nice day and a Happy New Year 2023!

Read more comments on GitHub >

github_iconTop Results From Across the Web

App crashes when changing privacy settings
I have an application recording audio in background, but when I go to settings and change some permissions like photos, the application crashes...
Read more >
Poor selfie segmentation with Google ML Kit
The only "simple" way of processing your scene is to use depth estimation. ... in order to make sure a particular scene is...
Read more >
Selfie Segmentation crashes after running a while ...
It might crash after a few hundred or only after more than 10k iterations. I tried it with Pyhon 3.7, 3.8 and 3.9...
Read more >
iOS crashes when changing screen orientation.
We've been having issues on iOS when changing scene from menu to a game mode (we use portrait for the menu, and landscape...
Read more >
Scene Capture Cause Crash on IOS 12 with Metal
We have experienced a bug after a few days of testing various aspects of the Scene Capture Component and are hoping to get...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found