Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manager: unify wxSingleInstanceChecker() lockfile #1576

Open
ChristianBeer opened this issue Jul 19, 2016 · 5 comments
Open

Manager: unify wxSingleInstanceChecker() lockfile #1576

ChristianBeer opened this issue Jul 19, 2016 · 5 comments

Comments

@ChristianBeer
Copy link
Member

wxSingleInstanceChecker() uses a lockfile to determine if there is a already a Manager running. On Mac this lockfile has a custom name and is managed by BOINC. On Linux and Windows the file has a default name ("Boinc Manager") and will be placed in the users home directory. If the Manager crashes this file is not deleted and prevents another instance from starting. This is observed on Linux mainly. The wx devlopers suggested to also use a custom filename and path for Linux and windows as is already there for Mac.

The relevant places are:
BOINCGUIApp.cpp: CBOINCGUIApp::DetectDuplicateInstance()
BOINCGUIApp.cpp: CBOINCGUIApp::OnInit()
mac_installer/PostInstall.cpp: UpdateAllVisibleUsers

Also see the Debian bug: #781789

@el-gallo-azul
Copy link

If the Manager crashes this file is not deleted and prevents another instance from starting

In addition to that, the file is intermittently not deleted when: (a) the computer is shut down after "Suspending" all tasks; or (b) the computer is shut down after Quitting BOINC Manager using the "Stop running tasks when exiting the BOINC Manager" option.

@CharlieFenton
Copy link
Contributor

On which platform (OS) are you seeing these situations? At least on some platforms, wxSingleInstanceChecker has safeguards for this situation by checking the process ID. Also, there is already code in the BOINC Manager to handle this for the Mac (BOINCGUIApp.cpp lines 406-434 in GIT Master branch.)

On Sep 24, 2016, at 3:47 PM, el-gallo-azul notifications@github.com wrote:

If the Manager crashes this file is not deleted and prevents another instance from starting

In addition to that, the file is intermittently not deleted when: (a) the computer is shut down after "Suspending" all tasks; or (b) the computer is shut down after Quitting BOINC Manager using the "Stop running tasks when exiting the BOINC Manager" option.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@el-gallo-azul
Copy link

Linux 4.4.0-38-generic

boincmgr 7.6.31 (x64)

@ChristianBeer ChristianBeer added this to the Client/Manager 8.0 milestone Apr 12, 2017
@Ageless93 Ageless93 added this to Backlog in Client and Manager via automation Nov 11, 2017
@RichardHaselgrove
Copy link
Contributor

Then let's preserve the #3310 observations here.

https://boinc.berkeley.edu/forum_thread.php?id=13132

Steps To Reproduce

  1. Crash the system
  2. or (sporadically) forget to use the menu to close the Manager window

System Information (please complete the following information):

  • OS: Linux - Ubuntu and Mint
  • BOINC Version: unstated and v7.16.1

Maybe someone will pay some attention to the backlog then.

@AenBleidd AenBleidd added this to To do in Client Undetermined Oct 28, 2019
@kvibber
Copy link

kvibber commented Dec 4, 2021

This is still happening on Linux. I just had the same problem on Fedora today, using the distro-provided builds. The system didn't crash, but I think I might have left the manager window open the last time I rebooted.

boinc-client-7.16.11-6.fc35.x86_64
boinc-manager-7.16.11-6.fc35.x86_64

I've only been running boinc on this system for a few days, so it didn't take very long to encounter the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

5 participants