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. Segmentation fault QtCreator 3.1.1

Segmentation fault QtCreator 3.1.1

Scheduled Pinned Locked Moved General and Desktop
14 Posts 2 Posters 8.2k 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.
  • D Offline
    D Offline
    deleted28
    wrote on last edited by
    #1

    QtCreator crashes with Segmentation fault and i do not know why.
    This appears on arbitrary projects, even on the most simple after creating
    new Qt Application project and during edit code.

    QtCreator 3.1.1 (Opensource)
    Based on Qt 5.2.1 (GCC 4.6.1, 32 bit)
    MaintenanceTool: gcc 5.3.0-1
    OpenSuse 13.1 Linux 32

    What should i do to describe this problem more detailed ?
    I read on web that "kf5" should be removed, but what is "kf5"

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on last edited by
      #2

      Hi, what if you try to analyse the error in debug mode with your simple app? You should see what happend if the debugger stops after displaying the error message.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        deleted28
        wrote on last edited by
        #3

        I may try , but i do not know when the crash appears.
        And its not the application crash, creator crashes.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          clochydd
          wrote on last edited by
          #4

          Usually, when a segmentation fault appears in Creator/debug mode, the program is stopped and you will see the line where the execution failed.
          Do you mean that the Creator stops immediately after start without even trying to execute your app?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            deleted28
            wrote on last edited by
            #5

            the only way to get any message is to start creator from terminal.
            After the crash, creator entirely disappears and only the segfault
            message is visible in the terminal.
            Maybe i should start creator with debugger, but i do not know how to.

            And, when creator crashes after run application, the app remains running,
            "only" the IDE disappears.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              clochydd
              wrote on last edited by
              #6

              What message do you see when starting in terminal? KF5?
              Do you know "this blog: ":http://blog.martin-graesslin.com/blog/tag/kf5/

              1 Reply Last reply
              0
              • D Offline
                D Offline
                deleted28
                wrote on last edited by
                #7

                i get only "segmantation fault" no message about "kf5"
                I checked package manager and i do not find any kf5 stuff.

                I found some issue reports here:
                "kf5 mentioned":https://bugs.archlinux.org/task/40493
                Maybe this has nothing to do with my problem.

                And this crash appears since few days. All the time before
                QtCreator worked perfect. Anyway, package manager suggests
                update and i mostly install it.

                No, i did not know this KF5 Blog and i still do not know what it is.

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  clochydd
                  wrote on last edited by
                  #8

                  But why did you mention kf5 (=KDE Framework 5) in your first post? Any message related to that?
                  Did you update the Creator? AFAIK the 3.1.1 belongs to Qt 5.3.
                  As the first step, I would now start the Creator, open a simple app from the examples, build and start in debug mode.

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    deleted28
                    wrote on last edited by
                    #9

                    I mentioned kf5 because i found a similar problem on the web
                    which was able to solve by removing kf5 packages.
                    As a possible hint only, nothing more.
                    I installed from onlineinstaller and updated all to 5.3.0-1
                    which contains QtCreator 3.1.1 (Opensource), Based on Qt 5.2.1 (GCC 4.6.1, 32 bit).
                    I do not really understand why it should make sense to start in debugmode when the entire IDE disappears and no more outputs
                    are available.

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      clochydd
                      wrote on last edited by
                      #10

                      Why start in debug:
                      If starting in a terminal window does not produce any message, setting a breakpoint in the first row of your app and starting in debug by pressing F5 could help to locate the fault.
                      It would not help, if your Creator is crashed.

                      1 Reply Last reply
                      0
                      • D Offline
                        D Offline
                        deleted28
                        wrote on last edited by
                        #11

                        bq. It would not help, if your Creator is crashed.

                        agree

                        I will try several more or less crazy things now. If i get any info what is going on, i 'll be back here. Thank you so far :)

                        I remember there is a way to start debugger and then run creator,
                        this should give results on creator crash. At least i think so.
                        I do not know how to do it, so i need some time to read, read ....

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          clochydd
                          wrote on last edited by
                          #12

                          Starting the debugger from the command line:
                          /.../qtcreator -debug
                          (/.../qtcreator --help for more options)

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            deleted28
                            wrote on last edited by
                            #13

                            @> ./qtcreator -debug
                            The option -debug requires an argument.
                            ... usage etc.
                            @

                            Is the necessary argument one of my projects ?

                            Creator crashes "randomly", i can not reproduce the crash.

                            Can i use gdb to get any output messages from creator crash ?
                            If so, how to ?

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              deleted28
                              wrote on last edited by
                              #14

                              i did
                              @gdb /opt/Qt5v3/Tools/QtCreator/bin/qtcreator
                              (gdb) run
                              @

                              gdb output (last 10 lines):

                              @[Thread 0xa1cf8b40 (LWP 5676) exited]
                              [Thread 0xa3bffb40 (LWP 5675) exited]
                              [New Thread 0xa3bffb40 (LWP 5677)]
                              [New Thread 0xa1cf8b40 (LWP 5678)]
                              Detaching after fork from child process 5679.
                              [Thread 0xa3bffb40 (LWP 5677) exited]
                              [Thread 0xa1cf8b40 (LWP 5678) exited]

                              Program received signal SIGSEGV, Segmentation fault.
                              0xb710fc17 in QCoreApplication::notifyInternal(QObject*, QEvent*) ()
                              from /opt/Qt5v3/Tools/QtCreator/bin/../lib/qtcreator/libQt5Core.so.5
                              (gdb)
                              @

                              might this info help ?

                              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