0.18, Windows 10, 'Save picture' gives black rectangle image

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Tamirov.ru
Posts: 89
Joined: Thu Feb 07, 2019 3:21 pm
Contact:

0.18, Windows 10, 'Save picture' gives black rectangle image

Post by Tamirov.ru »

Hello community!
I try "Save picture.." as PNG or JPG (even simple cylinder) but it produces only black rectangle image.
FC 0.18 portable:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16110 (Git)
Build type: Release
Branch: (HEAD detached at upstream/releases/FreeCAD-0-18)
Hash: f7dccfaa909e5b9da26bf50c4a22ccca9bb10c40
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Russian/Russia (ru_RU)

I tried
  • 1. There create a boolean key DisablePBuffers and set it to true. Try again.
  • 2. If it doesn't work set the value to false. Try again.
  • 3. If it doesn't work create the boolean key CoinOffscreenRenderer and set it to true. Try again.
it doesn't help.

I know, I can make screenshot, but i need PNG transparency

"Save picture.." as PNG or JPG on FC 0.17 on the same notebook works fine!:
FC 0.17 portable:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: Russian/RussianFederation (ru_RU)
Частный вебмастер, разработка сайтов, продвижение сайтов.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: 0.18, Windows 10, 'Save picture' gives black rectangle image

Post by triplus »

Qt 5 builds use QOpenGLWidget and Qt 4 builds use (now obsolete) QGLWidget for FreeCAD viewport purposes. There could still be some bugs in FreeCAD (Qt 5 porting related) but all in all it looks like QOpenGLWidget is more sensitive, when it comes to GPU drivers. We are getting similar reports for Linux/Windows/VirtualBox ... And more or less such issues are GPU driver related. Hopefully we will be able to find solutions for some issues in the future. Newer versions of Qt and GPU drivers might introduce potential solutions.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: 0.18, Windows 10, 'Save picture' gives black rectangle image

Post by sgrogan »

triplus wrote: Fri May 03, 2019 10:00 pm Newer versions of Qt and GPU drivers might introduce potential solutions.
The problem persists with:
OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16687 (Git)
Build type: Release
Branch: master
Hash: ff1fb11af15a7c5f7f0ba3ef79588e128f397c2c
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
"fight the good fight"
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: 0.18, Windows 10, 'Save picture' gives black rectangle image

Post by triplus »

Too bad.
Gustav180
Posts: 74
Joined: Mon Jun 29, 2015 6:45 pm
Location: Sweden

Re: 0.18, Windows 10, 'Save picture' gives black rectangle image

Post by Gustav180 »

I have earlier versions of 0.18 and they work OK but not the latest. When can this bug bee fixed?
Post Reply