Bonjour,

Ca fait maintenant 1 mois que je n'arrive pas a résoudre ce segfault:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
==4071331== Invalid read of size 8
==4071331==    at 0x4D5D073: QGraphicsItem::dragMoveEvent(QGraphicsSceneDragDropEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.15.2)
==4071331==    by 0x4D6F3D5: QGraphicsItem::setFlags(QFlags<QGraphicsItem::GraphicsItemFlag>) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.15.2)
==4071331==    by 0x50F9C9: MapItem::MapItem(QGraphicsItem*) (map2png.cpp:158)
==4071331==    by 0x5142EF: Map2Png::viewMap(bool const&, QString const&, QString const&) (map2png.cpp:578)
==4071331==    by 0x4ABB8C: main (main.cpp:132)
==4071331==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==4071331== 
==4071331== 
==4071331== Process terminating with default action of signal 11 (SIGSEGV)
==4071331==  Access not within mapped region at address 0x0
==4071331==    at 0x4D5D073: QGraphicsItem::dragMoveEvent(QGraphicsSceneDragDropEvent*) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.15.2)
==4071331==    by 0x4D6F3D5: QGraphicsItem::setFlags(QFlags<QGraphicsItem::GraphicsItemFlag>) (in /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5.15.2)
==4071331==    by 0x50F9C9: MapItem::MapItem(QGraphicsItem*) (map2png.cpp:158)
==4071331==    by 0x5142EF: Map2Png::viewMap(bool const&, QString const&, QString const&) (map2png.cpp:578)
==4071331==    by 0x4ABB8C: main (main.cpp:132)
==4071331==  If you believe this happened as a result of a stack
==4071331==  overflow in your program's main thread (unlikely but
==4071331==  possible), you can try to increase the size of the
==4071331==  main thread stack using the --main-stacksize= flag.
==4071331==  The main thread stack size used in this run was 8388608.
https://github.com/alphaonex86/Catch.../tools/map2png

Hors un bug dans Qt car le parent est null, je ne vois pas le probléme.
Si vous pouviez m'aider, merci