-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stm32cubemx: Can't initiate JxBrowser engine #272342
Comments
After further investigation I think CubeMX is trying to execute binaries found in |
This bug kind of kills my workflow. Has anyone investigated further? I will try to work things out during the weekend. |
I've kinda got it to work using FHS env. Only issue I have is that the CubeMX now requires login for code generation, and the login window (embedded browser) takes a while to appear on Wayland (Sway) and uses a lot of the CPU for no reason, while it appears OK on X11. I have updated package here : I guess I shold make a pull request out of it. |
I would appreciate a PR, it seems to be a good solution. You can ping me and I'll have a look. |
Thanks for the fast replies! @asmir-abdulahovic Do you recall how you approached debugging the issue? EDIT: Turns out I get a similar but not identical error:
This occurs at startup then clicking generate fails due to missing browser instance. Running the jar directly with JxBrowser logs gives:
which is not much. nix-info:
|
@angaz @liarokapisv |
I have deleted |
Than please try to run it with steam-run, maybe extractor is missing something too. Edit: |
There are no binaries under the folder, only the lock file. JxBrowser does seem to support aarch64 linux but maybe there is something wrong at the cubemx side. Thanks for your help! |
JxBrowser seems packed into CubeMX.
Maybe indicates that they didn't put arm version. |
Yea, that is possible. Thanks for the help! EDIT: It seems that the .7z bundle that JxBrowser provides is corrupted for linux arm. |
Coincidentally, I also tried to get this running last week inside an FHS env, but even with (basically) all dependencies in there (and in x86_64), one of the chromium child processes crashed in some udev function. It also tried to load some very old libraries like Just patching our own chromium in there and preventing it from modifying it might be a better solution, if it can be made to work. |
Describe the bug
When clicking "GENERATE CODE" nothing happens, and I get the error from title in the console log.
I'm not familiar with java but I guess newer cubemx versions require some browser like functionality which failed to init within java runtime due missing .so dependencies.
Startup Info:
Relevant error log:
Steps To Reproduce
nix shell nixpkgs#stm32cubemx --impure
.Expected behavior
Generated project folder with confirmation window.
Notify maintainers
@angaz @wucke13
Metadata
The text was updated successfully, but these errors were encountered: