cancel
Showing results for 
Search instead for 
Did you mean: 

stm32cubemx fails to download packages

dimmorpheus
Associate II

stm32cubemx fails to download packages due to inability to authorize at "myST->login".

According to the crash dump it has happend because of jxbrowser plugin-7.30.2 (chomium version 108.0.5359.215).

All extended attributes had been cleared (not trusted software etc), all neccessary execution bits are set, firewall is turned off.
Please see the log below.

Could anybody help me? Is there any other way to autorise the app?

Log:

 

 
Spoiler
Exception in thread "Browser Thread: af1bad7e-9d54-4fea-bf81-810f805fadf1" Exception in thread "Render Thread: 1e9167c2-a7d4-47ff-a51f-8766ace40d51" java.lang.IllegalStateException: Failed to receive the response.
at com.teamdev.jxbrowser.internal.rpc.transport.RpcThreadCallExecutor.execute(RpcThreadCallExecutor.java:43)
at com.teamdev.jxbrowser.internal.rpc.ServiceConnectionImpl.invoke(ServiceConnectionImpl.java:213)
at com.teamdev.jxbrowser.frame.internal.FrameImpl.document(FrameImpl.java:449)
at com.st.microxplorer.plugins.userauth.WebApp.findElementsByTagName(WebApp.java:723)
at com.st.microxplorer.plugins.userauth.WebApp.removeUnecessaryTags(WebApp.java:806)
at com.st.microxplorer.plugins.userauth.WebApp.lambda$new$9(WebApp.java:193)
at com.teamdev.jxbrowser.event.internal.NewObservableHelper.notifyObservers(NewObservableHelper.java:57)
at com.teamdev.jxbrowser.internal.rpc.stream.EventStream.dispatch(EventStream.java:74)
at com.teamdev.jxbrowser.internal.rpc.stream.EventStream.process(EventStream.java:126)
at com.teamdev.jxbrowser.internal.rpc.stream.Stream$StreamObserver.lambda$onNext$0(Stream.java:167)
at com.teamdev.jxbrowser.internal.RpcThreadImpl$TaskRunner.processTasks(RpcThreadImpl.java:172)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalStateException: The connection has been closed.
at com.teamdev.jxbrowser.internal.rpc.transport.RpcThreadCallExecutor.lambda$execute$0(RpcThreadCallExecutor.java:35)
at com.teamdev.jxbrowser.deps.com.google.protobuf.RpcUtil$1.run(RpcUtil.java:79)
at com.teamdev.jxbrowser.deps.com.google.protobuf.RpcUtil$1.run(RpcUtil.java:70)
at com.teamdev.jxbrowser.internal.rpc.ServiceChannel$1.onError(ServiceChannel.java:76)
at com.teamdev.jxbrowser.internal.rpc.transport.SharedMemoryTransport.lambda$close$1(SharedMemoryTransport.java:132)
at java.base/java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1603)
at com.teamdev.jxbrowser.internal.rpc.transport.SharedMemoryTransport.close(SharedMemoryTransport.java:130)
at com.teamdev.jxbrowser.internal.rpc.transport.RpcConnection.close(RpcConnection.java:51)
at com.teamdev.jxbrowser.internal.rpc.transport.ConnectionChecker.run(ConnectionChecker.java:41)
... 1 more
java.lang.NullPointerException: Cannot invoke "com.teamdev.jxbrowser.deps.com.google.protobuf.StringValue.getValue()" because the return value of "com.teamdev.jxbrowser.internal.rpc.UniversalServiceConnection.invoke(com.teamdev.jxbrowser.internal.rpc.ServiceMethod, com.teamdev.jxbrowser.deps.com.google.protobuf.Message)" is null
at com.teamdev.jxbrowser.browser.internal.BrowserImpl.url(BrowserImpl.java:448)
at com.st.microxplorer.plugins.userauth.WebApp.lambda$new$0(WebApp.java:169)
at com.teamdev.jxbrowser.frame.internal.FrameImpl.lambda$processCallback$2(FrameImpl.java:187)
at java.base/java.util.Optional.map(Optional.java:260)
at com.teamdev.jxbrowser.frame.internal.FrameImpl.processCallback(FrameImpl.java:187)
at com.teamdev.jxbrowser.internal.rpc.stream.CallbackStream.process(CallbackStream.java:181)
at com.teamdev.jxbrowser.internal.rpc.stream.Stream$StreamObserver.lambda$onNext$0(Stream.java:167)
at com.teamdev.jxbrowser.internal.RpcThreadImpl$TaskRunner.processTasks(RpcThreadImpl.java:172)
at java.base/java.lang.Thread.run(Thread.java:833)
11:41:50.010 ERROR The response observer has thrown an exception.
java.lang.IllegalStateException
at com.teamdev.jxbrowser.deps.com.google.common.base.Preconditions.checkState(Preconditions.java:494)
at com.teamdev.jxbrowser.internal.RpcThreadImpl.exitNestedLoop(RpcThreadImpl.java:137)
at com.teamdev.jxbrowser.internal.rpc.transport.RpcThreadCallExecutor.lambda$execute$0(RpcThreadCallExecutor.java:39)
at com.teamdev.jxbrowser.deps.com.google.protobuf.RpcUtil$1.run(RpcUtil.java:79)
at com.teamdev.jxbrowser.deps.com.google.protobuf.RpcUtil$1.run(RpcUtil.java:70)
at com.teamdev.jxbrowser.internal.rpc.ServiceChannel$1.onError(ServiceChannel.java:76)
at com.teamdev.jxbrowser.internal.rpc.transport.SharedMemoryTransport.lambda$close$1(SharedMemoryTransport.java:132)
at java.base/java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1603)
at com.teamdev.jxbrowser.internal.rpc.transport.SharedMemoryTransport.close(SharedMemoryTransport.java:130)
at com.teamdev.jxbrowser.internal.rpc.transport.RpcConnection.close(RpcConnection.java:51)
at com.teamdev.jxbrowser.internal.rpc.transport.ConnectionChecker.run(ConnectionChecker.java:41)
at java.base/java.lang.Thread.run(Thread.java:833)
11:41:50.030 ERROR Chromium process exit code: 137
11:41:50.031 ERROR Crash dump dir: /Users/dimmorpheus/Library/Application Support/JxBrowser/7.30.2/CrashReports
2023-07-27 11:41:50,032 [ERROR] WebApp:339 - JxBrowser engine crashed! Exit code: 137

Screen Shot 2023-07-27 at 11.43.58 AM.png
 
21 REPLIES 21
Pierre_Jean_SINACOUTY
ST Employee

Thank you for your contribution!

Let's give ourselves a chance to solve the problem, at least it might help other customers with similar problems.

By default, docker launches containers with a small amount of shared memory (just 64MB, I believe). It is not enough to run Chromium.

The amount can be adjusted with this command line flag: docker run --shm-size=1gb ....

Could you please try it and see if the issue persists?

BR

Sure !
Added that config to my Docker line and works like a charm so far. That crash disappeared.
I attached my Docker file and auto install script, for others to take advantage of it.

Best regards