This application encountered a Lua error (see logs) or has been corrupted.

Hello!

I am unable to launch my project on my Android tablet, as I keep getting the error in the topic.

I have tried rebuilding and reinstalling the application a few times.

I have checked four times that there are no case sensitivity issues.

I have tried going through the comprehensive log, which makes no mention of any errors.

I can post the code if you’d like, but it’s 600+ lines, so suggestions of what I should look at it would probably be better.

Edit: Solved, see post #3.

I have managed to isolate the problem to the following snippet:

local empSheetData = {width = 1024, height = 57, numFrames = 3} local empSheet = graphics.newImageSheet("images/empSheet.png", empSheetData) local empSeqData = {{name = "empWave", start = 1, count = 3, time=400}}

The file is in the images folder, it’s named “empSheet”, and it’s a png file. The attributes fit.

There are other files in the same folder that work fine and are implemented in precisely the same way.

I tried renaming the file and changing the name in the code accordingly; same problem, works in Corona Simulator, can’t open at all on the tablet.

I tried running the same bit of code, but with another image instead of empSheet and slightly different properties - now works on the tablet.

I suspect it may be a problem with the dimensions? Can a 3072 pixels wide png file break the system?

I found the problem. 2048 was indeed the limit for image size, and it did not automatically scale down the file.

I manually scaled the file down in Photoshop, and now it works fine.

I have managed to isolate the problem to the following snippet:

local empSheetData = {width = 1024, height = 57, numFrames = 3} local empSheet = graphics.newImageSheet("images/empSheet.png", empSheetData) local empSeqData = {{name = "empWave", start = 1, count = 3, time=400}}

The file is in the images folder, it’s named “empSheet”, and it’s a png file. The attributes fit.

There are other files in the same folder that work fine and are implemented in precisely the same way.

I tried renaming the file and changing the name in the code accordingly; same problem, works in Corona Simulator, can’t open at all on the tablet.

I tried running the same bit of code, but with another image instead of empSheet and slightly different properties - now works on the tablet.

I suspect it may be a problem with the dimensions? Can a 3072 pixels wide png file break the system?

I found the problem. 2048 was indeed the limit for image size, and it did not automatically scale down the file.

I manually scaled the file down in Photoshop, and now it works fine.