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
Error launching Nicotine+ #2282
Comments
What is your installation method @aopom such as ppa, pip or some other repo packaging? The path to spawned python machine (used by the shares scanner process) is different from where nicotine core is:
nicotine-plus/pynicotine/shares.py Line 829 in 562d12d
nicotine-plus/pynicotine/shares.py Lines 745 to 755 in 562d12d
nicotine-plus/pynicotine/shares.py Lines 767 to 768 in 562d12d
nicotine-plus/pynicotine/shares.py Line 830 in 562d12d
The crash is encountered at the same point as in #1843 Type: |
It's nixpkgs/NixOS packaging (source here). I should maybe open an issue there first. |
Would it work if this was changed to https://docs.python.org/3.8/library/multiprocessing.html#multiprocessing.set_start_method Should we run a sort "power on self test" of multiprocessing when launching |
@slook Both start methods call _flush_std_streams when initializing, so it doesn't make any difference. @aopom How are you starting Nicotine+? |
I thought it might depend upon if the process's |
@mathiascode I tried starting it in a terminal ( |
I'm assuming you see log messages from Nicotine+ in the terminal? |
Does the same thing happen if you run Nicotine+ from a local Git folder? |
I built it with the code from the last commit and I have the same issue :/ |
Since there's no log output in the terminal, it would seem like stdout is broken in the main process too on your system. To verify if only Nicotine+ is affected, could you run the following Python script?
Also, could you remove these lines and see if anything changes? nicotine-plus/pynicotine/__init__.py Lines 118 to 120 in ff3ca17
|
With this override removed, I get the exact same error :/ Traceback: File "/nix/store/ax1br9c00lm3xjqmfwrm9inqr8xdhyb5-nicotine-plus-3.2.6/lib/python3.10/site-packages/pynicotine/gtkgui/application.py", line 110, in on_activate
self.core.start(ui_callback=self.frame, network_callback=self.network_callback)
File "/nix/store/ax1br9c00lm3xjqmfwrm9inqr8xdhyb5-nicotine-plus-3.2.6/lib/python3.10/site-packages/pynicotine/pynicotine.py", line 132, in start
self.shares = Shares(self, config, self.queue, self.network_callback, ui_callback)
File "/nix/store/ax1br9c00lm3xjqmfwrm9inqr8xdhyb5-nicotine-plus-3.2.6/lib/python3.10/site-packages/pynicotine/shares.py", line 510, in __init__
self.init_shares()
File "/nix/store/ax1br9c00lm3xjqmfwrm9inqr8xdhyb5-nicotine-plus-3.2.6/lib/python3.10/site-packages/pynicotine/shares.py", line 519, in init_shares
self.rescan_shares(init=True, rescan=rescan_startup)
File "/nix/store/ax1br9c00lm3xjqmfwrm9inqr8xdhyb5-nicotine-plus-3.2.6/lib/python3.10/site-packages/pynicotine/shares.py", line 830, in rescan_shares
scanner.start()
File "/nix/store/zdba9frlxj2ba8ca095win3nphsiiqhb-python3-3.10.8/lib/python3.10/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/nix/store/zdba9frlxj2ba8ca095win3nphsiiqhb-python3-3.10.8/lib/python3.10/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/nix/store/zdba9frlxj2ba8ca095win3nphsiiqhb-python3-3.10.8/lib/python3.10/multiprocessing/context.py", line 288, in _Popen
return Popen(process_obj)
File "/nix/store/zdba9frlxj2ba8ca095win3nphsiiqhb-python3-3.10.8/lib/python3.10/multiprocessing/popen_spawn_posix.py", line 32, in __init__
super().__init__(process_obj)
File "/nix/store/zdba9frlxj2ba8ca095win3nphsiiqhb-python3-3.10.8/lib/python3.10/multiprocessing/popen_fork.py", line 16, in __init__
util._flush_std_streams()
File "/nix/store/zdba9frlxj2ba8ca095win3nphsiiqhb-python3-3.10.8/lib/python3.10/multiprocessing/util.py", line 435, in _flush_std_streams
sys.stdout.flush() |
What about the Python script in my last comment? |
Yeah sorry, it works fine. Prints |
Is there any difference with the following commands? |
$ nicotine --headless
[2022-12-21 17:42:36] Loading Python 3.10.8 (main, Oct 11 2022, 11:35:05) [GCC 11.3.0]
[2022-12-21 17:42:36] Loading Nicotine+ 3.2.6
[2022-12-21 17:42:36] Loading plugin system
[2022-12-21 17:42:36] The range you specified for client connection ports was 2234-2239, but none of these were usable. Increase and/or move the range and restart Nicotine+.
[2022-12-21 17:42:36] Rescanning shares…
[2022-12-21 17:42:36] 0 folders found before rescan, rebuilding…
[2022-12-21 17:42:37] UPnP: Failed to forward external port None: UPnP is not available on this network
$ nicotine --rebuild
[2022-12-21 17:43:48] Rescanning shares…
[2022-12-21 17:43:48] 0 folders found before rescan, rebuilding… No GUI is spawning. Apart from this, |
I got a similar error. It works when launched from terminal but not from desktop launcher
|
What is your OS distro, and which method of installation @hyunlee1o ? |
Linux, debian testing.
El jue., 22 dic. 2022 10:00 a. m., slook ***@***.***>
escribió:
… What is your OS @hyunlee1o <https://github.com/hyunlee1o> ?
—
Reply to this email directly, view it on GitHub
<#2282 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCL2RHTHJMCH6GIBN2GPJ3WOQKB3ANCNFSM6AAAAAATAAZJWQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@hyunlee1o Which desktop environment are you using? I can't reproduce the issue with a default Debian Testing installation (GNOME). |
i3-wm
El mar., 27 dic. 2022 6:42 p. m., Mat ***@***.***> escribió:
… @hyunlee1o <https://github.com/hyunlee1o> Which desktop environment are
you using? I can't reproduce the issue with a default Debian Testing
installation (GNOME).
—
Reply to this email directly, view it on GitHub
<#2282 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCL2RBJC6ZDTULJ4WTJ2STWPMS7BANCNFSM6AAAAAATAAZJWQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I managed to reproduce the issue. Run this command in a terminal: |
Yeah, it crashes in terminal :3
|
Could you test the 3.2.x branch and see if the issue is resolved for you? |
I tested and it run without issue |
Fixes the bug for me too! Thanks a lot :D |
Hum, It worked one time, then I ran the older version by mistake and now I have the issue again with the last |
That doesn't make much sense. Can you re-download the latest 3.2.x development build, to ensure that it's actually the latest. If nothing changes. can you paste the error? |
@aopom @hyunlee1o The latest stable release includes the fix, please check everything is okay with it on your systems. Thank you. Nicotine+ 3.2.8 released on January 6th 2023 https://nicotine-plus.org/doc/DOWNLOADS |
Working, thanks for your time and effort. |
Yes it works! |
Hey, first thanks for this wonderful software!
I thought I was dreaming when I switched from SoulseekQt to Nicotine+ :D
Nicotine started to fail at launch.
I don't know why it started to act like this, because it was working on the same setup a few days ago.
I tried
rm -r .local/share/nicotine/ .config/nicotine/
but it doesn't help.Nicotine+ Version: 3.2.6
GTK Version: 3.24.34
Python Version: 3.10.8 (main, Oct 11 2022, 11:35:05) [GCC 11.3.0]
OS: NixOS 22.11
Display: sway 1.7 (wayland)
The text was updated successfully, but these errors were encountered: