Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appcelerator : BOMStream BOMStreamWithFileAndSys(int, off_t, size_t, int, char *, BomSys *)

This is the WARN that with the recent updates of Appcelerator appears in my console

[WARN] : 2016-04-05 14:51:01.391 App Name[5489:210793] BOMStream BOMStreamWithFileAndSys(int, off_t, size_t, int, char *, BomSys *): read: Is a directory

I don't find any information related to this WARN.For now does not seem to cause any problem, but i don't know what cause this.


UPDATE

I found what causes this warning

Code example

var win = Ti.UI.createWindow({
    backgroundColor : "white"
});


var view = Ti.UI.createView({
    width : 100,
    height : 100,
    backgroundImage : ""
});

var a = true;
setInterval(function(e){
    a = !a;
    view.backgroundImage = a ? "DefaultIcon.png" : "";
    Ti.API.info("*"+view.backgroundImage+"*");
},500);

win.add(view);
win.open();

When set a backgroundImage = "";. I added the Ti.API.info because without it the WARN doesn't appear

like image 842
WhiteLine Avatar asked Apr 05 '16 12:04

WhiteLine


1 Answers

Because: 1. You are trying to load a file's data with a its path, but the path is pointing to a directory not a file. 2. Or, you are iterating all files in a directory, but there is another directory inside the directory path.

like image 200
Mingyou Xia Avatar answered Nov 03 '22 11:11

Mingyou Xia