[Bug] Changing 3d view background color

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!
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

[Bug] Changing 3d view background color

Post by HakanSeven12 »

When I tried to change the background color freecad collapses every time.

Code: Select all

reeCAD 0.19, Libs: 0.19R24291 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2021
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

connect failed: Böyle bir dosya ya da dizin yok
Cannot find icon: preferences-Import-export

(freecad:90873): Gtk-CRITICAL **: 00:25:45.672: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(freecad:90873): Gtk-CRITICAL **: 00:25:45.672: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(freecad:90873): Gtk-CRITICAL **: 00:25:45.672: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Program received signal SIGSEGV, Segmentation fault.
#0  /usr/lib/libc.so.6(+0x3cda0) [0x7ff2842f4da0]
#1  /usr/lib/libgtk-3.so.0(+0x1163dc) [0x7ff27d9183dc]
#2  /usr/lib/libgtk-3.so.0(+0x12e034) [0x7ff27d930034]
#3  /usr/lib/libgtk-3.so.0(+0x11ff15) [0x7ff27d921f15]
#4  /usr/lib/libgobject-2.0.so.0(g_type_create_instance+0x203) [0x7ff27d654833]
#5  /usr/lib/libgobject-2.0.so.0(+0x212f6) [0x7ff27d63c2f6]
#6  /usr/lib/libgobject-2.0.so.0(g_object_new_with_properties+0x2cd) [0x7ff27d63d32d]
#7  /usr/lib/libgobject-2.0.so.0(g_object_new+0xc2) [0x7ff27d63dd12]
#8  /usr/lib/libgtk-3.so.0(+0x329dcf) [0x7ff27db2bdcf]
#9  /usr/lib/libgobject-2.0.so.0(g_type_create_instance+0x203) [0x7ff27d654833]
#10  /usr/lib/libgobject-2.0.so.0(+0x212f6) [0x7ff27d63c2f6]
#11  /usr/lib/libgobject-2.0.so.0(g_object_new_valist+0x16b) [0x7ff27d63d78b]
#12  /usr/lib/libgobject-2.0.so.0(g_object_new+0x9a) [0x7ff27d63dcea]
#13  0x7ff27e00ac6c in QGtk3ColorDialogHelper::QGtk3ColorDialogHelper() from /usr/lib/qt/plugins/platformthemes/libqgnomeplatformtheme.so+0x5c
#14  0x7ff27e008827 in QGnomePlatformTheme::createPlatformDialogHelper(QPlatformTheme::DialogType) const from /usr/lib/qt/plugins/platformthemes/libqgnomeplatformtheme.so+0x47
#15  0x7ff285676586 in QDialogPrivate::platformHelper() const from /usr/lib/libQt5Widgets.so.5+0x96
#16  /usr/lib/libQt5Widgets.so.5(+0x370ff4) [0x7ff285672ff4]
#17  0x7ff286e8c082 in Gui::ColorButton::onChooseColor() from /usr/lib/freecad/lib/libFreeCADGui.so+0x62
#18  /usr/lib/libQt5Core.so.5(+0x2fa95b) [0x7ff2849af95b]
#19  0x7ff285556927 in QAbstractButton::clicked(bool) from /usr/lib/libQt5Widgets.so.5+0x47
#20  /usr/lib/libQt5Widgets.so.5(+0x254bd0) [0x7ff285556bd0]
#21  /usr/lib/libQt5Widgets.so.5(+0x256868) [0x7ff285558868]
#22  0x7ff285558a99 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) from /usr/lib/libQt5Widgets.so.5+0xf9
#23  0x7ff2854a0fce in QWidget::event(QEvent*) from /usr/lib/libQt5Widgets.so.5+0x20e
#24  0x7ff28545cff6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x86
#25  0x7ff285464e59 in QApplication::notify(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0xaa9
#26  0x7ff286a44af9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x89
#27  0x7ff2849781fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x13a
#28  0x7ff2854638ff in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /usr/lib/libQt5Widgets.so.5+0x1bf
#29  /usr/lib/libQt5Widgets.so.5(+0x1b8e98) [0x7ff2854bae98]
#30  /usr/lib/libQt5Widgets.so.5(+0x1bc215) [0x7ff2854be215]
#31  0x7ff28545cff6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x86
#32  0x7ff286a44af9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x89
#33  0x7ff2849781fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x13a
#34  0x7ff284d58c50 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /usr/lib/libQt5Gui.so.5+0x6b0
#35  0x7ff284d2db15 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Gui.so.5+0xb5
#36  /usr/lib/libQt5XcbQpa.so.5(+0x63800) [0x7ff27ecc0800]
#37  /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x26c) [0x7ff2826cf4dc]
#38  /usr/lib/libglib-2.0.so.0(+0xa8799) [0x7ff282723799]
#39  /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x31) [0x7ff2826ccbc1]
#40  0x7ff2849d1b1a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Core.so.5+0x6a
#41  0x7ff284976aab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Core.so.5+0x12b
#42  0x7ff285677b0e in QDialog::exec() from /usr/lib/libQt5Widgets.so.5+0x20e
#43  0x7ff286aaea97 in StdCmdDlgPreferences::activated(int) from /usr/lib/freecad/lib/libFreeCADGui.so+0x37
#44  0x7ff286a79be1 in Gui::Command::invoke(int, Gui::Command::TriggerSource) from /usr/lib/freecad/lib/libFreeCADGui.so+0x371
#45  /usr/lib/libQt5Core.so.5(+0x2fa95b) [0x7ff2849af95b]
#46  0x7ff285456237 in QAction::triggered(bool) from /usr/lib/libQt5Widgets.so.5+0x47
#47  0x7ff285459060 in QAction::activate(QAction::ActionEvent) from /usr/lib/libQt5Widgets.so.5+0xb0
#48  /usr/lib/libQt5Widgets.so.5(+0x2e8733) [0x7ff2855ea733]
#49  /usr/lib/libQt5Widgets.so.5(+0x2f05c1) [0x7ff2855f25c1]
#50  0x7ff2854a0fce in QWidget::event(QEvent*) from /usr/lib/libQt5Widgets.so.5+0x20e
#51  0x7ff28545cff6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x86
#52  0x7ff285464e59 in QApplication::notify(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0xaa9
#53  0x7ff286a44af9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x89
#54  0x7ff2849781fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x13a
#55  0x7ff2854638ff in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) from /usr/lib/libQt5Widgets.so.5+0x1bf
#56  /usr/lib/libQt5Widgets.so.5(+0x1b99b3) [0x7ff2854bb9b3]
#57  /usr/lib/libQt5Widgets.so.5(+0x1bc215) [0x7ff2854be215]
#58  0x7ff28545cff6 in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/libQt5Widgets.so.5+0x86
#59  0x7ff286a44af9 in Gui::GUIApplication::notify(QObject*, QEvent*) from /usr/lib/freecad/lib/libFreeCADGui.so+0x89
#60  0x7ff2849781fa in QCoreApplication::notifyInternal2(QObject*, QEvent*) from /usr/lib/libQt5Core.so.5+0x13a
#61  0x7ff284d58c50 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) from /usr/lib/libQt5Gui.so.5+0x6b0
#62  0x7ff284d2db15 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Gui.so.5+0xb5
#63  /usr/lib/libQt5XcbQpa.so.5(+0x63800) [0x7ff27ecc0800]
#64  /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x26c) [0x7ff2826cf4dc]
#65  /usr/lib/libglib-2.0.so.0(+0xa8799) [0x7ff282723799]
#66  /usr/lib/libglib-2.0.so.0(g_main_context_iteration+0x31) [0x7ff2826ccbc1]
#67  0x7ff2849d1b1a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Core.so.5+0x6a
#68  0x7ff284976aab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/libQt5Core.so.5+0x12b
#69  0x7ff28497f298 in QCoreApplication::exec() from /usr/lib/libQt5Core.so.5+0x98
#70  0x7ff28699686e in Gui::Application::runApplication() from /usr/lib/freecad/lib/libFreeCADGui.so+0x1b9e
#71  freecad(+0x4858) [0x559d34fdf858]
#72  /usr/lib/libc.so.6(__libc_start_main+0xd5) [0x7ff2842dfb25]
#73  freecad(+0x4b8e) [0x559d34fdfb8e]

Code: Select all

OS: Manjaro Linux (GNOME/gnome)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: makepkg
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.9.7
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: Turkish/Turkey (tr_TR)
Last edited by HakanSeven12 on Tue Dec 07, 2021 12:26 pm, edited 2 times in total.
drmacro
Veteran
Posts: 8975
Joined: Sun Mar 02, 2014 4:35 pm

Re: Changing 3d view background color

Post by drmacro »

Maybe a 0.19 issue, works fine here for 0.20

OS: Ubuntu 20.04.3 LTS (XFCE/ubuntustudio)
Word size of FreeCAD: 64-bit
Version: 0.20.26555 (Git)
Build type: Release
Branch: master
Hash: 67f8a4c61c19e7a69a43c4e11668eea1de5886b9
Python version: 3.8.10
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Changing 3d view background color bug

Post by HakanSeven12 »

I don't have this issue on windows too. But Manjaro has this bug.
drmacro
Veteran
Posts: 8975
Joined: Sun Mar 02, 2014 4:35 pm

Re: Changing 3d view background color bug

Post by drmacro »

Again seems ok here...


OS: Manjaro Linux (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.20.26441 (Git)
Build type: Release
Branch: master
Hash: cf337394a16c42a4e65740b7dffa450e76bb5b6a
Python version: 3.9.7
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United States (en_US)
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: [Bug] Changing 3d view background color

Post by HakanSeven12 »

It looks like freecad collapses every time I try to open a color palette window. Is there any solution?
drmacro
Veteran
Posts: 8975
Joined: Sun Mar 02, 2014 4:35 pm

Re: [Bug] Changing 3d view background color

Post by drmacro »

What is different about your version of Manjaro compared to mine where it works just fine...?

:?:
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: [Bug] Changing 3d view background color

Post by HakanSeven12 »

There is only two differences. I'm using gnome version and I'm using FreeCAD 0.19.
alu
Posts: 4
Joined: Tue Dec 21, 2021 10:37 am

Re: [Bug] Changing 3d view background color

Post by alu »

Hi Hakan,

I have the exact same error. I wanted to use the FreeCAD version from the official repo on Manjaro. Every time I want to change a color in the settings dialog, FreeCAD is crashing (terminates silently).
When I use the snap version of FreeCAD the color changing works as expected.

I think like you, that there's something missing in the version from the official repo. Where is the best place to report this? Is it here or in the Manjaro forum?
chrisb
Veteran
Posts: 54150
Joined: Tue Mar 17, 2015 9:14 am

Re: [Bug] Changing 3d view background color

Post by chrisb »

alu wrote: Tue Dec 21, 2021 10:45 amIs it here or in the Manjaro forum?
In the Manjaro forum.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
TheMarkster
Veteran
Posts: 5508
Joined: Thu Apr 05, 2018 1:53 am

Re: [Bug] Changing 3d view background color

Post by TheMarkster »

Try opening a color pallet using the Colorize macro. I have a setting in there to not use the native color dialog. I don't know if this is an option in FreeCAD or not. I know there is an option for the native file dialogs.
Post Reply