Crash at QString13fromLocal8Bit
-
Hi ,
i am porting my application from 3.0 to qt 4.8. on window porting to qt 4.8 works fine but on linux it shows segmentation fault at the start of the application
libQtCore.so.4(_ZN7QString13fromLocal8BitEPKci+0x29) [0x2b56a0fdaa49]
prod/release/linux64/libQtCore.so.4(_ZN16QCoreApplication9argumentsEv+0x6c) [0x2b56a109cf2c]
prod/release/linux64/libQtGui.so.4 [0x2b56a1684fad]
release/linux64/libQtGui.so.4 [0x2b56a1685b72]
16006D48 /usr/lib64/libSM.so.6(_SmcProcessMessage+0xd78) [0x3916006d48]
16811FFB /usr/lib64/libICE.so.6(IceProcessMessages+0x38b) [0x3916811ffb]
prod/release/linux64/libQtCore.so.4(_ZN11QMetaObject8activateEP7QObjectPKS_iPPv+0x488) [0x2b56a10b2f08]
release/linux64/libQtCore.so.4(_ZN15QSocketNotifier9activatedEi+0x2e) [0x2b56a110a04e]
prod/release/linux64/libQtCore.so.4(_ZN15QSocketNotifier5eventEP6QEvent+0x24f) [0x2b56a10bb9af]
prod/release/linux64/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0xaf) [0x2b56a16069ff]
prod/release/linux64/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0x1d0) [0x2b56a160d990]Please help me to solve this issue as i am stuck with it.
Thanks
-
Hi,
Can you show the code that crashes ? And the content of the parameter to give to it ?
-
Hi,
i have checked the initial argument to QApplication constructor and it shows no of argument 1 and argument is exe name that is going to launch.
Thanks
-
What does this string contain ? I mean literally.
What locale are you using ?
-
solved , i have created the memory on heap for argument list.
Thanks for yours support
Thanks
-
You're welcome !
Glad you found out
Since you have it working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)