Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Crash at QString13fromLocal8Bit
Qt 6.11 is out! See what's new in the release blog

Crash at QString13fromLocal8Bit

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yhodage
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you show the code that crashes ? And the content of the parameter to give to it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Y Offline
        Y Offline
        yhodage
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          What does this string contain ? I mean literally.

          What locale are you using ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Y Offline
            Y Offline
            yhodage
            wrote on last edited by
            #5

            solved , i have created the memory on heap for argument list.

            Thanks for yours support

            Thanks

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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 :)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved