I have a similar problem. VLC does not start on a PC connected to a TV (old, big) through VGA.
The proposed solution works for me (a big thanks to
fred44nl!):
Code: Select all
env QT_AUTO_SCREEN_SCALE_FACTOR=0 vlc
I found a solution that works system-wide:
Code: Select all
# Write this code at the end of /etc/profile
export QT_AUTO_SCREEN_SCALE_FACTOR=0
I am appending some more details about the issue in case someone else will search for it in the future.
Linux _ 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux
VLC media player 3.0.3 Vetinari (revision 3.0.3-1-0-gc2bb759264)
If I start vlc from the terminal, I get a lot of messages:
Code: Select all
...: Painter not active
...: Painter must be active to set rendering hints
And then:
Code: Select all
QWidget::setMinimumSize: (/QStatusBar) The largest allowed size is (16777215,16777215)
QWidget::setMaximumSize: (/QStatusBar) The largest allowed size is (16777215,16777215)
QWidget::setMinimumSize: (/MainInterface) The largest allowed size is (16777215,16777215)
QWidget::setMinimumSize: (/MainInterface) The largest allowed size is (16777215,16777215)
QWidget::setMinimumSize: (/MainInterface) The largest allowed size is (16777215,16777215)
Which is followed by a bunch of errors:
Code: Select all
QXcbConnection: XCB error: 2 (BadValue), sequence: 425, resource id: 0, major code: 1 (CreateWindow), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 426, resource id: 16777221, major code: 2 (ChangeWindowAttributes), minor code: 0
Then it goes back to the "Painter not active" messages.