E ernschd Active Member Licensed User Longtime User Nov 12, 2020 #1 Hello, i have the problem that i can only start the app in release mode. In debug mode I get this message when compiling: B4X: Copying updated assets files (80) java.lang.RuntimeException: Unable to create service my.App.V3.starter: java.lang.RuntimeException: java.io.EOFException at android.app.ActivityThread.handleCreateService(ActivityThread.java:3422) at android.app.ActivityThread.-wrap4(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1699) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6651) 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:810) Caused by: java.lang.RuntimeException: java.io.EOFException at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:164) at anywheresoftware.b4a.shell.Shell.start(Shell.java:102) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:92) at my.App.V3.starter.onCreate(starter.java:34) at android.app.ActivityThread.handleCreateService(ActivityThread.java:3412) ... 8 more Caused by: java.io.EOFException at java.io.DataInputStream.readByte(DataInputStream.java:270) at anywheresoftware.b4a.shell.ShellConnector.readObject(ShellConnector.java:242) at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:146) ... 12 more Unfortunately, I cannot see where the error is. Can someone please help me?
Hello, i have the problem that i can only start the app in release mode. In debug mode I get this message when compiling: B4X: Copying updated assets files (80) java.lang.RuntimeException: Unable to create service my.App.V3.starter: java.lang.RuntimeException: java.io.EOFException at android.app.ActivityThread.handleCreateService(ActivityThread.java:3422) at android.app.ActivityThread.-wrap4(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1699) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6651) 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:810) Caused by: java.lang.RuntimeException: java.io.EOFException at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:164) at anywheresoftware.b4a.shell.Shell.start(Shell.java:102) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:92) at my.App.V3.starter.onCreate(starter.java:34) at android.app.ActivityThread.handleCreateService(ActivityThread.java:3412) ... 8 more Caused by: java.io.EOFException at java.io.DataInputStream.readByte(DataInputStream.java:270) at anywheresoftware.b4a.shell.ShellConnector.readObject(ShellConnector.java:242) at anywheresoftware.b4a.shell.Shell.virtualAssets(Shell.java:146) ... 12 more Unfortunately, I cannot see where the error is. Can someone please help me?
agraham Expert Licensed User Longtime User Nov 12, 2020 #2 Are running code in Globals or Process_Globals? From the log you seem to be copying some files. Upvote 0
E ernschd Active Member Licensed User Longtime User Nov 12, 2020 #3 I don't even know that this is possible ? No, I haven't found any code in Globals or Process_Globals. Upvote 0
I don't even know that this is possible ? No, I haven't found any code in Globals or Process_Globals.
eps Expert Licensed User Longtime User Nov 12, 2020 #4 Is this really an error at compilation time or is it at execution? I would try the following in the Manifest File.... Code: #DebuggerForceStandardAssets : true Although there might be a more recent solution Upvote 0
Is this really an error at compilation time or is it at execution? I would try the following in the Manifest File.... Code: #DebuggerForceStandardAssets : true Although there might be a more recent solution
DonManfred Expert Licensed User Longtime User Nov 12, 2020 #5 ernschd said: I don't even know that this is possible Click to expand... it is not. Note that you can only use variable declaration (dim x as string) but NOT setting any Values (x="y") It would help if you upload your project or at least post the code in Globals and Process_Globals (from any module). Upvote 0
ernschd said: I don't even know that this is possible Click to expand... it is not. Note that you can only use variable declaration (dim x as string) but NOT setting any Values (x="y") It would help if you upload your project or at least post the code in Globals and Process_Globals (from any module).
E ernschd Active Member Licensed User Longtime User Nov 12, 2020 #6 eps said: Is this really an error at compilation time or is it at execution? I would try the following in the Manifest File.... Code: #DebuggerForceStandardAssets : true Although there might be a more recent solution Click to expand... I'm sorry, the project is compiling, and right after execution the error message appears and the app is exiting. But only in debug mode. DebuggerForceStandardAssets is not making a difference. Upvote 0
eps said: Is this really an error at compilation time or is it at execution? I would try the following in the Manifest File.... Code: #DebuggerForceStandardAssets : true Although there might be a more recent solution Click to expand... I'm sorry, the project is compiling, and right after execution the error message appears and the app is exiting. But only in debug mode. DebuggerForceStandardAssets is not making a difference.
E ernschd Active Member Licensed User Longtime User Nov 12, 2020 #7 DonManfred said: It would help if you upload your project or at least post the code in Globals and Process_Globals (from any module). Click to expand... I will gather the code parts. Upvote 0
DonManfred said: It would help if you upload your project or at least post the code in Globals and Process_Globals (from any module). Click to expand... I will gather the code parts.
E ernschd Active Member Licensed User Longtime User Nov 12, 2020 #8 I'm confused: I changed android:targetSdkVersion from 26 to 29. Then the project has compiled and started in debug mode. In the log, at the beginning there is: "Copying updated assets files (79)" - and this only in debug mode! On a second try it didn't work anymore, only if I compile in release mode before. Upvote 0
I'm confused: I changed android:targetSdkVersion from 26 to 29. Then the project has compiled and started in debug mode. In the log, at the beginning there is: "Copying updated assets files (79)" - and this only in debug mode! On a second try it didn't work anymore, only if I compile in release mode before.
DonManfred Expert Licensed User Longtime User Nov 12, 2020 #9 ernschd said: I changed android:targetSdkVersion from 26 to 29. Click to expand... Did you adapt your app to be ready for targetsdk 29? There are some changes needed. android.jar / targetSdkVersion / minSdkVersion There are several versioned components that affect the compilation process and the runtime behavior of our apps. The purpose of this tutorial is to explain the differences between them and help you choose which version to use. Each Android version is mapped to an api level. You can see this... www.b4x.com Also you still did not uploaded some code. Based on the error i would expect you have code running in process_global which should not there. This is usually related to code inside one of the global subs. In most cases there would be a warnings about it. Have you tried to disable firewall? One of the similar problem-threads debugger error - no legacy Hi to all, in debug mode, the compilier give this error when loading the application. After the app is close. why? java.lang.RuntimeException: Unable to create service dev.meta.sb.starter: java.lang.RuntimeException: java.io.EOFException at... www.b4x.com Search Results www.b4x.com Upvote 0
ernschd said: I changed android:targetSdkVersion from 26 to 29. Click to expand... Did you adapt your app to be ready for targetsdk 29? There are some changes needed. android.jar / targetSdkVersion / minSdkVersion There are several versioned components that affect the compilation process and the runtime behavior of our apps. The purpose of this tutorial is to explain the differences between them and help you choose which version to use. Each Android version is mapped to an api level. You can see this... www.b4x.com Also you still did not uploaded some code. Based on the error i would expect you have code running in process_global which should not there. This is usually related to code inside one of the global subs. In most cases there would be a warnings about it. Have you tried to disable firewall? One of the similar problem-threads debugger error - no legacy Hi to all, in debug mode, the compilier give this error when loading the application. After the app is close. why? java.lang.RuntimeException: Unable to create service dev.meta.sb.starter: java.lang.RuntimeException: java.io.EOFException at... www.b4x.com Search Results www.b4x.com
E ernschd Active Member Licensed User Longtime User Nov 12, 2020 #10 Here are the Globals and Process_Globals declarations. Setting targetsdk to 29 was just a attempt. Attachments subs.zip subs.zip 21.6 KB · Views: 545 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 13, 2020 #11 Create a new project. Are you able to run it in debug mode? Are you using FirebaseAdMob? Upvote 0
eps Expert Licensed User Longtime User Nov 13, 2020 #12 So it's not a compilation error but an execution error. Upvote 0
E ernschd Active Member Licensed User Longtime User Nov 17, 2020 #13 Current state: it works now (I've pulled an older version from Git). Unfortunately I can't say what the reason is. When I compare the changes, I don't see any relevant differences. But the main thing is that I can continue working now. Thanks a lot to everyone for your help! Upvote 0
Current state: it works now (I've pulled an older version from Git). Unfortunately I can't say what the reason is. When I compare the changes, I don't see any relevant differences. But the main thing is that I can continue working now. Thanks a lot to everyone for your help!