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. The program has unexpectedly finished (When Loading Video)
Forum Updated to NodeBB v4.3 + New Features

The program has unexpectedly finished (When Loading Video)

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 600 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.
  • S Offline
    S Offline
    Stevendragoes
    wrote on last edited by
    #1

    Hi All, I can run my program but when I try to load a video into my GUI project, it crashes the system and gives me this error. This was run after I run qmake on this project because I was facing the issue of
    https://forum.qt.io/topic/11994/error-undefined-reference-to-vtable-for-myclass/5
    Now my program crashes whenever I load a video file .mp4 into the GUI Project.

    67afaadd-3f5a-4c2f-9bd5-4e89b4526c0a-image.png

    Is there a way to backtrack where it went wrong?
    I have the following warnings
    764e6289-2ba2-4c11-8c6f-52cd32ebc11f-image.png

    It used to be working fine but I ran Qmake, Rebuild All and ran the program. now it just crashes without showing any videos

    jsulmJ 1 Reply Last reply
    0
    • S Stevendragoes

      Hi All, I can run my program but when I try to load a video into my GUI project, it crashes the system and gives me this error. This was run after I run qmake on this project because I was facing the issue of
      https://forum.qt.io/topic/11994/error-undefined-reference-to-vtable-for-myclass/5
      Now my program crashes whenever I load a video file .mp4 into the GUI Project.

      67afaadd-3f5a-4c2f-9bd5-4e89b4526c0a-image.png

      Is there a way to backtrack where it went wrong?
      I have the following warnings
      764e6289-2ba2-4c11-8c6f-52cd32ebc11f-image.png

      It used to be working fine but I ran Qmake, Rebuild All and ran the program. now it just crashes without showing any videos

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Stevendragoes Did you already run your app through debugger to get the stack trace?
      The crash can be anything, we need stack trace.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Stevendragoes
        wrote on last edited by
        #3

        Hi @jsulm
        I have the following error
        97286781-8a9e-4b0b-aa99-4e4e872aaadf-image.png

        And I was presented with these
        508f66bf-7abc-43ca-ae17-e4bd19c4948d-image.png

        56e901d1-5da0-4946-ab4a-71f6afd144ec-image.png

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Stevendragoes
          wrote on last edited by
          #4

          Hi @jsulm
          Is the information enough?

          J.HilkJ 1 Reply Last reply
          0
          • S Stevendragoes

            Hi @jsulm
            Is the information enough?

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #5

            @Stevendragoes my guess would be, the MediaPlayer object is not initialized

            can you show us the content of on_actionPlay_triggered and where you initaize the MediaPlayer object?


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            1 Reply Last reply
            2
            • S Offline
              S Offline
              Stevendragoes
              wrote on last edited by
              #6

              oh wow. @J-Hilk I think you are right. I just removed everything that is related to MediaPlayer and it is working as intended.

              But previously I initialised MediaPlayer Object in my code. However, I removed it because I wanted to use OpenCV to tie to QT. Hence wanting to use QTimer to get each frame and display on QLabel.

              I have a doubt, previously, I removed QMediaplayer Object, it did not give me the error or crashes unexpectedly at all. Is it because QT still recognised that QMediaplayer is still initialised? Hence, another question, since i ran qmake, QT recognised that I did not initialise the QMediaplayer and crashes when I try to load in the video?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Stevendragoes
                wrote on last edited by
                #7

                @J-Hilk and @jsulm

                Should i be worried about the following warning?
                41ea76c1-d24b-4999-9383-543df96ffb32-image.png

                jsulmJ 1 Reply Last reply
                0
                • S Stevendragoes

                  @J-Hilk and @jsulm

                  Should i be worried about the following warning?
                  41ea76c1-d24b-4999-9383-543df96ffb32-image.png

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Stevendragoes This is normal unfortunately :-)
                  CLang code model is often causing such warnings.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • S Offline
                    S Offline
                    Stevendragoes
                    wrote on last edited by
                    #9

                    @jsulm thank you for your response. :) Appreciate it

                    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