Summary: | media-gfx/freecad-9999 crashes on opening example or new design | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | brankob |
Component: | Current packages | Assignee: | Bernd <waebbl-gentoo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | andrewammerlaan, brankob, jstein, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/coin3d/coin/issues/451 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge --info output
tweak of the original ebouild that otherwise fails trivial coin hello world example patch for git repo(master) ebuild |
Description
brankob
2022-07-28 13:15:55 UTC
Created attachment 795269 [details]
emerge --info output
Oh, I forgot to mention that I had to tweak the freecad-9999 ebuild just to skip the line that removes coind3d cmake file, which is now absent in the code tree. Change is trivial, but just in case, I've attached the patch of ebuild change... Created attachment 795275 [details, diff]
tweak of the original ebouild that otherwise fails
git tree now doesn't have the file, so the line that removes it, now fails:
"rm "${S}/cMake/FindCoin3D.cmake" || die"
ebuild change only removes that line.
(In reply to Branko Badrljica from comment #3) > Created attachment 795275 [details, diff] [details, diff] > tweak of the original ebouild that otherwise fails > > git tree now doesn't have the file, so the line that removes it, now fails: > "rm "${S}/cMake/FindCoin3D.cmake" || die" > > ebuild change only removes that line. Your tree is outdated. Please sync and try again. For the crash I first have to research. I'm having no clue about using mesa, especially not in combination with wayland. I can't reproduce this on a live ebuild, built 4 days ago with hardware acceleration instead of mesa. One a side note, live ebuilds usually aren't meant for the casual user. They can succeed to build and run properly on one day, and fail to build or crash on the next day. I had this already a few times with freecad. Created attachment 796303 [details]
trivial coin hello world example
unpack, run my_build and then execute the final executable in 000_build.
If the software itself is crashing, you likely need to report this directly to upstream. (In reply to Sam James from comment #6) > If the software itself is crashing, you likely need to report this directly > to upstream. It looks like coin library fails to get valid context for a drawable or somethign from wayland. I've found trivial "Hello world" example with coin that fails in the exact same way and attached it here in a tarbzip. (In reply to Branko Badrljica from comment #7) > (In reply to Sam James from comment #6) > > If the software itself is crashing, you likely need to report this directly > > to upstream. > > It looks like coin library fails to get valid context for a drawable or > somethign from wayland. > > I've found trivial "Hello world" example with coin that fails in the exact > same way and attached it here in a tarbzip. Ah, sorry, I'd just missed it. I think it might be that coin is deficient here? https://github.com/coin3d/coin/issues/451 Following the issue linked by Sam, there seems to be several packages involved in this. - Coin needs EGL, Wayland support - Quarter (and eventually obsolete SoQt as well) moving from QGLWidget to QOpenGLWidget - pivy implementing this move in it's python bindings. The basis seems to be the EGL and Wayland support for coin, of which the issue got re-opened after a PR was merged, so this implementation seems not to be complete. However, coin upstream noted that a COIN_USE_EGL or similar cmake option will be available in the next release. I've got tired waiting for upstream to accept waiting patches, so I did that myself and added simple fix that prevented compile. Coin now seems to be working fine. with EGL/Wayland. Given example certainly works now on my machine, same as Freecad and Openscad. I'll attach the patch for current HEAD of git repo and new ebuild for coin. BTW, openscad has gained new meson config bool ENABLE_EGL. It works fine without it, though. Created attachment 804535 [details]
patch for git repo(master)
Created attachment 804538 [details]
ebuild
Wouldn't this patch belong to the media-libs/coin package? Yes, but I wanted to resolve the report that I started. Thanks Branko for your research in this and patching! |