Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3872] iOS: file.open(mode) crashes iOS simulator

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2011-05-11T13:30:29.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sRelease 1.7.0, Sprint 2011-18
ComponentsiOS
Labelsipass1
ReporterBill Dawson
AssigneeJacob Relkin
Created2011-05-02T16:39:07.000+0000
Updated2018-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

FileDateSize
app.js2011-05-11T11:32:08.000+00001352

Comments

  1. Eric Merriman 2011-05-11

    [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
  2. Eric Merriman 2011-05-11

    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.
  3. Anna 2016-03-11

    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.
  4. Eric Merriman 2018-08-06

    Closing as invalid. If incorrect, please reopen.

JSON Source