Ignore:
Timestamp:
Nov 12, 2023, 6:08:27 PM (2 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
6dde30
Parents:
9a992a
Message:

FIX: solves xcb issues under ubuntu 22.04.

  • under Ubuntu 22.04 (with molecuilder compiled under ubuntu 22.04), I've encountered the following issues:
    • missing swrast and fbColor: required mesa-utils package
    • [xcb] ... missing XInitThreads() call: added Qt::AA_X11InitThreads to QApplication settings such that XInitThreads() is called before app is started.
    • X Error: GLXBadContext 170: requires xserver-xorg-video-all package.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/QtUIFactory.cpp

    r9a992a r44ce58  
    6565    testlauncher_thread(NULL)
    6666{
    67 
     67  /** Initialises XInitThreads before starting the QApplication.
     68   * see https://forum.qt.io/topic/85774/qt-application-crash/6
     69   * This causes the following issues when starting molecuildergui:
     70   * ```
     71   * [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
     72   * [xcb] Aborting, sorry about that.
     73   * ```
     74   */
     75  QApplication::setAttribute(Qt::AA_X11InitThreads);
    6876  // check whether we are in test mode
    6977  if ((_argc > 1) && (isTestMode(_argv[1]))) {
Note: See TracChangeset for help on using the changeset viewer.