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. QSplash screen turns black on repeated mouse click and sometimes app crashes.

QSplash screen turns black on repeated mouse click and sometimes app crashes.

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 3.3k 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
    SajasKK
    wrote on last edited by
    #1

    Hi,
    I am using QSplashScreen for bring out a splashscreen for my application. The splash screen is supposed to wait for about 2 sec and disappear.

    While going through the qsplashscreen code , I saw that on any mouse press event on the splashscreen we are hiding the spalshscreen.

    But, sometimes the splashscreen doesn't disappear immediately, and if I keep on pressing on the splash screen the transparent background of the splashscreen becomes black. Then the application either crashes or closes and splashscreen and resumes to work. And if I don't click on the splashscreen the app runs smoothly.

    I am using QT 4.8.5.

    Why do I get a black background for the splash screen when I click on it repeatedly? Does the app crash has anything to do with the spalshscreen clicks?

    I received the 0xc0000005 error and exception code when i tried to debug the mini dump generated on the app crash.

    BUGCHECK_STR: APPLICATION_FAULT_INVALID_POINTER_READ_FINALIZER_CALL

    PRIMARY_PROBLEM_CLASS: INVALID_POINTER_READ_FINALIZER_CALL

    DEFAULT_BUCKET_ID: INVALID_POINTER_READ_FINALIZER_CALL

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

      Hi,

      You should also add on which OS your a running into this

      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
      • S Offline
        S Offline
        SajasKK
        wrote on last edited by
        #3

        [quote author="SGaist" date="1401828357"]Hi,

        You should also add on which OS your a running into this[/quote]

        I am running it in Windows 7 64 bit machine

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

          Can you try with 4.8.6 ?

          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
          • S Offline
            S Offline
            SajasKK
            wrote on last edited by
            #5

            [quote author="SGaist" date="1401864570"]Can you try with 4.8.6 ?[/quote]

            I am working on a small portion of a big project. I am not sure about migrating from one Qt version to other immediately.

            I have one more matter of concern. The black background for the splash screen comes only if my PC is heavily loaded and I click on the application repeatedly. It doesn't matter whether I am clicking on the splash screen or the app window, the splash screen background goes black. If I kept on clicking the application window, the application becomes non responsive , but after a while the window comes back to normal state. But during the non responsive state if I click on the splash screen I get error similar to the following error (app is different):

            !http://obinshah.files.wordpress.com/2011/01/non-responsive-programs.jpg(Non responsive app)!

            Why does it goes to this state only when i click on splash screen ?

            Even though the pop up comes once the app is loaded the pop up disappears and starts working.

            Is there any way to avoid this popup?

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

              You application is busy doing some work (initialization, waiting on something) So if the system is already heavily loaded, your software already doing some work/waiting on something then that message is completely normal

              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
              • S Offline
                S Offline
                SajasKK
                wrote on last edited by
                #7

                [quote author="SGaist" date="1401913404"]You application is busy doing some work (initialization, waiting on something) So if the system is already heavily loaded, your software already doing some work/waiting on something then that message is completely normal[/quote]

                Is there any way I can disable all the events ,meaning even before using show of the splash screen i will disable all the events.I already tried using setDisable(true),but that did not seem to do the job for me.Any suggestions???

                1 Reply Last reply
                0
                • MrBoltonM Offline
                  MrBoltonM Offline
                  MrBolton
                  wrote on last edited by
                  #8

                  The application is probably going through a lot of loops while your splash screen is showing, right?
                  In those loops, you need to call
                  @QApplication::processEvents()@

                  for the application to be able to process all other events. Otherwise the loops will block the GUI.
                  This will enable the QProgressBar (if you have one in your splash screen) to animate correctly as well.

                  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