Closed Codestian closed 4 months ago
Uh issue solved, just need to wrap for loop in a try catch. Silly me.
Well... Could you please post the full crash log?
try catch just handles the exception but it still exists, I am not an apple user so can't reproduce it, more info is needed to debug.
Describe the bug I'm trying to find contours in an image, but the app crashes when i try to run a
for loop
even with nothing inside it. This only happens in release mode for iOS, haven't tested for Android yet. This also seems to happen if the size of the contour list is larger than roughly 300.What boggles my mind further is if i put a random print("hello") statement before the for loop, it is less likely to crash but as long as contour list is still low.
To Reproduce Steps to reproduce the behavior:
final Contours contourList = contour.$1;
for (final contour in contourList) {}