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. Mac Crash Dialog hidden by Splash Screen
Forum Updated to NodeBB v4.3 + New Features

Mac Crash Dialog hidden by Splash Screen

Scheduled Pinned Locked Moved General and Desktop
8 Posts 4 Posters 2.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.
  • W Offline
    W Offline
    wibstr
    wrote on last edited by
    #1

    I have the following problem with my application on OSX (Mavericks, but I don't think it's specific to the version). Restarting the app after a crash causes the OS to show its crash dialog: "The last time you opened <app name> it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?"

    The problem is that

    1. The application can't proceed until the user dismisses the crash dialog
    2. My application's splash screen covers up the crash dialog - so it can't be dismissed

    the OS appears to show the crash dialog when the splash screen is shown (when I step through in the debugger, it's the call to splash->show() that doesn't return). I tried setting a QTimer before I show() the splash, so that at least the splash would close eventually ... but the tick event never fires. Apparently the OS suspends the app.

    Any suggestions? Does anyone understand the details of how/when the OS execs that dialog?

    1 Reply Last reply
    0
    • X Offline
      X Offline
      Xander84
      wrote on last edited by
      #2

      did you set the spash screen to be always on top (Qt::WindowStaysOnTopHint)?
      if not you might try to call QWidget::lower() but I think that onyl works for Qt widgets and not other windows running on the system :/

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

        Hi,

        What exact version of Qt are you using ?

        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
        • W Offline
          W Offline
          wibstr
          wrote on last edited by
          #4

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

          What exact version of Qt are you using ?[/quote]

          5.2.1 - Sorry, I should have put that in my original post.

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

            Can you try with Qt 5.3 to see whether it still gives you that problem ?

            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
            • W Offline
              W Offline
              wibstr
              wrote on last edited by
              #6

              [quote author="Xander84" date="1395346847"]did you set the spash screen to be always on top (Qt::WindowStaysOnTopHint)?
              if not you might try to call QWidget::lower() but I think that onyl works for Qt widgets and not other windows running on the system :/[/quote]

              I did have WindowStaysOnTopHint set, but removing it didn't make any difference.

              1 Reply Last reply
              0
              • W Offline
                W Offline
                wibstr
                wrote on last edited by
                #7

                [quote author="SGaist" date="1395354457"]Can you try with Qt 5.3 to see whether it still gives you that problem ?[/quote]

                It appears to persist in 5.3. (But even if it didn't, I'd still need a workaround for 5.2.1 as our project is already locked into that version.)

                1 Reply Last reply
                0
                • hskoglundH Offline
                  hskoglundH Offline
                  hskoglund
                  wrote on last edited by
                  #8

                  Hi, if you don't like that crash dialog you can disable it, start Terminal and type:
                  @defaults write com.apple.CrashReporter DialogType none@

                  Then you need to start your app one time (without crashing!) and exit it, for this to work nicely.

                  You can read more "for example here":http://apple.stackexchange.com/questions/80900/suppressing-reopen-windows-dialog-when-restarting-a-crashed-program-in-mountai

                  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