Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Deployed app on Windows crashes when generating graphs- Qt 5.7.1
Forum Updated to NodeBB v4.3 + New Features

Deployed app on Windows crashes when generating graphs- Qt 5.7.1

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 1.0k 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.
  • D Offline
    D Offline
    darkhorse
    wrote on last edited by darkhorse
    #1

    So, I built an app on MS Visual Studio 2017 with Qt 5.7.1 for the GUI. The GUI is supposed to load and display graphs and analytics. It works perfectly fine on my laptop and generates and displays graphs but crashes on the PC on which it is deployed the moment graph generation starts.

    I am guessing it could be a dependency issue but I can't figure it out. I tried out this: http://wiki.qt.io/Deploy_an_Application_on_Windows but it crashes at the initial deployment stage itself.

    Any help with this would be appreciated.

    Note: My laptop has Qt installed but the target PC doesn't. I have added all the Qt dependent .dll files (Qt5Core, Qt5Widgets, Qt5Gui, Qt5Xml, Qt5PrintSupport)

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

      Hi and welcome to devnet,

      Can you trigger the crash on your machine if you execute the application directly from the explorer ?

      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 and welcome to devnet,

        Can you trigger the crash on your machine if you execute the application directly from the explorer ?

        D Offline
        D Offline
        darkhorse
        wrote on last edited by
        #3

        @SGaist Yes, I can.
        So here's when the graph generation works:

        1. When I run the program in Debug mode on Visual Studio
        2. When I run the .exe file of the app from the Debug folder
        3. Works sometimes when I run it in Release mode on Visual Studio, crashes sometimes (Exception thrown: read access violation. QCustomPlot::graph(...) returned nullptr)

        When it absolutely doesn't work:

        1. When I run the .exe file of the app in the Release folder
        2. Crashes sometimes when run in Release mode on Visual Studio (Exception thrown: read access violation. QCustomPlot::graph(...) returned nullptr)

        I can't seem to figure out why doesn't the QCustomPlot::graph() error show up in debug mode. Also, how do I resolve that error? Any help on this would be appreciated.

        PS - Do let me know if you need to know any more details

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

          I'd first check that all member variables are initialised correctly.

          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