Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt 5.2.x, Mac OS 10.9.1: Trying to construct an instance of an invalid type, type id: xxxxxxxxxxxx

    General and Desktop
    2
    4
    2268
    Loading More Posts
    • 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.
    • J
      janfaroe last edited by

      Hi all. Running my application, I'm seeing errors like

      Trying to construct an instance of an invalid type, type id: 67129088
      Trying to construct an instance of an invalid type, type id: 895772268
      Trying to construct an instance of an invalid type, type id: 661220984
      Trying to construct an instance of an invalid type, type id: 795767909
      Trying to construct an instance of an invalid type, type id: 811925504
      Trying to construct an instance of an invalid type, type id: 875522164
      Trying to construct an instance of an invalid type, type id: 173237620
      Trying to construct an instance of an invalid type, type id: 694484992
      Trying to construct an instance of an invalid type, type id: 67129088
      Trying to construct an instance of an invalid type, type id: 895772268
      Trying to construct an instance of an invalid type, type id: 661220984
      Trying to construct an instance of an invalid type, type id: 795767909
      Trying to construct an instance of an invalid type, type id: 811925504
      Trying to construct an instance of an invalid type, type id: 875522164
      Trying to construct an instance of an invalid type, type id: 173237620
      Trying to construct an instance of an invalid type, type id: 694484992

      after a while, without any interaction. The application remains responsive, but I can't quit in a normal manner, only force quit. I don't see this behavior when using the accompanying Qt Creator in Qt 5.2.x/5.2.1 nightly; I assume it's using the same builds as the SDK. I did not see this in Mac OS 10.9.0.

      Any ideas what the error messages mean and how to fix the problem mentioned? Could this be a Mac OS 10.0.1 issue?

      1 Reply Last reply Reply Quote 0
      • J
        janfaroe last edited by

        This is caused by an incompatibility of QNetworkDiskCache files between Qt4.x.y and 5.x. In other words: If you have cached URLS from a 4.x deployed application and deciding to deploy via 5.x, you have problems. This goes the other way around too.

        As a bonus bug, one can also experience complete blocking of previously visited URLs. I was on the verge of insanity figuring that one out. Removing the cache directory solves the problem. A workaround might of course be to use different cache directory names for qt4/qt5 (that's at least the path [sic] I've chosen).

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi,

          That could be an interesting point to bring to the developer's attention. Maybe a doc note would also be a good idea

          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 Reply Quote 0
          • J
            janfaroe last edited by

            There's already an entry mentioning this:

            https://bugreports.qt-project.org/browse/QTBUG-34498

            I added a confirming comment and hit the vote button.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post