Lua source file with name length > 8 leads to non-working app

Subject: Filename length > 8 leads to equals non-working app
Corona Version: 1.0 (2009.11.28.2)
System Version: 10.5.8
HW Info (your computer specs): 2 GHz Intel Core Duo 4GB Memory
iPhone/iPod generation: iPod Touch 2nd Gen
iPhone/iPod firmware version: 3.1.2

Severity: 2 Critical (hang or failure)

Reproducibility: Every time

Description:
It seems that if a lua source file has a name length greater than 8 (excluding ext), even if the file is not used in a ‘require’ statement (i.e. just placing the new file into the same directory as the main.lua file, but never using the new file), the app will fail to run properly. Tapping the apps icon will launch the app, the “Corona SDK Trail” alert will appear, pressing “Ok” will dismiss the aleat, but the screen will remain as if your using an empty ‘main.lua’ source file

Steps to reproduce (keep this as simple as possible):

  1. Place a lua source file with a name length greater than 8 into your project directory.

[import]uid: 1581 topic_id: 277 reply_id: 300277[/import]

I’m having trouble reproducing this on my iPhone, can you send me your assets? jeff@anscamobile.com
[import]uid: 5 topic_id: 277 reply_id: 373[/import]

Also, does this occur in the simulator? [import]uid: 5 topic_id: 277 reply_id: 379[/import]

Email on way.

Nope, only when building for device. [import]uid: 1581 topic_id: 277 reply_id: 382[/import]

Any luck (or misfortune?) in reproducing the behavior I was seeing?

I was wondering if somehow the file encoding was an issue. I use mostly XCode for editing, but was using a windows editor under VMWare for a while and also make use of Unitron for quick edits/viewing.

This shouldn’t be an issue, unless Corona is doing low-level reading of the files. [import]uid: 1581 topic_id: 277 reply_id: 443[/import]

Yes, I was able to reproduce it. We’re working on a fix … [import]uid: 5 topic_id: 277 reply_id: 445[/import]

I’m having basically the same issue, but it appears when I have any other lua file inside the project. I’ve created a build script (ruby) as a temporary workaround which can be found here:

http://gist.github.com/267958

It will basically replace the require statements with the source code and stick it inside a new project in a build directory. It will also look for an images directory and copy over everything from there as well. [import]uid: 70 topic_id: 277 reply_id: 565[/import]

We’ve just released SDK version 1.01, which fixes this issue (among other things). Sorry for the hassle! [import]uid: 3007 topic_id: 277 reply_id: 657[/import]