Public bug reported:

I was deleting and trimming rooms from a map, when a click on the map
crashed Mudlet. The code in question is:

text = QString("Room Name: %1").arg(_prid->name);

>From the T2DMap::paintEvent() function, with the following bt:

0       ??      /home/vadi/Programs/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Core.so.5    
        0x7ffff53fae37  
1       QString::arg(QString const&, int, QChar) const  
/home/vadi/Programs/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Core.so.5            
0x7ffff540374e  
2       T2DMap::paintEvent      T2DMap.cpp      1657    0x65c49f        
3       QWidget::event(QEvent*) 
/home/vadi/Programs/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Widgets.so.5         
0x7ffff649e810  

_prid is a fine TRoom object: http://i.imgur.com/YwC6ddi.png, but name
is not accessible - so perhaps giving the name from _prid in _prid->name
which is <not accessible> according to GDB to QString::arg is what
caused the problem: http://i.imgur.com/v4F0s6q.png

** Affects: mudlet
     Importance: Undecided
         Status: New


** Tags: crash

-- 
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1254355

Title:
  2D map painter crashes when room name is inaccessible

Status in Mudlet the MUD client:
  New

Bug description:
  I was deleting and trimming rooms from a map, when a click on the map
  crashed Mudlet. The code in question is:

  text = QString("Room Name: %1").arg(_prid->name);

  From the T2DMap::paintEvent() function, with the following bt:

  0     ??      /home/vadi/Programs/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Core.so.5    
        0x7ffff53fae37  
  1     QString::arg(QString const&, int, QChar) const  
/home/vadi/Programs/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Core.so.5            
0x7ffff540374e  
  2     T2DMap::paintEvent      T2DMap.cpp      1657    0x65c49f        
  3     QWidget::event(QEvent*) 
/home/vadi/Programs/Qt5.1.1/5.1.1/gcc_64/lib/libQt5Widgets.so.5         
0x7ffff649e810  

  _prid is a fine TRoom object: http://i.imgur.com/YwC6ddi.png, but name
  is not accessible - so perhaps giving the name from _prid in
  _prid->name which is <not accessible> according to GDB to QString::arg
  is what caused the problem: http://i.imgur.com/v4F0s6q.png

To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1254355/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mudlet-makers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mudlet-makers
More help   : https://help.launchpad.net/ListHelp

Reply via email to