Closed Toasterson closed 8 months ago
Unable to find default local file monitor type
This is GIO, probably because it lacks the right extension.
The system monitory bug is that it doesn't handle that gracefully, and lets the exception slip. But is it expected your GIO doesn't have file monitoring support? I'm afraid there might be a lot of apps out there that don't properly handle this edge case :)
Ah, thanks thats a good pointer.
I can't find a eventport(https://illumos.org/man/3C/port_create) implementation and our inotify implementation is only available in a fork of the kernel and not the main branch. So yes it seems for files we are expected to not have file monitor.
That's probably something you'd want to come around to fix.
Anyway, you can try this minimal (untested) patch that should prevent the crash, although it'd probably be better to show that monitoring wont work in addition to not enable it.
diff --git a/src/procman-app.cpp b/src/procman-app.cpp
index 7724a4c..b4c6742 100644
--- a/src/procman-app.cpp
+++ b/src/procman-app.cpp
@@ -27,7 +27,14 @@ init_volume_monitor(ProcData *procdata)
using namespace Gio;
using namespace Glib;
- RefPtr<VolumeMonitor> monitor = VolumeMonitor::get();
+ RefPtr<VolumeMonitor> monitor;
+
+ try {
+ monitor = VolumeMonitor::get();
+ } catch (const Glib::Error& ex) {
+ g_warning("Failed to setup mount point monitor: %s", ex.what().c_str());
+ return;
+ }
monitor->signal_mount_added().connect(sigc::ptr_fun(&mount_changed));
monitor->signal_mount_changed().connect(sigc::ptr_fun(&mount_changed));
We recently integrated a PR to add Event port support to glib via gaming. I'll have to check with glib what the support status of gaming is but for now it work :) Thanks for all the pointers and help.
Hello mate devs.
On OpenIndiana we currently have a bug with mate-system-monitor
We can reproduce this on multiple machines and it prevents mate-system-monitor from starting.
Expected behaviour
System Monitor starting
Actual behaviour
Segfault and coredump with the following details:
Console:
mdb (gdb equivalent)
Steps to reproduce the behaviour
Start Mate-system-monitor
MATE general version
1.26
Package version
pkg:/desktop/system-monitor/mate-system-monitor@1.26.0
Linux Distribution
OpenIndiana (SunOS descendant and illumos distribution) on the heritage line of OpenIndiana
Link to bugreport of your Distribution (requirement)
https://www.illumos.org/issues/16409
Additional Info
If any filesystem polling mechanisms got removed since mate 1.21 this could be the issue since we do have epoll and inotify but maybe the build disables it. I can't track it down to the exact cause so any hints on how to narrow this bug to a subsystem or something missing would be appreciated.