Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator freezes after codefolding

QtCreator freezes after codefolding

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 4 Posters 167 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.
  • Andy314A Offline
    Andy314A Offline
    Andy314
    wrote last edited by Andy314
    #1

    Hello,

    I have installed the last Creator Version (18.0.1) and cannot collaps code in some header files. The Creator shows no reaction after this action.
    I have enabled and disabled Clang, but this changed nothing.

    I tried to find the problematic code part with out-commending (/* */), but I found not roules for it. Sometime its works, but if I scroll to the top of the file it freezes.

    Sometimes I get code shown in out-commending format at a casual position in the mid of a class declaration. This behabiour I had in older version before, but it crashed never.
    The full header file crashed every time.

    What can I do ? Any ideas what can be the problematic code ?
    Please fix the bug.

    Best regards
    Andreas

    JonBJ 1 Reply Last reply
    0
    • aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote last edited by
      #2

      @Andy314 This us a user forum. Bug should be reported to bugreports.qt.io/QTCREATORBUG, in best case with a reproducer file.

      Thanks and regards.

      Qt has to stay free or it will die.

      1 Reply Last reply
      0
      • Andy314A Andy314

        Hello,

        I have installed the last Creator Version (18.0.1) and cannot collaps code in some header files. The Creator shows no reaction after this action.
        I have enabled and disabled Clang, but this changed nothing.

        I tried to find the problematic code part with out-commending (/* */), but I found not roules for it. Sometime its works, but if I scroll to the top of the file it freezes.

        Sometimes I get code shown in out-commending format at a casual position in the mid of a class declaration. This behabiour I had in older version before, but it crashed never.
        The full header file crashed every time.

        What can I do ? Any ideas what can be the problematic code ?
        Please fix the bug.

        Best regards
        Andreas

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote last edited by
        #3

        @Andy314
        For the record. I use code folding extensively. It has been variously bugged in Creator ever since I have been using it for 10 years, across different versions. It's still bugged now, but I am only on Creator 13.0.0 as that is what came with my OS, so no point reporting. In any case, as you have found, it's difficult to report/repro for a bug: it depends on what is in your file, what state it is currently in wrt folding, where your cursor is, what you do and (seemingly) what time of day it is. The bugs are many and various. I don't know whether they are indeed to do with folding or other things. Very disappointing. Since it has always been thus I can only surmise that most other people do not use folding as much as I do, or don't care when it goes wrong, else I would have expected more complaints.

        1 Reply Last reply
        0
        • Andy314A Offline
          Andy314A Offline
          Andy314
          wrote last edited by
          #4

          Reporting this bug is pointless, since the bug is already known and I would have to include my entire project to reproduce it.
          My intention of the post, was to get some hints, what code part / structure are critical. Now ich have splittet the problem file in 2. One file is ok and the other crashes. I’m looking for a way to work around the bug.

          JonBJ 1 Reply Last reply
          0
          • aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote last edited by
            #5

            @Andy314 How do you know that the bug is already known? Do you have a link to a bugreport?

            I would have to include my entire project to reproduce it.

            So it seems the bug is not trivially reproducable. How should anyone fix it without a reproducer?

            One file is ok and the other crashes.

            So I'd suggest to trim down the crashing file until you have something for the Qt Creator developers to reproduce and fix the bug?

            Qt has to stay free or it will die.

            Andy314A 1 Reply Last reply
            0
            • aha_1980A aha_1980

              @Andy314 How do you know that the bug is already known? Do you have a link to a bugreport?

              I would have to include my entire project to reproduce it.

              So it seems the bug is not trivially reproducable. How should anyone fix it without a reproducer?

              One file is ok and the other crashes.

              So I'd suggest to trim down the crashing file until you have something for the Qt Creator developers to reproduce and fix the bug?

              Andy314A Offline
              Andy314A Offline
              Andy314
              wrote last edited by
              #6

              @aha_1980 said in QtCreator freezes after codefolding:

              @Andy314 How do you know that the bug is already known? Do you have a link to a bugreport?

              I would have to include my entire project to reproduce it.

              So it seems the bug is not trivially reproducable. How should anyone fix it without a reproducer?

              One file is ok and the other crashes.

              So I'd suggest to trim down the crashing file until you have something for the Qt Creator developers to reproduce and fix the bug?

              Sorry, that was not meant as an accusation against the developers. I’ve been experiencing the code folding bug for many years, and as JohnB already mentioned, it must have been known for a long time. I’m looking for hints on what I can investigate and how I can narrow down the problem so that I can provide concrete information to the developers.

              1 Reply Last reply
              0
              • F Offline
                F Offline
                fiwfan
                Banned
                wrote last edited by
                #7
                This post is deleted!
                1 Reply Last reply
                0
                • Andy314A Andy314

                  Reporting this bug is pointless, since the bug is already known and I would have to include my entire project to reproduce it.
                  My intention of the post, was to get some hints, what code part / structure are critical. Now ich have splittet the problem file in 2. One file is ok and the other crashes. I’m looking for a way to work around the bug.

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote last edited by JonB
                  #8

                  @Andy314 said in QtCreator freezes after codefolding:

                  Reporting this bug is pointless, since the bug is already known

                  Do you mean you found a bug for this already reported on the bug reports site (which used to have a simple URL and is now something unmemorable in Atlassian!)? If so could we have the link please?

                  I suspect your best will just be to continue binary chopping the remaining bad file. I don't really know whether that will eventually repro in a small case --- it would not surprise me if behaviour depends on entire content in whatever circumstance and does not show up in isolated fragments. Although it is not your current case, I am also pretty sure that (sometimes) bad behaviour depends on what you do when in what order --- I think a given file can fold OK one time and then another time (after you have done stuff?) it does not, though content remains same. Having said that, if you have a "crash" maybe that can be reproed from some one particular line you have or similar, so binary chop may be worth pursuing.

                  Honestly I wonder whether you & I using folding is "unusual" among Qt devs. Because I experience problems regularly I can only imagine that it has not been reported by others.

                  Maybe I should sit down sometime and try to repro the various issues I see in Creator editing. One problem I have is that I only use the Qt/Creator released with my last Ubuntu. Although the problems I see seem to have been there since about Creator 4, that means that my Creator is not the latest for reporting and so I cannot report without likely being told to try a newer version to see....

                  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