Bug in Freecad 0.19 development cycle - desktop seen through grid

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
arnn
Posts: 24
Joined: Fri Feb 21, 2020 7:39 am

Bug in Freecad 0.19 development cycle - desktop seen through grid

Post by arnn »

Hi, In the recent freecad development builds, my desktop shows through the grid. there is a transparency in the grid when grid is on, and the content on my desktop is seen through.
i am referring to freecad0.19 development build 20514 for mac os. have attached a screenshot showing the same.
i hope this is the right forum to post bugs.
Attachments
Screenshot 2020-04-14 at 8.14.29 AM.png
Screenshot 2020-04-14 at 8.14.29 AM.png (706.92 KiB) Viewed 1699 times
chrisb
Veteran
Posts: 54293
Joined: Tue Mar 17, 2015 9:14 am

Re: Bug in Freecad 0.19 development cycle - desktop seen through grid

Post by chrisb »

It is the right forum, but you should attach your full FreeCAD info as described in the IMPORTANT forum rules linked above.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
tom
Posts: 165
Joined: Sun Mar 29, 2015 9:20 pm

Re: Bug in Freecad 0.19 development cycle - desktop seen through grid

Post by tom »

OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20514 (Git)
Build type: Release
Branch: master
Hash: a05ffd499366ab12fa1b43f37db73f4f1e9c332d
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)

I can confirm that behaviour. Any transparent object (even pre-selected objects or datum planes) let the desktop shine through:
freecad.png
freecad.png (155.78 KiB) Viewed 1669 times
The problem seems to be related to the Qt version. Some time ago I built FreeCAD by myself using Qt 5.13 and that FreeCAD did not show the effect. However, currently I'm not able to build FreeCAD again, because that Qt-pyside2-Python3.8 mixture in Homebrew is a totally mess.

BR tom
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Bug in Freecad 0.19 development cycle - desktop seen through grid

Post by openBrain »

Looks like one of the "MacOS poorly supports openGL" bugs. ;)
tom
Posts: 165
Joined: Sun Mar 29, 2015 9:20 pm

Re: Bug in Freecad 0.19 development cycle - desktop seen through grid

Post by tom »

openBrain wrote: Tue Apr 14, 2020 8:34 am Looks like one of the "MacOS poorly supports openGL" bugs. ;)
Maybe, but the problem has only existed since the OSX builds are created using conda.
chrisb
Veteran
Posts: 54293
Joined: Tue Mar 17, 2015 9:14 am

Re: Bug in Freecad 0.19 development cycle - desktop seen through grid

Post by chrisb »

tom wrote: Tue Apr 14, 2020 8:52 am Maybe, but the problem has only existed since the OSX builds are created using conda.
I don't think conda is the culprit. We had seen this sometimes long time ago in 0.17, perhaps even in 0.16. It seems rather to be a combination of Qt and graphics card driver. Perhaps there was a change in the Qt version at the same time with the conda packaging.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
tom
Posts: 165
Joined: Sun Mar 29, 2015 9:20 pm

Re: Bug in Freecad 0.19 development cycle - desktop seen through grid

Post by tom »

chrisb wrote: Tue Apr 14, 2020 12:58 pm
tom wrote: Tue Apr 14, 2020 8:52 am Maybe, but the problem has only existed since the OSX builds are created using conda.
I don't think conda is the culprit. We had seen this sometimes long time ago in 0.17, perhaps even in 0.16. It seems rather to be a combination of Qt and graphics card driver. Perhaps there was a change in the Qt version at the same time with the conda packaging.
I also think that it is Qt related. As I said in my own compiled version using Qt 5.13 the problem did not occur. Or it is related to the OpenGL version used during the conda build vs. the OpenGL libraries installed in OSX, i.e. it could be related to the OSX version. I'm still on High Sierra. Do you know, which OSX version the conda build machine is running on? Which OSX version are you using? Does your FreeCAD installation also suffer from the transparency problem?
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Bug in Freecad 0.19 development cycle - desktop seen through grid

Post by openBrain »

tom wrote: Tue Apr 14, 2020 4:40 pm I also think that it is Qt related. As I said in my own compiled version using Qt 5.13 the problem did not occur.
Yes (but not the real cause IMO). Qt version has an impact for sure. Apple so strongly want to push their own (probably proprietary) rendering solution that they declared openGL as being deprecated ( :!: ). So the MacOS support for openGL very probably lack some efforts. Guys at Qt made a big effort in Qt5.12 (and probably continuing in Qt5.13) to have all this working fine (for example, Intel GPUs also had problems with the Qt5 openGL).
tom
Posts: 165
Joined: Sun Mar 29, 2015 9:20 pm

Re: Bug in Freecad 0.19 development cycle - desktop seen through grid

Post by tom »

I played with the asm3 branch of FreeCAD and wondered why the transparency problem did not occur there. However, sometimes also the official FreeCAD version does not suffer from the problem. Now I found out why: If I open my project using the menu "File | Open ..." then I see the transparent problem. But if I open the same project using "File | Recent files" then all is fine. Further I noticed an extra error message on the console when opening the project using "File | Open ...":

Code: Select all

toms-macbook-air:~ tom$ /Applications/FreeCAD.app/Contents/MacOS/FreeCAD 
# packages in environment at /Users/travis/build/FreeCAD/FreeCAD-AppImage/conda/osx_dev/APP/FreeCAD.app/Contents/Resources:
#
# Name                    Version                   Build  Channel
arpack                    3.7.0                hbb27dc6_1    conda-forge
blas                      2.16                   openblas    conda-forge
boost                     1.72.0           py38hbf1eeb5_0    conda-forge
boost-cpp                 1.72.0               hdf9ef73_0    conda-forge
bzip2                     1.0.8                h0b31af3_2    conda-forge
ca-certificates           2020.4.5.1           hecc5488_0    conda-forge
calculix                  2.16                 h3379aec_2    conda-forge
certifi                   2020.4.5.1       py38h32f6830_0    conda-forge
coin3d                    4.0.0             h3c06c15_1008    conda-forge
curl                      7.69.1               h2d98d24_0    conda-forge
cycler                    0.10.0                     py_2    conda-forge
expat                     2.2.9                h4a8c4bd_2    conda-forge
fastcache                 1.1.0            py38h64e0658_1    conda-forge
flann                     1.9.1             h3c234d5_1007    conda-forge
fontconfig                2.13.1            h6b1039f_1001    conda-forge
freecad                   0.19.pre        py38h7f341c1_115    freecad/label/dev
freecad.asm3              0.10.2                     py_9    freecad/label/dev
freetype                  2.10.1               h8da9a1a_0    conda-forge
future                    0.18.2           py38h32f6830_1    conda-forge
gitdb                     4.0.4                      py_0    conda-forge
gitpython                 3.1.1                      py_0    conda-forge
gmp                       6.2.0                h4a8c4bd_2    conda-forge
gmpy2                     2.1.0b1          py38h4160ff4_0    conda-forge
hdf4                      4.2.13            h84186c3_1003    conda-forge
hdf5                      1.10.5          nompi_h3e39495_1104    conda-forge
icu                       64.2                 h6de7cb9_1    conda-forge
ifcopenshell              v0.6.0           py38h128ab56_0    conda-forge
jinja2                    2.11.2             pyh9f0ad1d_0    conda-forge
jpeg                      9c                h1de35cc_1001    conda-forge
jsoncpp                   1.8.4             ha1b3eb9_1002    conda-forge
kiwisolver                1.2.0            py38ha0d09dd_0    conda-forge
krb5                      1.17.1               h1752a42_0    conda-forge
libblas                   3.8.0               16_openblas    conda-forge
libcblas                  3.8.0               16_openblas    conda-forge
libclang                  9.0.1           default_hf57f61e_0    conda-forge
libcurl                   7.69.1               hc0b9707_0    conda-forge
libcxx                    10.0.0               h1af66ff_2    conda-forge
libedit                   3.1.20170329      hcfe32e1_1001    conda-forge
libffi                    3.2.1             h4a8c4bd_1007    conda-forge
libgfortran               4.0.0                         2    conda-forge
libiconv                  1.15              h0b31af3_1006    conda-forge
liblapack                 3.8.0               16_openblas    conda-forge
liblapacke                3.8.0               16_openblas    conda-forge
libllvm9                  9.0.1                h7475705_1    conda-forge
libnetcdf                 4.7.4           nompi_he461dc0_101    conda-forge
libopenblas               0.3.9                h3d69b6c_0    conda-forge
libpng                    1.6.37               hbbe82c9_1    conda-forge
libpq                     12.2                 h489d428_1    conda-forge
libredwg                  0.10.1.3266      py38hc829089_0    conda-forge
libssh2                   1.8.2                hcdc9a53_2    conda-forge
libtiff                   4.1.0                h2ae36a8_6    conda-forge
libwebp-base              1.1.0                h0b31af3_3    conda-forge
libxml2                   2.9.10               h53d96d6_0    conda-forge
libxslt                   1.1.33               h320ff13_0    conda-forge
llvm-openmp               10.0.0               h28b9765_0    conda-forge
lz4-c                     1.9.2                h4a8c4bd_0    conda-forge
markupsafe                1.1.1            py38h64e0658_1    conda-forge
matplotlib-base           3.2.1            py38h1300a51_0    conda-forge
mpc                       1.1.0             h4160ff4_1007    conda-forge
mpfr                      4.0.2                h65ac59c_1    conda-forge
mpmath                    1.1.0                      py_0    conda-forge
ncurses                   6.1               h0a44026_1002    conda-forge
netgen                    6.2.1808        py38h65d59e6_1007    conda-forge
nspr                      4.20              h0a44026_1000    conda-forge
nss                       3.47                 hc0980d9_0    conda-forge
numpy                     1.18.1           py38h1f821a2_1    conda-forge
occt                      7.4.0                hb9b6dc7_5    conda-forge
opencamlib                2019.07          py38h381bead_2    conda-forge
openssl                   1.1.1g               h0b31af3_0    conda-forge
pandas                    1.0.3            py38h5fc983b_1    conda-forge
pcl                       1.9.1             h3d0f52c_1005    conda-forge
pip                       20.1               pyh9f0ad1d_0    conda-forge
pivy                      0.6.6dev         py38hd8f0d6a_0    freecad/label/dev
ply                       3.11                       py_1    conda-forge
pycollada                 0.7.1                      py_0    conda-forge
pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
pyside2                   5.13.2           py38ha8f7116_2    conda-forge
python                    3.8.2           hd5f0129_7_cpython    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
python_abi                3.8                      1_cp38    conda-forge
pytz                      2020.1             pyh9f0ad1d_0    conda-forge
pyyaml                    5.3.1            py38h64e0658_0    conda-forge
qhull                     2015.2            h04f5b5a_1000    conda-forge
qt                        5.12.5               h514805e_3    conda-forge
readline                  8.0                  hcfe32e1_0    conda-forge
scipy                     1.4.1            py38h38b60c6_3    conda-forge
setuptools                46.1.3           py38h32f6830_0    conda-forge
six                       1.14.0                     py_1    conda-forge
smesh                     8.3.0.3         py38h7dac498_10    conda-forge
smmap                     3.0.2              pyh9f0ad1d_0    conda-forge
solvespace                2.4.1            py38h281f984_0    freecad/label/dev
soqt                      1.6.0                h02c1c16_0    conda-forge
sqlite                    3.30.1               h93121df_0    conda-forge
sympy                     1.5.1            py38h32f6830_3    conda-forge
tbb                       2019.9               ha1b3eb9_1    conda-forge
tk                        8.6.10               hbbe82c9_0    conda-forge
tornado                   6.0.4            py38h64e0658_1    conda-forge
vtk                       8.2.0           py38h5052d89_214    conda-forge
wheel                     0.34.2                     py_1    conda-forge
xerces-c                  3.2.2             h8f8adb3_1004    conda-forge
xz                        5.2.5                h0b31af3_0    conda-forge
yaml                      0.2.4                h0b31af3_0    conda-forge
zlib                      1.2.11            h0b31af3_1006    conda-forge
zstd                      1.4.4                h4b3e974_3    conda-forge
FreeCAD 0.19, Libs: 0.19R20802 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2020
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

objc[9173]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fffb2f4acd0) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x124daacd8). One of the two will be used. Which one is undefined.
At first it doesn't seem to be related to the transparency issue. But maybe this error message comes from an exception, which prevents the graphics initialisation being completed.

BR Thomas

OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20802 (Git)
Build type: Release
Branch: master
Hash: f4279f1bea8377a7ef63f7f4c69b67159d498965
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
chrisb
Veteran
Posts: 54293
Joined: Tue Mar 17, 2015 9:14 am

Re: Bug in Freecad 0.19 development cycle - desktop seen through grid

Post by chrisb »

I can confirm the message on opening a file. The message comes, after confirming a selected file, it occurs when opening via menu or icon.
It does not occur on cancelling. It occurs only once, i.e. it is not shown when opening another file.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply