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. Qt Creator crashes when I edit main.cpp
Forum Updated to NodeBB v4.3 + New Features

Qt Creator crashes when I edit main.cpp

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt creator
28 Posts 12 Posters 10.0k Views 9 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.
  • S seubri
    16 Aug 2016, 08:07

    Hi all,

    I just installed the Qt framework on my new laptop running Ubuntu 16.04 by using the online Qt Project online install tool. I loaded my project on Qt Creator (version: 4.0.3 based on Qt 5.7.0), everything seems to be working smoothly, except that Qt Creator crashes as soon as I start editing my main.cpp file. Strangely, that seems to only happen for the main.cpp file.

    When I run Qt Creator from the terminal, here is what I can read:
    (when I open my project: )
    SOFT ASSERT: "!binary.isEmpty()" in file /work/build/qt-creator/src/libs/utils/shellcommand.cpp, line 474
    (and as soon as I start editing the main.cpp file: )
    Segmentation fault (core dumped)*

    Anyone can help me fix this?

    T Offline
    T Offline
    Tschikkn
    wrote on 4 Oct 2016, 14:42 last edited by
    #21

    @seubri Can you please show the output of

    lspci -nnk | grep "VGA\|'Kern'\|3D\|Display" -A3
    

    which will show the card and current used kernel-module. If you have an Intel card (no Skylake, but it may also work) you may use UXA instead of SNA.

    Open up a terminal, edit the 20-intel.conf with root-access.

    sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf
    

    Copy and paste following code and insert it:

    Section "Device"
    	Identifier	"Intel Graphics"
    	Driver		"i915"
    	Option		"AccelMethod"  "uxa"
    EndSection
    

    and reboot.
    There are sometimes (often?) problems with the newer SNA-acceleration. UXA is the old one which seems to be more stable.

    @LinuxMint-Users: You are all alone :) Mint is NOT Ubuntu, it is just sharing the base. In some basics, they are equal but I am quite sure that this doesn't match graphics. I do not know what they have changed or edited, so you have to do a research yourself or just try it out.

    S 1 Reply Last reply 1 Nov 2016, 03:54
    1
    • T Tschikkn
      4 Oct 2016, 14:42

      @seubri Can you please show the output of

      lspci -nnk | grep "VGA\|'Kern'\|3D\|Display" -A3
      

      which will show the card and current used kernel-module. If you have an Intel card (no Skylake, but it may also work) you may use UXA instead of SNA.

      Open up a terminal, edit the 20-intel.conf with root-access.

      sudo nano /usr/share/X11/xorg.conf.d/20-intel.conf
      

      Copy and paste following code and insert it:

      Section "Device"
      	Identifier	"Intel Graphics"
      	Driver		"i915"
      	Option		"AccelMethod"  "uxa"
      EndSection
      

      and reboot.
      There are sometimes (often?) problems with the newer SNA-acceleration. UXA is the old one which seems to be more stable.

      @LinuxMint-Users: You are all alone :) Mint is NOT Ubuntu, it is just sharing the base. In some basics, they are equal but I am quite sure that this doesn't match graphics. I do not know what they have changed or edited, so you have to do a research yourself or just try it out.

      S Offline
      S Offline
      seubri
      wrote on 1 Nov 2016, 03:54 last edited by
      #22

      @Tschikkn Hi, I'm sorry for not answering you sooner. I appreciate you trying to help.

      My problem still remains, and your suggestion did not help, unfortunately. It seemed to make the graphics worse (more unstable).

      Here is the output of lspci -nnk | grep "VGA|'Kern'|3D|Display" -A3:

      00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:191b] (rev 06)
      	DeviceName:  Onboard IGD
      	Subsystem: Dell HD Graphics 530 [1028:06e4]
      	Kernel driver in use: i915
      --
      01:00.0 3D controller [0302]: NVIDIA Corporation GM107M [GeForce GTX 960M] [10de:139b] (rev ff)
      	Kernel modules: nvidiafb, nouveau, nvidia_367, nvidia_367_drm
      02:00.0 Network controller [0280]: Broadcom Limited BCM43602 802.11ac Wireless LAN SoC [14e4:43ba] (rev 01)
      	Subsystem: Dell BCM43602 802.11ac Wireless LAN SoC [1028:0024]
      
      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 1 Nov 2016, 19:42 last edited by
        #23

        Can you test starting Qt Creator with -noload Welcome as a parameter ?

        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
        • A Offline
          A Offline
          aevl
          wrote on 29 Aug 2017, 08:46 last edited by
          #24

          I have the same problem on a Linux Mint 17.2 machine (segmentation fault). I have tried all suggestions and found that the problem s gone when I:

          • run qtcreator as root
            OR
          • remove the cppeditor plugin

          Is there already any solution to this problem?

          J 1 Reply Last reply 29 Aug 2017, 10:43
          0
          • A aevl
            29 Aug 2017, 08:46

            I have the same problem on a Linux Mint 17.2 machine (segmentation fault). I have tried all suggestions and found that the problem s gone when I:

            • run qtcreator as root
              OR
            • remove the cppeditor plugin

            Is there already any solution to this problem?

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 29 Aug 2017, 10:43 last edited by
            #25

            @aevl So, "-noload Welcome" does not help?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 29 Aug 2017, 16:02 last edited by
              #26

              Hi
              We are sitting 6 people on Mint 18.1 and have seen none such issues
              alt text

              This is however in a virtual machine so not using a real nvidia driver
              but VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
              ( it can run QML apps/openGL is supported)

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MikeAmadeo
                wrote on 15 Sept 2017, 19:27 last edited by
                #27

                Hi All,

                Qt 4.2.1 crashes at random times on my Lenovo laptop - once when opening a project, often while simply editing a file.

                Has anyone found a definitive solution for this?

                Thanks,

                ~ Mike

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 15 Sept 2017, 20:31 last edited by
                  #28

                  Hi,

                  The most straightforward would be to test a more recent version of Qt Creator, the current is 4.4.

                  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