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. 32bit application is running. 64 bit application is crashing. (connect statement is creating problem.)
Forum Updated to NodeBB v4.3 + New Features

32bit application is running. 64 bit application is crashing. (connect statement is creating problem.)

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 3 Posters 1.7k Views
  • 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.
  • Christian EhrlicherC Offline
    Christian EhrlicherC Offline
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on last edited by
    #4

    Please provide a backtrace.

    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
    Visit the Qt Academy at https://academy.qt.io/catalog

    1 Reply Last reply
    2
    • B Offline
      B Offline
      Bikram Shishodia
      wrote on last edited by
      #5

      This is not the crash, while put the code snippet in the try it's not moving in to the catch block. the application just exit with assert message after below connect statement.
      "connect(m_LoginDialog, SIGNAL(rejected()), this, SLOT(DialogClosed()));"

      Below is the assert message:
      Fatal:26-12-2019 00:25:20: kernel\qmetaobject.cpp:161, (null): ASSERT: "data.ptr->ref.isStatic()" in file kernel\qmetaobject.cpp, line 161

      The code is same as 32 bit and running as expected. But getting issue with 64 bit.

      Christian EhrlicherC 1 Reply Last reply
      0
      • B Bikram Shishodia

        This is not the crash, while put the code snippet in the try it's not moving in to the catch block. the application just exit with assert message after below connect statement.
        "connect(m_LoginDialog, SIGNAL(rejected()), this, SLOT(DialogClosed()));"

        Below is the assert message:
        Fatal:26-12-2019 00:25:20: kernel\qmetaobject.cpp:161, (null): ASSERT: "data.ptr->ref.isStatic()" in file kernel\qmetaobject.cpp, line 161

        The code is same as 32 bit and running as expected. But getting issue with 64 bit.

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #6

        @Bikram-Shishodia Still no backtrace - so no help from me anymore.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Bikram Shishodia
          wrote on last edited by
          #7

          Is this what you want? :
          83750f79-0e9d-498f-85d0-9aec08da496b-image.png

          After red marked connect statement, application is crashing(exiting). I am creating object of m_LoginDialog just before that line.
          You can see the application output as well in snapshot.

          and the data printing in log is: Fatal:26-12-2019 13:08:34: kernel\qmetaobject.cpp:154, (null): ASSERT: "data.ptr->ref.isStatic()" in file kernel\qmetaobject.cpp, line 154

          1 Reply Last reply
          0
          • Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #8

            Please show SSMainWindow.cpp, line 45 and around.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            1 Reply Last reply
            0
            • B Offline
              B Offline
              Bikram Shishodia
              wrote on last edited by
              #9

              88f19c71-08de-4639-97cd-58adcc104e2f-image.png

              CLoginMessageHandler:

              c2050724-91aa-4bb8-bb6c-46624a743f18-image.png

              1 Reply Last reply
              0
              • Christian EhrlicherC Offline
                Christian EhrlicherC Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on last edited by
                #10

                Please do not post screenshots... it's not really readable. Currently you're just on a breakpoint, but no crash happened until now.

                I would try to minimize the code until it does not crash anymore.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                1 Reply Last reply
                1
                • B Offline
                  B Offline
                  Bikram Shishodia
                  wrote on last edited by
                  #11

                  That is what I am saying. After that connect statement application crashing.

                  And we already have working application in 32 bit. We are building it in 64 bit and it is not running.
                  Same code is working fine If I am using 32 bit kit.

                  1 Reply Last reply
                  0
                  • Christian EhrlicherC Offline
                    Christian EhrlicherC Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #12

                    @Bikram-Shishodia said in 32bit application is running. 64 bit application is crashing. (connect statement is creating problem.):

                    After that connect statement application crashing.

                    But you did not really posted a stack trace of the crash... only the one where you stopped your debugger...

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    1 Reply Last reply
                    1
                    • hskoglundH Online
                      hskoglundH Online
                      hskoglund
                      wrote on last edited by
                      #13

                      Hi, just guessing but I had some trouble before with connect() statements for 64-bit, and the problem vanished when I switched from using the old style with SIGNAL() and SLOT() to using the new style connect() syntax with instanceptrs + &classname::methodnames,

                      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