com.badlogic.gdx.utils.GdxRuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • [BugReport] 0+19 > 0
    via GitHub by 920-Text-Editor-User
    ,
  • I am trying to write/read file into the external storage, Android 6.0 , on first app launching request permission for external storage not working(request Permission already allowed). however if I fully close the application and re-launch it then it's work, how can make it work on first run ================================= {code:java} [ERROR] : TiFileProxy: (main) [51879,60031] IOException encountered [ERROR] : TiFileProxy: java.io.FileNotFoundException: /storage/emulated/0/com.example.sample/sample.txt: open failed: EACCES (Permission denied) [ERROR] : TiFileProxy: at libcore.io.IoBridge.open(IoBridge.java:452) [ERROR] : TiFileProxy: at java.io.FileOutputStream.<init>(FileOutputStream.java:87) [ERROR] : TiFileProxy: at org.appcelerator.titanium.io.TiFile.getOutputStream(TiFile.java:273) [ERROR] : TiFileProxy: at org.appcelerator.titanium.io.TiFile.open(TiFile.java:336) [ERROR] : TiFileProxy: at org.appcelerator.titanium.io.TiFile.write(TiFile.java:460) [ERROR] : TiFileProxy: at org.appcelerator.titanium.TiFileProxy.write(TiFileProxy.java:287) [ERROR] : TiFileProxy: at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method) [ERROR] : TiFileProxy: at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62) [ERROR] : TiFileProxy: at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:872) [ERROR] : TiFileProxy: at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1095) [ERROR] : TiFileProxy: at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:357) [ERROR] : TiFileProxy: at android.os.Handler.dispatchMessage(Handler.java:98) [ERROR] : TiFileProxy: at android.os.Looper.loop(Looper.java:148) [ERROR] : TiFileProxy: at android.app.ActivityThread.main(ActivityThread.java:5417) [ERROR] : TiFileProxy: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiFileProxy: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) [ERROR] : TiFileProxy: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) [ERROR] : TiFileProxy: Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied) [ERROR] : TiFileProxy: at libcore.io.Posix.open(Native Method) [ERROR] : TiFileProxy: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) [ERROR] : TiFileProxy: at libcore.io.IoBridge.open(IoBridge.java:438) [ERROR] : TiFileProxy: ... 16 more {code}
    via by Jignesh Kasundra,
  • GitHub comment 8#156806674
    via GitHub by joonty
    ,
  • GitHub comment 8#156827601
    via GitHub by thebigg73
    ,
    • com.badlogic.gdx.utils.GdxRuntimeException: Error writing file: file.txt (External) at com.badlogic.gdx.files.FileHandle.writeString(FileHandle.java:353) at com.badlogic.gdx.files.FileHandle.writeString(FileHandle.java:339) at com.snowdevs.tweetiebirds.TweetieBirdsGame.create(TweetieBirdsGame.java:22) at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:254) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1519) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240) Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Error writing file: file.txt (External) at com.badlogic.gdx.files.FileHandle.writer(FileHandle.java:330) at com.badlogic.gdx.files.FileHandle.writeString(FileHandle.java:350) ... 5 more Caused by: java.io.FileNotFoundException: /storage/emulated/0/file.txt: open failed: EACCES (Permission denied) at libcore.io.IoBridge.open(IoBridge.java:452) at java.io.FileOutputStream.<init>(FileOutputStream.java:87) at com.badlogic.gdx.files.FileHandle.writer(FileHandle.java:322) ... 6 more Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) at libcore.io.IoBridge.open(IoBridge.java:438) ... 8 more

    Users with the same issue

    Indri Yunita
    19 times, last one,
    andreeaa marin
    162 times, last one,
    ivotje50
    1 times, last one,
    Stefan Braune
    29 times, last one,
    adawolfs
    8 times, last one,
    115 more bugmates