Skip to main content
johnrellis
Legend
January 21, 2018
Question

LrShutdownApp invoked at the wrong time on Windows

  • January 21, 2018
  • 2 replies
  • 782 views

Documenting for future reference: LrShutdownApp is invoked when LR is shutting down. But on Windows, when LR exits and starts a backup, it first puts the API into some kind of shutdown state, where calls return the error "Attempt to make a request on a closed server."  Then it calls LrShutdownApp, which is too late.

The workaround is to wrap the background tasks with LrTasks.pcall() and just ignore that particular error.

This topic has been closed for replies.

2 replies

johnrellis
Legend
October 20, 2019

"Hi, I had that error with the plug-in LogiOptions, I disabled it and the error does not occur."

 

Logitech installs (or installed) that plugin as part of its general utilities, whether the user asks for it or not -- most people aren't even aware that it gets installed. Unfortunately, the plugin has a number of problems that Logitech has never bothered to address.

 

[Use the reply button under the first post to ensure replies sort properly.]

Participant
October 20, 2019

Hi, I had that error with the plug-in LogiOptions, I disabled it and the error does not occur.