-
Notifications
You must be signed in to change notification settings - Fork 293
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
Infinite app instance spawns on macOS #921
Comments
Hey @srudolph-credera , thanks for opening the issue. This has been reported a couple of times by now and I am just not able to reproduce it :/ I've tried to setup a non-admin user and install DevPod into the Are there any other pointers that could be relevant here? |
Thanks for taking a look at this! One thing you might try is coming back to that non-admin user account after a shutdown or a day has passed - DevPod worked fine for me initially as well. As for other potential distinctions, I'm on a very recently setup M3 Max MacBook Pro for what it's worth - which has the upside I suppose of limiting how much cruft is around that could impact this (I did not use Migration Assistant). It's also a corporate machine, which could mean all sorts of typical enterprise software and configurations are around. This has been a good opportunity for me to learn the DevPod CLI and thankfully I'm able to use that without issue, so it's just the GUI app here. I'd be happy to try running a debug version of the GUI (or launching it with an existing debug flag) if that's helpful! |
Thanks for the info! I'll leave my test user sitting and will try again tomorrow. |
Quick update @srudolph-credera: I've tried to wait a couple of days but wasn't able to repro. I'd appreciate any input on how exactly your machine is locked down |
I'm limited in what I can disclose that would be helpful (like the particular applications), but I believe the bulk of the lockdown is network related and I'd be happy to test specific things if you have something in particular that you think might be causing trouble. This may be unrelated, but I do see a report of infinite window spawn in Tauri, could be an upstream issue: tauri-apps/tauri#7681. I also did a quick scan through the code - I'm completely new to Rust and to this project, but at first glance it looks like there is a new_main method that spans a new instance and there's an event handler that at least theoretically could be the cause of additional calls to that method:
|
Thanks for looking deeper into this! see #944 |
I'll be happy to test it! |
New release over here, you'd need to install it manually though. Hope it works 🤞 |
I just tested DevPod_macos_aarch64.app.tar.gz and unfortunately I see the same spawning issue. I was able to capture DevPod.log for you and this is what it looks like:
|
hm okay, thanks @srudolph-credera. This looks like the setup process is being called time and time again... Not really sure why though, maybe it's really a tauri bug |
I tried building DevPod locally and ran into issues doing so within Multipass, but if you are able to make a build that logs the event/message passed into handle_msg plus any diagnostic info about Tauri's state, I'd be happy to run it! |
Another possibility mentioned in tauri-apps/tauri#7681 is this Tauri plugin: https://github.com/tauri-apps/plugins-workspace/tree/v1/plugins/single-instance. Edit: nevermind, macOS isn't supported by that plugin - tauri-apps/plugins-workspace#287. |
What happened?
I opened the DevPod application and it started spawning a new DevPod application every second or so without quitting the previous instance(s). I could only stop the process by quitting faster than the new windows could open.
What did you expect to happen instead?
I expected only a single DevPod instance to start.
How can we reproduce the bug? (as minimally and precisely as possible)
Since I took no other action other than opening the application, the issue must either be universal or tied to something about my particular setup/environment. Here's what I've already done to eliminate some environment differences (with no change in the app behavior):
~/.devpod
directory and restartedLocal Environment:
DevPod Provider:
N/A
Anything else we need to know?
I first installed DevPod yesterday and was using it without issue. I shutdown my laptop yesterday and started experiencing the issue the first time I opened DevPod this morning.
Peculiarities of my setup that might be relevant:
~/Applications
instead of/Applications
$HOME/Applications/DevPod.app/Contents/MacOS
The text was updated successfully, but these errors were encountered: