kliment / Printrun

Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software
GNU General Public License v3.0
2.34k stars 995 forks source link

App crashes when open on multiple users (macos) #1436

Closed phamleduy04 closed 2 days ago

phamleduy04 commented 2 weeks ago

When running the Pronterface application on macOS, it crashes if the user switches to a different user account without first quitting the app. The issue occurs when attempting to open Pronterface under the second user account while it's still running for the initial user.

Steps to Reproduce:

DivingDuck commented 2 weeks ago

Pronterface isn't made for this use case, it is not a multi user print server. When you switch to an other user account you will loose the control of the usb connection and this will the cause to the crash. It maybe works if you don't have a active connection to the printer but you should not count on this. Having hardware available is organized by the operating system.

What is your use case that you want to do this?

PS: Please add the following information to this issue: Pronterface version and log file

phamleduy04 commented 2 weeks ago

my Printrun version is 2.1.0

My use case is I have a dedicated machine for 3d printing, and people will log in to their account to print. There is a case in which the user sends the print command, and locks the screen so the print can continue. However after it is done, there is a manual task that requires the user to send a print command to close/log off the machine for the next person to keep printing. I want the next user can open the app and start print without have to wait the previous user to close the app.

rockstorm101 commented 2 weeks ago

As already explained, Printrun is not intended to be used in that way, it is just a desktop app. Two options come to mind for what you try to achieve: