Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-2053

applicationShouldTerminate function returns NSApplicationDeligateReply when it should return NSApplicationTerminateReply

    XMLWordPrintableJSON

    Details

    • Type: Defect
    • Status: Closed
    • Priority: Minor
    • Resolution: Released
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Description

      applicationShouldTerminate, a cocoa specific function used when terminating the viewer on Mac OS X has the wrong return type. This causes the viewer to keep the system from restarting when the viewer is running. See https://developer.apple.com/library/mac/documentation/cocoa/reference/NSApplicationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/NSApplicationDelegate/applicationShouldTerminate:

      Consequences of the breakage, because the return value is being cast to the wrong enum, Second Life does not give OS X the go ahead to shutdown the viewer during OS reboots and system/driver updates. In many cases, such as input failure, this makes it impossible to restart the computer without resorting to a hard reboot.

      Repo with the fix attached.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cinder.roxley Cinder Roxley
              Contributor:
              Cinder Roxley
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: