#MergeLibraries: False = I can run app in Release mode
#MergeLibraries: True = App crash in Release mode
Stacktrace:
Line 42 in wrapper lib:
The error is completely unrelated... I cannot get it.
This behavior also create unusable app with standalone package.
Library:
www.b4x.com
I need to build standalone package, any solution?
#MergeLibraries: True = App crash in Release mode
Stacktrace:
java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: Range [0, -1) out of bounds for length 7
at anywheresoftware.b4a.keywords.Common$2$1.run(Common.java:1052)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:457)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:456)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
at java.base/java.lang.Thread.run(Thread.java:1589)
Caused by: java.lang.StringIndexOutOfBoundsException: Range [0, -1) out of bounds for length 7
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52)
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213)
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210)
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Preconditions.java:112)
at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Preconditions.java:349)
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4602)
at java.base/java.lang.String.substring(String.java:2715)
at org.openqa.selenium.manager.SeleniumManager.<init>(SeleniumManager.java:81)
at org.openqa.selenium.manager.SeleniumManager.getInstance(SeleniumManager.java:107)
at org.openqa.selenium.remote.service.DriverFinder.<init>(DriverFinder.java:45)
at org.openqa.selenium.chrome.ChromeDriver.generateExecutor(ChromeDriver.java:98)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:88)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:83)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:72)
at com.pendrush.selenium.kotlin.SeleniumLib.initialize(SeleniumLib.kt:42)
at com.pendrush.selenium.Wrapper.initialize2(Wrapper.java:80)
at com.pendrush.selenium.Wrapper.Initialize(Wrapper.java:76)
at b4j.example.main$ResumableSub_AppStart.resume(main.java:92)
at anywheresoftware.b4a.keywords.Common$2$1.run(Common.java:1050)
... 7 more
Line 42 in wrapper lib:
Java:
private val options = ChromeOptions() // <- global declaration
driver = ChromeDriver(options) // <- error line 42 from stacktrace: at com.pendrush.selenium.kotlin.SeleniumLib.initialize(SeleniumLib.kt:42)
The error is completely unrelated... I cannot get it.
This behavior also create unusable app with standalone package.
Library:
Selenium Library - Pnd_Selenium
Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should) also be automated as well. Wrapper...
I need to build standalone package, any solution?