Giter Site home page Giter Site logo

Comments (23)

mathiascode avatar mathiascode commented on May 26, 2024 1

Once I'm home, I'll prepare a special build of Nicotine+ that you can run in the console/terminal. The console output should hopefully provide some insight into the issue.

from nicotine-plus.

mathiascode avatar mathiascode commented on May 26, 2024 1

Try the windows-*-package build at the bottom of this page: https://github.com/mathiascode/nicotine-plus/actions/runs/6016923293

In case you don't know how to run it in the console: extract the zip, navigate to the Nicotine+\ subfolder the extracted folder, type cmd in the Windows Explorer path bar, and run Nicotine+.exe.

Once Nicotine+ starts, enable debug logging (all categories, see instructions here: https://nicotine-plus.org/doc/DEVELOPING.html#debug-logging). When Nicotine+ crashes, copy the crash message and a few lines of log output above it (remove any sensitive information such as usernames and IP addresses).

from nicotine-plus.

mathiascode avatar mathiascode commented on May 26, 2024 1

Good catch, I can confirm Nicotine+ crashes when I unplug an external monitor. Seems like a GTK 4 bug, GTK 3 is not affected.

from nicotine-plus.

Latecomerr avatar Latecomerr commented on May 26, 2024 1

@slook @mathiascode I've set up that one build with console output on another laptop that I don't connect to any external screens and it's been running smoothly so far. Also, on the other machine, it survived several power events such as hibernation and standby modes.

So far the only thing that I know that has caused Nicotine to silently crash is external monitor disconnection, nothing else has caused a dent, so I believe I can stop investigating.

from nicotine-plus.

mathiascode avatar mathiascode commented on May 26, 2024 1

A fix will be available soon: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6412

from nicotine-plus.

slook avatar slook commented on May 26, 2024

Have you had the same issue also occur with the current stable version of Nicotine+ 3.2.9 for Windows?

from nicotine-plus.

Latecomerr avatar Latecomerr commented on May 26, 2024

Have you had the same issue also occur with the current stable version of Nicotine+ 3.2.9 for Windows?

I think so, but I haven't used that version for long enough.

from nicotine-plus.

Latecomerr avatar Latecomerr commented on May 26, 2024
Windows fatal exception: access violation

Thread 0x00002870 (most recent call first):
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/slskproto.py", line 2624 in run
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 995 in _bootstrap

Thread 0x0000359c (most recent call first):
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/cli.py", line 82 in _handle_prompt
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/cli.py", line 44 in run
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 995 in _bootstrap

Thread 0x0000b17c (most recent call first):
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/events.py", line 324 in _run_scheduler
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 975 in run
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 995 in _bootstrap

Current thread 0x000061e4 (most recent call first):
  File "C:/msys64/mingw64/lib/python3.11/site-packages/gi/overrides/Gio.py", line 42 in run
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/gtkgui/application.py", line 101 in run
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/gtkgui/__init__.py", line 106 in run
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/__init__.py", line 211 in run
  File "D:/a/nicotine-plus/nicotine-plus/nicotine", line 34 in load_module
  File "D:/a/nicotine-plus/nicotine-plus/nicotine", line 38 in <module>
  File "C:/msys64/mingw64/lib/python3.11/site-packages/cx_Freeze/initscripts/console.py", line 16 in run
  File "C:/msys64/mingw64/lib/python3.11/site-packages/cx_Freeze/initscripts/__startup__.py", line 124 in run

from nicotine-plus.

Latecomerr avatar Latecomerr commented on May 26, 2024

and a few lines of log output above it

The logs were completely uninteresting, simply a lot of attempt to allocate GtkBox box 000001da59f0ed70 with width 1 and height -46 caused by minimizing the window

from nicotine-plus.

mathiascode avatar mathiascode commented on May 26, 2024

I haven't been able to reproduce the issue yet, but I have some questions to hopefully narrow this down a bit:

  • Are you uploading or downloading anything when the crash happens?
  • Have you joined any chatrooms?
  • Do you have any items in your wishlist?
  • Does Nicotine+ crash when you're disconnected from the server (Menu -> Disconnect)?
  • Are you able to reproduce the issue with a fresh installation/config (completing the Setup Assistant and letting Nicotine+ run)?

from nicotine-plus.

Latecomerr avatar Latecomerr commented on May 26, 2024
  • Are you uploading or downloading anything when the crash happens?

I don't think so. At least nothing that I have initiated.

  • Have you joined any chatrooms?

I don't think so. Not intentionally at least.

  • Do you have any items in your wishlist?

Yes, many.

  • Does Nicotine+ crash when you're disconnected from the server (Menu -> Disconnect)?

No idea.

  • Are you able to reproduce the issue with a fresh installation/config (completing the Setup Assistant and letting Nicotine+ run)?

I can try! I'll delete my config file (after backing it up) and do the setup assistant and let it do its thing

from nicotine-plus.

mathiascode avatar mathiascode commented on May 26, 2024

Thanks! Another thing I remembered is that a notification bubble appears when new wishlist results are found. It could also be worth checking if those are causing issues.

The easiest way to test this would probably be to temporarily join one of the popular rooms (e.g. nicotine), and enable chatroom notifications in Preferences -> User Interface.

from nicotine-plus.

Latecomerr avatar Latecomerr commented on May 26, 2024

Thanks! Another thing I remembered is that a notification bubble appears when new wishlist results are found. It could also be worth checking if those are causing issues.

The easiest way to test this would probably be to temporarily join one of the popular rooms (e.g. nicotine), and enable chatroom notifications in Preferences -> User Interface.

Just did this, no issues whatsoever.
For what it's worth, the Nicotine crash that I logged happened around 1 AM UTC

from nicotine-plus.

Latecomerr avatar Latecomerr commented on May 26, 2024

Here's what I'll do, I'll take the newly made config file, but migrate entries that I feel are safe from the old one, and then leave that running

from nicotine-plus.

mathiascode avatar mathiascode commented on May 26, 2024

Sure.

The logs were completely uninteresting, simply a lot of attempt to allocate GtkBox box 000001da59f0ed70 with width 1 and height -46 caused by minimizing the window

This looks like https://gitlab.gnome.org/GNOME/gtk/-/issues/5724

from nicotine-plus.

Latecomerr avatar Latecomerr commented on May 26, 2024
Windows fatal exception: access violation

Thread 0x000054d8 (most recent call first):
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/slskproto.py", line 2624 in run
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 995 in _bootstrap

Thread 0x00009948 (most recent call first):
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/cli.py", line 82 in _handle_prompt
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/cli.py", line 44 in run
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 995 in _bootstrap

Thread 0x00005740 (most recent call first):
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/events.py", line 324 in _run_scheduler
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 975 in run
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 1038 in _bootstrap_inner
  File "C:/msys64/mingw64/lib/python3.11/threading.py", line 995 in _bootstrap

Current thread 0x000014a0 (most recent call first):
  File "C:/msys64/mingw64/lib/python3.11/site-packages/gi/overrides/Gio.py", line 42 in run
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/gtkgui/application.py", line 101 in run
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/gtkgui/__init__.py", line 106 in run
  File "D:/a/nicotine-plus/nicotine-plus/pynicotine/__init__.py", line 211 in run
  File "D:/a/nicotine-plus/nicotine-plus/nicotine", line 34 in load_module
  File "D:/a/nicotine-plus/nicotine-plus/nicotine", line 38 in <module>
  File "C:/msys64/mingw64/lib/python3.11/site-packages/cx_Freeze/initscripts/console.py", line 16 in run
  File "C:/msys64/mingw64/lib/python3.11/site-packages/cx_Freeze/initscripts/__startup__.py", line 124 in run

Program just died the moment I unplugged an external monitor

from nicotine-plus.

mathiascode avatar mathiascode commented on May 26, 2024

Reported upstream: https://gitlab.gnome.org/GNOME/gtk/-/issues/6080

from nicotine-plus.

Latecomerr avatar Latecomerr commented on May 26, 2024

I think, unless something else happens, this might actually be the "unpredictable" cause of my initial report because I was just not expecting monitor unplugs to kill applications

I'll keep launching in a cmd window and seeing if something else happens

from nicotine-plus.

slook avatar slook commented on May 26, 2024

It might be triggered not only by unplugging the monitor, but also by power saving and other events.

Perhaps there might also be some events logged about it in the Windows Event Viewer.

from nicotine-plus.

Latecomerr avatar Latecomerr commented on May 26, 2024

It might be triggered not only by unplugging the monitor, but also by power saving and other events.

Perhaps there might also be some events logged about it in the Windows Event Viewer.

Feel free to let me know what exactly I'm supposed to click and report in the event viewer and I'll provide relevant things if they're there

from nicotine-plus.

slook avatar slook commented on May 26, 2024

Not sure exactly. It will just be any relevant looking Warning or Information system/application administrative events with timestamps that coincide with when the crash occurs. There may of course be none, and the Windows NT kernel event logger is prone to producing unhelpful garbage.

Reported upstream: https://gitlab.gnome.org/GNOME/gtk/-/issues/6080

added GdkMonitor label

from nicotine-plus.

Latecomerr avatar Latecomerr commented on May 26, 2024

Error

\lib\libgobject-2.0-0.dll, Version: 2.76.4.0, exception code 0xc0000005

2 seconds later, APPCRASH and error

\lib\libgobject-2.0-0.dll, Version: 2.76.4.0, exception code 0xc000041d

1 second later, APPCRASH

from nicotine-plus.

mathiascode avatar mathiascode commented on May 26, 2024

Should be fixed in the latest development build.

from nicotine-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.