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. Migration to Qt 6.6.1
Forum Updated to NodeBB v4.3 + New Features

Migration to Qt 6.6.1

Scheduled Pinned Locked Moved Unsolved General and Desktop
18 Posts 5 Posters 1.3k Views 4 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1

    I was running with Qt 5.15.2, today I update the kit to 6.6.1, after a few minor changes and the inclusion of some headers that weren't previously present, but no warning was produced.

    Now when I launch the finished build I get:

    18:47:03: Debugging /Users/sy/XMLMPAM/build-XMLMPAM-Qt_6_6_1_for_macOS-Debug/XMLMPAM.app/Contents/MacOS/XMLMPAM ~/XMLMPAM/config/xmlmpam ...
    XMLMPAM(89663,0x100478600) malloc: Heap corruption detected, free list is damaged at 0x600002621ec0
    *** Incorrect guard value: 7506779816295953007
    XMLMPAM(89663,0x100478600) malloc: *** set a breakpoint in malloc_error_break to debug
    

    I didn't see this when building the same source with 5.15.2, can anyone suggest how I might track down why this is now happening?

    Kind Regards,
    Sy

    V JoeCFDJ 2 Replies Last reply
    0
    • SPlattenS SPlatten

      I was running with Qt 5.15.2, today I update the kit to 6.6.1, after a few minor changes and the inclusion of some headers that weren't previously present, but no warning was produced.

      Now when I launch the finished build I get:

      18:47:03: Debugging /Users/sy/XMLMPAM/build-XMLMPAM-Qt_6_6_1_for_macOS-Debug/XMLMPAM.app/Contents/MacOS/XMLMPAM ~/XMLMPAM/config/xmlmpam ...
      XMLMPAM(89663,0x100478600) malloc: Heap corruption detected, free list is damaged at 0x600002621ec0
      *** Incorrect guard value: 7506779816295953007
      XMLMPAM(89663,0x100478600) malloc: *** set a breakpoint in malloc_error_break to debug
      

      I didn't see this when building the same source with 5.15.2, can anyone suggest how I might track down why this is now happening?

      V Offline
      V Offline
      Volker75
      wrote on last edited by
      #2

      @SPlatten compile with option -g and run your executable with a tool like Valgrind or gdb.

      SPlattenS 1 Reply Last reply
      0
      • SPlattenS SPlatten

        I was running with Qt 5.15.2, today I update the kit to 6.6.1, after a few minor changes and the inclusion of some headers that weren't previously present, but no warning was produced.

        Now when I launch the finished build I get:

        18:47:03: Debugging /Users/sy/XMLMPAM/build-XMLMPAM-Qt_6_6_1_for_macOS-Debug/XMLMPAM.app/Contents/MacOS/XMLMPAM ~/XMLMPAM/config/xmlmpam ...
        XMLMPAM(89663,0x100478600) malloc: Heap corruption detected, free list is damaged at 0x600002621ec0
        *** Incorrect guard value: 7506779816295953007
        XMLMPAM(89663,0x100478600) malloc: *** set a breakpoint in malloc_error_break to debug
        

        I didn't see this when building the same source with 5.15.2, can anyone suggest how I might track down why this is now happening?

        JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        @SPlatten Also check the openGL version of your computer. The following link shows the requirements for Qt6.6
        https://doc.qt.io/qt-6/topics-graphics.html

        SPlattenS 1 Reply Last reply
        0
        • JoeCFDJ JoeCFD

          @SPlatten Also check the openGL version of your computer. The following link shows the requirements for Qt6.6
          https://doc.qt.io/qt-6/topics-graphics.html

          SPlattenS Offline
          SPlattenS Offline
          SPlatten
          wrote on last edited by SPlatten
          #4

          @JoeCFD said in Migration to Qt 6.6.1:

          https://doc.qt.io/qt-6/topics-graphics.html

          Screenshot 2024-01-22 at 19.11.02.png

          I don't see any OpenGL listed. Found this:

          https://methi1999.github.io/2020/08/19/opengl.html

          Kind Regards,
          Sy

          JoeCFDJ 2 Replies Last reply
          0
          • V Volker75

            @SPlatten compile with option -g and run your executable with a tool like Valgrind or gdb.

            SPlattenS Offline
            SPlattenS Offline
            SPlatten
            wrote on last edited by
            #5

            @Volker75 , where do I put the -g ?

            Kind Regards,
            Sy

            V JoeCFDJ 2 Replies Last reply
            0
            • SPlattenS SPlatten

              @Volker75 , where do I put the -g ?

              V Offline
              V Offline
              Volker75
              wrote on last edited by
              #6

              @SPlatten
              I am not working with the Qt IDE. I guess you can add it also in the IDE.
              I am one of the old guys that is working with a .pro file in the terminal. As soon as i done qmake I modify the Makefile.
              There are 2 lines like this:
              CFLAGS = -pipe -O2 -Wall -Wextra -fPIC -D_REENTRANT $(DEFINES)
              CXXFLAGS = -pipe -O2 -std=gnu++1z -Wall -Wextra -fPIC -D_REENTRANT $(DEFINES)

              There i add the -g option.

              I guess there are easier ways possible to add -g, but i never learned professional coding. I am doing it in my spare time only.

              1 Reply Last reply
              0
              • SPlattenS SPlatten

                @JoeCFD said in Migration to Qt 6.6.1:

                https://doc.qt.io/qt-6/topics-graphics.html

                Screenshot 2024-01-22 at 19.11.02.png

                I don't see any OpenGL listed. Found this:

                https://methi1999.github.io/2020/08/19/opengl.html

                JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by
                #7

                @SPlatten
                Click on the Apple menu in the top left corner of the screen and select "About This Mac." In the window that appears, click on the "System Report" button. In the left-hand menu, click on "Graphics/Displays." In the main window, look for the "OpenGL" entry.A

                SPlattenS 1 Reply Last reply
                0
                • JoeCFDJ JoeCFD

                  @SPlatten
                  Click on the Apple menu in the top left corner of the screen and select "About This Mac." In the window that appears, click on the "System Report" button. In the left-hand menu, click on "Graphics/Displays." In the main window, look for the "OpenGL" entry.A

                  SPlattenS Offline
                  SPlattenS Offline
                  SPlatten
                  wrote on last edited by
                  #8

                  @JoeCFD , thats exactly what I did and the image you see in my post above is the cut out from the Graphics/Displays panel.

                  Kind Regards,
                  Sy

                  1 Reply Last reply
                  0
                  • SPlattenS SPlatten

                    @Volker75 , where do I put the -g ?

                    JoeCFDJ Offline
                    JoeCFDJ Offline
                    JoeCFD
                    wrote on last edited by
                    #9

                    @SPlatten your debug build includes -g. Simply run
                    valgrind your executable

                    SPlattenS 1 Reply Last reply
                    0
                    • JoeCFDJ JoeCFD

                      @SPlatten your debug build includes -g. Simply run
                      valgrind your executable

                      SPlattenS Offline
                      SPlattenS Offline
                      SPlatten
                      wrote on last edited by
                      #10

                      @JoeCFD said in Migration to Qt 6.6.1:

                      valgrind

                      In a terminal or from Qt Creator ?

                      Kind Regards,
                      Sy

                      JoeCFDJ 1 Reply Last reply
                      0
                      • SPlattenS SPlatten

                        @JoeCFD said in Migration to Qt 6.6.1:

                        https://doc.qt.io/qt-6/topics-graphics.html

                        Screenshot 2024-01-22 at 19.11.02.png

                        I don't see any OpenGL listed. Found this:

                        https://methi1999.github.io/2020/08/19/opengl.html

                        JoeCFDJ Offline
                        JoeCFDJ Offline
                        JoeCFD
                        wrote on last edited by JoeCFD
                        #11

                        @SPlatten I am not familiar with IOS. read this:
                        Metal
                        Apple has made it abundantly clear that they are not interested in supporting OpenGL ES further on any platform they control. In the future, you will use Metal or you will not have accelerated 3D graphics. Those will be your options.

                        IOS uses Metal. The minimum version of Metal for Qt 6.6 from my link is 1.2. Check the Metal version in your computer. Better to know this kind of thing.

                        SPlattenS 1 Reply Last reply
                        0
                        • SPlattenS SPlatten

                          @JoeCFD said in Migration to Qt 6.6.1:

                          valgrind

                          In a terminal or from Qt Creator ?

                          JoeCFDJ Offline
                          JoeCFDJ Offline
                          JoeCFD
                          wrote on last edited by
                          #12

                          @SPlatten from command line. But you can do it in Qt Creator as well.

                          1 Reply Last reply
                          0
                          • JoeCFDJ JoeCFD

                            @SPlatten I am not familiar with IOS. read this:
                            Metal
                            Apple has made it abundantly clear that they are not interested in supporting OpenGL ES further on any platform they control. In the future, you will use Metal or you will not have accelerated 3D graphics. Those will be your options.

                            IOS uses Metal. The minimum version of Metal for Qt 6.6 from my link is 1.2. Check the Metal version in your computer. Better to know this kind of thing.

                            SPlattenS Offline
                            SPlattenS Offline
                            SPlatten
                            wrote on last edited by
                            #13

                            @JoeCFD , Yes in my image METAL is listed:

                            Supported, Metal GPUFamily macOS 2

                            Kind Regards,
                            Sy

                            JoeCFDJ 1 Reply Last reply
                            0
                            • SPlattenS SPlatten

                              @JoeCFD , Yes in my image METAL is listed:

                              Supported, Metal GPUFamily macOS 2

                              JoeCFDJ Offline
                              JoeCFDJ Offline
                              JoeCFD
                              wrote on last edited by
                              #14

                              @SPlatten Good. run valgrind or gdb your app to see where it crashes.

                              SPlattenS 1 Reply Last reply
                              0
                              • JoeCFDJ JoeCFD

                                @SPlatten Good. run valgrind or gdb your app to see where it crashes.

                                SPlattenS Offline
                                SPlattenS Offline
                                SPlatten
                                wrote on last edited by
                                #15

                                @JoeCFD From the location where my app exists:

                                sy@Simons-iMac build-XMLMPAM-Qt_6_6_1_for_macOS-Debug % valgrind
                                zsh: command not found: valgrind
                                

                                Kind Regards,
                                Sy

                                JoeCFDJ 1 Reply Last reply
                                0
                                • SPlattenS SPlatten

                                  @JoeCFD From the location where my app exists:

                                  sy@Simons-iMac build-XMLMPAM-Qt_6_6_1_for_macOS-Debug % valgrind
                                  zsh: command not found: valgrind
                                  
                                  JoeCFDJ Offline
                                  JoeCFDJ Offline
                                  JoeCFD
                                  wrote on last edited by
                                  #16

                                  @SPlatten then install it. Or use gdb

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

                                    Hi,

                                    Which version of macOS are you running ? On which kind of processor ?

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

                                    D 1 Reply Last reply
                                    0
                                    • SGaistS SGaist

                                      Hi,

                                      Which version of macOS are you running ? On which kind of processor ?

                                      D Offline
                                      D Offline
                                      DerReisende
                                      wrote on last edited by DerReisende
                                      #18

                                      @SGaist He is using an iMac with AMD GPU - this would make it an intel cpu.

                                      @SPlatten I guess you are using qmake for your app? In any case what you could do:

                                      1. create an xcode project of your app with qmake and compile it using xcode.
                                      2. Follow this link to edit run scheme for the diagnostics malloc magic Xcode provides.
                                      3. Run with Xcode

                                      Hopefully this will lead you to your problem.
                                      Alternatively I think clang´s address sanitizer may be of help as well. For this to work sort of reliably you can add the following compiler flags to your app:
                                      -O1 -g -fsanitize=address -fno-omit-frame-pointer
                                      This should give reasonable performance while maintaining debugging capability.

                                      Note however that I have never used the Xcode approach on macOS. I am using CMake with the address sanitizer only.

                                      EDIT: AFAIR valgrind was never of much use on macOS and is much better supported on Linux.

                                      1 Reply Last reply
                                      2

                                      • Login

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