PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 914 - Segmentation fault when using QApplication.Tty without X
: Segmentation fault when using QApplication.Tty without X
Status: CLOSED INVALID
Product: PySide
Classification: Unclassified
Component: QtGui
: 1.0.4
: PC Linux
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-07-04 20:26 EEST by Bruno Bigras
Modified: 2011-08-23 00:37 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Bigras 2011-07-04 20:26:38 EEST
Since bug 882 is fixed we can pass a PySide.QtGui.QApplication.Type to 
QApplication's constructor to use a QApplication without X but I got a segfault
trying to do :

import sys
from PySide.QtGui import QApplication
from PySide.QtGui import QGraphicsScene

app = QApplication(sys.argv, QApplication.Tty)
scene = QGraphicsScene()
scene.addText("test")

-
Thanks!
Comment 1 Hugo Parente Lima 2011-07-04 22:09:17 EEST
You get the same segfault with the C++ version of this program:

#include <QApplication>
#include <QGraphicsScene>

int main(int argc, char** argv)
{
    QApplication app(argc, argv, QApplication::Tty);

    QGraphicsScene scene;
    scene.addText("test");
}

Before crashing Qt throw the following qFatal message:

ASSERT: "!"No style available in non-gui applications!"" in file
/home/hugo/src/qt/src/gui/kernel/qapplication.cpp, line 1425

So if it's really a bug, it's a Qt bug not a PySide bug, anyway thanks for
reporting it!

Regards.
Comment 2 renato filho 2011-08-23 00:37:24 EEST
Release PySide 1.0.6