[Qt-interest] crash with QPixmap::fromImage(image);

Matthias Pospiech matthias.pospiech at gmx.de
Fri Jul 16 17:42:26 CEST 2010


In this code I experience a crash in the line with QPixmap::fromImage

void QCameraImage::setImage(const QImage & image)
{
    d->time.start();
    d->imageChanged = true;
    d->image = image;
    d->pixmap = QPixmap::fromImage(d->image);
    update(); // calls paintEvent
}

and need help since I can not see at all how to debug this.

The Stack Trace is:
----------------->
0    QtGuid4!QWizard::setOptions    QtGuid4    0    0x6517154b   
1    QtGuid4!QWizard::setOptions    QtGuid4    0    0x6516c57c   
2    QtGuid4!QWizard::setOptions    QtGuid4    0    0x6515dae6   
3    QtGuid4!QWizard::setOptions    QtGuid4    0    0x6515de34   
4    QtGuid4!QWizard::setOptions    QtGuid4    0    0x651a1976   
5    QtGuid4!QWizard::setOptions    QtGuid4    0    0x651900a7   
6    QCameraSMXd!QCameraImage::setImage    qcameraimage.cpp    84    
0x10001d6f   
7    QSMXCameraExampled!DialogCameraSMX::OnButtonCapture    
dialogcamerasmx.cpp    69    0x402d46   
8    QSMXCameraExampled!DialogCameraSMX::qt_metacall    
moc_dialogcamerasmx.cpp    89    0x4054d1   
<-----------------

The debugger output is :
----------------->
dState changed from InferiorRunningRequested(8) to InferiorRunning(10).
 (88.9c): Access violation
  - code c0000005 (first chance)
 
  Exception at 0x6517154b, code: 0xc0000005: read access violation at: 
0x1f01000, flags=0x0
  
 Ausgabe-Hilfsbibliothek deaktiviert wegen Absturz der zu debuggenden 
Anwendung...
 First chance exceptions are reported before any exception handling.
 
 This exception may be expected and handled.
 
dState changed from InferiorRunning(10) to InferiorStopping(11).
dState changed from InferiorStopping(11) to InferiorStopped(13).
 Angehalten, Thread: 0
wThread 0: Es ist keine Debug-Information für obersten Stack-Rahmen 
(QtGuid4!QWizard::setOptions) vorhanden.
<-----------------
and
----------------->
wThread 0: Es ist keine Debug-Information für obersten Stack-Rahmen 
(QtGuid4!QWizard::setOptions) vorhanden.
e*************************************************************************
e***                                                                   ***
e***                                                                   ***
e***    Your debugger is not using the correct symbols                 ***
e***                                                                   ***
e***    In order for this command to work properly, your symbol path   ***
e***    must point to .pdb files that have full type information.      ***
e***                                                                   ***
e***    Certain .pdb files (such as the public OS symbols) do not      ***
e***    contain the required information.  Contact the group that      ***
e***    provided you with these symbols if you need this command to    ***
e***    work.                                                          ***
e***                                                                   ***
e***    Type referenced:
eQtGuid4!QImage               
e                ***
e***                                                                   ***
e*************************************************************************
<-----------------

Matthias



More information about the Qt-interest-old mailing list