Bug? [SOLVED] File issue - Only in Debug (Rapid) Mode

Peter Simpson

Expert
Licensed User
Longtime User
I'm not sure how to report this, it maybe or maybe not a bug.

This error has started to appears in my TIX Clock app for phones and tablets for the first time ever, but the file apparent file is there and has not changed, also I've already use CTRL + P to clean the project a few times just to be sure..

When I run the code in any of the following modes, everything assembles and the widget runs perfect.
  • Debug > (Legacy Debugger)
  • Release
  • Release (obfuscated)
When I run the code in the following mode, everything assembles and the widget fails to run.
  • Debug > (Rapid Debugger)
I've never had this issue before with Debug (Rapid) and this particular app, but now I'm being forced to use the legacy debugger to debug this app, I've not used legacy debugger in years.

The line in question (line 22) is as follows and has not changed since the day I first developed this widget 3 or 4 years ago. I even tried changing the bal name below to lowercase just in case, but that made no difference whatsoever.

Line 22
B4X:
    RV = ConfigureHomeWidget("TClockLayout", "RV", 30, "TIX Clock", True)
Logs
B4X:
*** Service (tixservice) Create ***
Error occurred on line: 22 (TIXService)
java.io.FileNotFoundException: tclocklayout.bal
    at android.content.res.AssetManager.openAsset(Native Method)
    at android.content.res.AssetManager.open(AssetManager.java:374)
    at android.content.res.AssetManager.open(AssetManager.java:348)
    at anywheresoftware.b4a.objects.RemoteViewsWrapper.createRemoteViews(RemoteViewsWrapper.java:39)
    at com.simplysoftware.tixclock.tixservice._service_create(tixservice.java:513)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:710)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:339)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
    at com.simplysoftware.tixclock.tixservice.onCreate(tixservice.java:55)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:3339)
    at android.app.ActivityThread.-wrap4(Unknown Source:0)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1677)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:164)
    at android.app.ActivityThread.main(ActivityThread.java:6494)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
** Service (tixservice) Start **

Thank you
 

Peter Simpson

Expert
Licensed User
Longtime User
For over 2 hours I've been trying to solve the above issue, I then posted the issue above. Less than 20 minutes later I found out about
B4X:
   #DebuggerForceStandardAssets: True

Tried it and it worked, but I'm still none the wiser as to why I had the issue in the first place, I even rebooted my laptop 3 or 4 times. I can't ever remember using DebuggerForceStandardAssets before thus I'm completely confused. Maybe I did used DebuggerForceStandardAssets previously, but it wasn't in my code and I've just added it.

Anyway thank you
 
Last edited:
Top