Suggestions re Issue 6698

This subforum is specifically to discuss packaging issues on different platforms (windows, mac, linux), and using different packaging systems (conda, etc...)
User avatar
wandererfan
Veteran
Posts: 6238
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Suggestions re Issue 6698

Post by wandererfan »

We have reports of graphics issues on some linux configurations - see issue #6698 for details. I have not been able to figure out why some versions work fine and others have issues.

Does anybody have any suggestions on what the issue might be or where to look further?
User avatar
onekk
Veteran
Posts: 6094
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Suggestions re Issue 6698

Post by onekk »

wandererfan wrote: Thu Apr 07, 2022 6:30 pm Does anybody have any suggestions on what the issue might be or where to look further?
Probably it is not the case, but in ArtixLinux (Arch Linux derivative), I have to downgrade the Mesa version to "21.3.7-2"

see maybe:

https://forum.freecadweb.org/viewtopic. ... 70#p586570

for the problems I had.

I own an old i3-2100 machine so quite old but working.


It was related to the fact that some "old drivers" were removed from Mesa and probably the focus is not on compatibility, as Ubuntu, is using "Debian testing" as a base when making new versions, maybe this is the case. (I don't know it 22.04 is the latest Ubuntu).

At least in Arch Linux there is a package that use "old drivers", "Mesa-amber" i think, but it is reported as problematic, so only viable solution for me was to downgrade and "pin" Mesa package to old version (hoping it will be fixed soon, 22.0.1 was not a solution)

Hope it could be of some help.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
wandererfan
Veteran
Posts: 6238
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Suggestions re Issue 6698

Post by wandererfan »

onekk wrote: Fri Apr 08, 2022 6:30 am At least in Arch Linux there is a package that use "old drivers", "Mesa-amber" i think, but it is reported as problematic, so only viable solution for me was to downgrade and "pin" Mesa package to old version (hoping it will be fixed soon, 22.0.1 was not a solution)
Not sure I know how to do this, but I will investigate. Thanks for the hint.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Suggestions re Issue 6698

Post by Kunda1 »

This is a tough issue
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
onekk
Veteran
Posts: 6094
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Suggestions re Issue 6698

Post by onekk »

Kunda1 wrote: Sat Apr 09, 2022 11:56 pm This is a tough issue
Yes, but it is almost normal to have to deal with differents OpenGL implementations.

Mesa is the OpenGl implmentationm used on most Linux distribution, and usally if you are not using a "proprietary graphics driver" you will use Mesa, some infos could be:

https://wiki.archlinux.org/title/OpenGL


Sorry for using Arch Linux, but with Gentoo are the most useful place where to find some explanantion on some Linux internal workings, in a "convenient place".

Gentoo is too complicated as it has to deal with many "flavours" of things, being a source distribution.

Some other infos could be "Linux from Scratch" at least to try to see some "low levels info", at least if you are not a kernel developer or a "Linux graphics expert".

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
mfraz74
Posts: 153
Joined: Mon Apr 05, 2021 9:19 am
Contact:

Re: Suggestions re Issue 6698

Post by mfraz74 »

wandererfan wrote: Thu Apr 07, 2022 6:30 pm We have reports of graphics issues on some linux configurations - see issue #6698 for details. I have not been able to figure out why some versions work fine and others have issues.

Does anybody have any suggestions on what the issue might be or where to look further?
Wondering if it is worth trying to compile using the source at https://code.launchpad.net/~freecad-mai ... it/freecad to see if it produces different results.
User avatar
wandererfan
Veteran
Posts: 6238
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Suggestions re Issue 6698

Post by wandererfan »

mfraz74 wrote: Tue Apr 12, 2022 5:21 pm Wondering if it is worth trying to compile using the source at https://code.launchpad.net/~freecad-mai ... it/freecad to see if it produces different results.
Worth a try, I have no better suggestion at this point. Can you do this?
User avatar
mfraz74
Posts: 153
Joined: Mon Apr 05, 2021 9:19 am
Contact:

Re: Suggestions re Issue 6698

Post by mfraz74 »

wandererfan wrote: Tue Apr 12, 2022 6:03 pm
mfraz74 wrote: Tue Apr 12, 2022 5:21 pm Wondering if it is worth trying to compile using the source at https://code.launchpad.net/~freecad-mai ... it/freecad to see if it produces different results.
Worth a try, I have no better suggestion at this point. Can you do this?
I should be able to. I did look at the packages it wanted to install in tools/build/ubuntu.sh and there are are a few additional packages that aren't mentioned in https://wiki.freecadweb.org/Compile_on_Linux.

Code: Select all

build-essential cmake doxygen git libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-graph-dev libboost-iostreams-dev libboost-program-options-dev libboost-python-dev libboost-regex-dev libboost-serialization-dev libboost-thread-dev libcoin-dev libeigen3-dev libgtkglext1-dev libgts-dev libkdtree++-dev libkml-dev libmedc-dev libocct-data-exchange-dev libocct-draw-dev libocct-foundation-dev libocct-modeling-algorithms-dev libocct-modeling-data-dev libocct-ocaf-dev libocct-visualization-dev libopencv-dev libproj-dev libpyside2-dev libqt5svg5-dev libqt5webkit5-dev libqt5xmlpatterns5-dev libshiboken2-dev libvtk9-dev libvtk9-qt-dev libvtk-dicom-dev libx11-dev libxerces-c-dev libxmu-dev libxmuu-dev libzipios++-dev netgen netgen-headers pyside2-tools python3-dev python3-matplotlib python3-pivy python3-ply python3-pyside2.qtsvg python3-pyside2.qtuitools qtchooser qttools5-dev shiboken2 swig
Currently failing:

Code: Select all

[ 55%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/CallTips.cpp.o
during GIMPLE pass: resx
In file included from /usr/include/boost/smart_ptr/shared_ptr.hpp:17,
                 from /usr/include/boost/shared_ptr.hpp:17,
                 from /usr/include/boost/signals2/deconstruct.hpp:28,
                 from /usr/include/boost/signals2.hpp:15,
                 from /home/mfraser/git/freecad/src/boost_signals2.hpp:6,
                 from /home/mfraser/git/freecad/src/Base/Tools.h:36,
                 from /home/mfraser/git/freecad/src/Gui/Tree.cpp:45:
/usr/include/boost/smart_ptr/detail/shared_count.hpp: In constructor ‘boost::detail::shared_count::shared_count(Y*) [with Y = boost::signals2::detail::connection_body<std::pair<boost::signals2::detail::slot_meta_group, boost::optional<int> >, boost::signals2::slot<void(const QString&), boost::function<void(const QString&)> >, boost::signals2::mutex>]’:
/usr/include/boost/smart_ptr/detail/shared_count.hpp:141:32: internal compiler error: Segmentation fault
  141 |     template<class Y> explicit shared_count( Y * p ): pi_( 0 )
      |                                ^~~~~~~~~~~~
0xb0c67e crash_signal
        ../../src/gcc/toplev.c:327
0x7f14fb63351f ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x10deefa sbitmap_free(simple_bitmap_def*)
        ../../src/gcc/sbitmap.h:237
0x10deefa delete_update_ssa()
        ../../src/gcc/tree-into-ssa.c:2960
0x10b156d update_ssa(unsigned int)
        ../../src/gcc/tree-into-ssa.c:3564
0xfb8924 execute_function_todo
        ../../src/gcc/passes.c:2010
0xf6c3f9 execute_todo
        ../../src/gcc/passes.c:2096
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
make[2]: *** [src/Gui/CMakeFiles/FreeCADGui.dir/build.make:2403: src/Gui/CMakeFiles/FreeCADGui.dir/Tree.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:5492: src/Gui/CMakeFiles/FreeCADGui.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
Last edited by mfraz74 on Wed Apr 13, 2022 12:54 pm, edited 1 time in total.
User avatar
wandererfan
Veteran
Posts: 6238
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Suggestions re Issue 6698

Post by wandererfan »

mfraz74 wrote: Tue Apr 12, 2022 9:14 pm Currently failing:
[ 55%] Building CXX object src/Gui/CMakeFiles/FreeCADGui.dir/CallTips.cpp.o
You are getting farther than I am. I'm stuck at compile errors with NETGENPlugin.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Suggestions re Issue 6698

Post by Kunda1 »

Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply