[TIMOB-3872] iOS: file.open(mode) crashes iOS simulator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-05-11T13:30:29.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Release 1.7.0, Sprint 2011-18 |
Components | iOS |
Labels | ipass1 |
Reporter | Bill Dawson |
Assignee | Jacob Relkin |
Created | 2011-05-02T16:39:07.000+0000 |
Updated | 2018-08-06T17:37:03.000+0000 |
Description
Following code crashes:
var f = Ti.Filesystem.getFile('KS_nav_ui.png');
var stream = f.open(Ti.Filesystem.MODE_READ); // CRASH
stream.close();
See [trace](http://pastie.org/private/jlvmqb1todzkhoywyahwng).
Attachments
File | Date | Size |
---|---|---|
app.js | 2011-05-11T11:32:08.000+0000 | 1352 |
[ERROR] Script Error = The iOS reported an error. Could not open file stream for file at path: /var/mobile/Applications/1F4F4EA2-8DE6-4C21-8B30-185F2899B7BC/TIMOB_3872.app/KS_nav_ui.png
The code works fine in the simulator, but does not work on the device. The console reports an error (see previous comment) and the splash screen will be displayed and hang. I used the standard default application and added the "crashing code" to it.
I'm having this problem in Ti.SDK 5.2.0.GA I have the video in the path, but Appcelerator shows me this error.
Closing as invalid. If incorrect, please reopen.