PDA

View Full Version : qgraphicsview segmentation fault on Maemo since Qt4.7



shane.kiwi
9th November 2010, 18:15
Hi,

sorry if this is already posted but cannot find an answer.

I am in the middle of creating my first C++/Qt mobile game using Qt Creator specifically at the moment for use on Maemo / N900.

I have been developing and testing fine over past few months using Qt4.6. But then I updated Maemo to Pr1.3 and also Qt Creator using help/start updater to the latest versions of everything.

But now although I can still run my app in the simulator fine it does not seem to work anymore on the device.

I am getting a segmentation fault - and also this happens with a new project if I just add a graphicsview using the design mode and just go to run the app. straight away it will fail.

Also others have this problem as here:
http://talk.maemo.org/showthread.php?t=64518

I have simple sample which will fail on the device:
http://goostergames.com/bb2.zip

I get these errors when debugging:

Dump of assembler code for function _ZNK14QGraphicsScene9focusItemEv:
0x41aa837c <+0>: push {r4, r5, r11, lr}
0x41aa8380 <+4>: add r11, sp, #12
0x41aa8384 <+8>: ldr r4, [r0, #4]
0x41aa8388 <+12>: bl 0x41aa8054 <_ZNK14QGraphicsScene8isActiveEv>
0x41aa838c <+16>: cmp r0, #0
0x41aa8390 <+20>: ldrne r0, [r4, #184] ; 0xb8
0x41aa8394 <+24>: ldreq r0, [r4, #188] ; 0xbc
0x41aa8398 <+28>: pop {r4, r5, r11, pc}
End of assembler dump.


0 QGraphicsScene::focusItem() const c:/nokiaqtsdk/maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtGui.so.4 0 0x41aa8384
1 ?? c:/nokiaqtsdk/maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtGui.so.4 0 0x41a62108
2 ?? c:/nokiaqtsdk/maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtGui.so.4 0 0x41a62108

Any help or clues much appreciated.