Hi guys, I’m getting the following error when trying to create image from system.TemporaryDirectory. Image was created when saving snapshot using display.save() function.
I dont know how to reproduce the error, because it doesn’t happen every time, but it keeps popping in the google crashlytics.
I create the image when coming back from suspend - on application resume event:
display.newImageRect(image_name, system.TemporaryDirectory, image_width, image_height)
And I also have the exact data that makes the error which shows that nothing is nil:
display.newImageRect(“tmp_snapshot_1.png”, userdata: 0x7f86f83c6a, 250, 250)
Error: ?:0: attempt to index a nil value
?: in function ‘newImageRect’
So what could be the reason to get the following error?
I checked the source code of newImageRect function and I have no idea where it could have returned that error.
Thank you in advance for any ideas.