Ok so I might have found a bug, or at least a “strange” behaviour.
Latest version of Fuse, latest version of Android NDK, running on a Mac
Code:
var FileSystem = require("FuseJS/FileSystem");
FileSystem.deleteSync(FileSystem.readTextFromFileSync(FileSystem.dataDirectory + "/credentials.json"));
this is a code I wrote which, yep, should fail as I read content from file (JSON content) when all I wanted to do was to delete the “credentials.json” file.
Behaviour on emulator:
Absolutely no error message, nothing
Behaviour on Android (expected):
02-01 11:39:04.663 17077 17095 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7 in tid 17095 (Thread-23311)
02-01 11:39:04.768 394 394 F DEBUG : pid: 17077, tid: 17095, name: Thread-23311 >>> com.apps.XXXXX <<<
02-01 11:39:05.284 906 3378 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 17077 uid 10376
02-01 11:39:05.301 342 342 E lowmemorykiller: Error writing /proc/17077/oom_score_adj; errno=22
02-01 11:39:05.304 428 428 I Zygote : Process 17077 exited due to signal (11)
02-01 11:39:05.336 906 3310 I ActivityManager: Process com.apps.XXXXX (pid 17077) has died
Process com.apps.XXXXX terminated.
Unknown Logcat Error: raised from 'adb -s BH90C3UK1E logcat '
Expected behaviour on the emulator:
Some kind of error of some sort.