[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-21 Thread Colomban Wendling via Github-comments
FWIW, it *is* enough to change the output of `glxinfo`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2122562997
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-21 Thread elextr via Github-comments
¯\\_(ツ)_/¯

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2122555486
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-21 Thread Colomban Wendling via Github-comments
…and no crashes either with 1.39 at a random commit with Compiz under Debian 
Buster.

So either those don't reproduce the issue, or simply setting 
`XLIB_SKIP_ARGB_VISUALS=1` for the Geany process isn't enough to cause the 
issue.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2122547710
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-21 Thread Colomban Wendling via Github-comments
Possibly, but I just tried enabling Metacity's compositor (xrender) with no 
crashes either.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2122542648
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-21 Thread elextr via Github-comments
> non-composited Metacity WM under MATE

Doesn't that setting relate to composited WMs?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2122536891
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-21 Thread Colomban Wendling via Github-comments
FWIW I just tested, I can't reproduce the crash simply by setting 
`XLIB_SKIP_ARGB_VISUALS=1` on my machine (Debian Bookworm, non-composited 
Metacity WM under MATE -- weird setup you say? bah :grin:)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2122523900
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-21 Thread elextr via Github-comments
I dunno, thats what came up related to `XLIB_SKIP_ARGB_VISUALS`, anyway not 
worth learning now, Wayland is the future.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2121988695
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-21 Thread Colomban Wendling via Github-comments
@elextr I wouldn't trust X11R6 release notes on this :). It possibly was not 
useful back then, but it seems useful for transparency in apps.
Then again I might lack knowledge on this, but it seems to be the generally 
accepted idea.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2121940052
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-20 Thread elextr via Github-comments
> but they all seem to handle the case the visual isn't found

Its not that it isn't found, its that apps (and that includes GTK) are not 
supposed to use them even if they do exist, from my link above "Most X 
applications ignore this visual since it is not useful to them; however some 
applications mistakenly try to use it, which will cause them to fail. "


-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2121611067
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-20 Thread Colomban Wendling via Github-comments
> Sounds like its GTK thats misusing the visuals since its not just Geany thats 
> affected.

Well, it could be that several apps don't properly check the presence of RGBA 
visuals and just assume they work.  But indeed in Geany and Scintilla I don't 
see any obvious match.  In GTK there are a few, but they all seem to handle the 
case the visual isn't found, and none seem related to selection, so I wouldn't 
think it's the issue.
Maybe another library like VTE?  Or indeed a bug in any of the component that 
is more subtle than just not checking the visual is NULL, I didn't check the 
actual code looking up the visual, and I probably wouldn't see the issue just 
looking at it anyway.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2120724784
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-20 Thread elextr via Github-comments
Sounds like its GTK thats misusing the visuals since its not just Geany thats 
affected.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2120445875
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-20 Thread Colomban Wendling via Github-comments
@felixzng cool, that's also instructive and might allow to actually fix it. No 
guarantee, but at least we've got an idea where to look (unchecked usage of 
ARGB visuals)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2120427383
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-05-20 Thread FxZng via Github-comments
Finally was able to track this down to env var XLIB_SKIP_ARGB_VISUALS=1.  This 
caused crashes for some gtk based apps like geany, pluma  etc...   unsettling 
it works.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2120393166
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-21 Thread Colomban Wendling via Github-comments
didn't you have a fresh install before already?  Not sure, but maybe your 
hardware (hard drive maybe) is faulty?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2068206133
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-21 Thread Colomban Wendling via Github-comments
Closed #3843 as completed.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#event-12552031399
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-21 Thread FxZng via Github-comments
Thank you. I have decided to take an easy way out and do fresh install. All 
works now. Cheers.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2068202888
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-21 Thread Colomban Wendling via Github-comments
>From looking at the backtrace and the relevant GTK source code, this seems 
>entirely unrelated to Geany itself (apart for Geany using GTK3, that is).  It 
>looks like either there is a bug in your `XVisualIDFromVisual()` (which could 
>come from a driver bug maybe?), or a bug in GTK on how it uses this API (one 
>interesting thing could be whether the parameter to `XVisualIDFromVisual()` is 
>`NULL` or invalid memory -- you could probably figure this out with debugging 
>information for those libraries).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2068179321
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-16 Thread elextr via Github-comments
There are some reports of weirdnesses with XWayland and GTK, which have been 
fixed by running Geany as Wayland as I mentioned.  But havn't had any reports 
that can be traced to real xorg and GTK (that my quick search on Geany issues 
found anyway), and it is just fine on my Linux Mint (which is based on Ubuntu).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2058962271
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-16 Thread FxZng via Github-comments
Looks like this it is not new issue. First reported 2 year back on Fedora 
thread. Probably not geany specific, but some odd interaction between gdk3 and 
x11


-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2058934069
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-16 Thread FxZng via Github-comments
Thanks I will give at shot. My current default backed is x11

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2058915676
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-16 Thread elextr via Github-comments
Sounds like something is wrong with your brand new Ubuntu.  

Are you running Wayland? If so try `GDK_BACKEND=wayland geany`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2058899522
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-16 Thread FxZng via Github-comments
I have also built current geany 2.0. It runs with same outcome (.i.e crashes 
when attempting to select any text)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-205841
You are receiving this because you are subscribed to this thread.

Message ID: 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-16 Thread FxZng via Github-comments
This is geany 1.38
Below is complete debug log 


GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from geany...
(No debugging symbols found in geany)
Starting program: /usr/bin/geany -v
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
(geany:843195): GLib-GIO-DEBUG: 07:38:44.497: _g_io_module_get_default: Found 
default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
(geany:843195): dconf-DEBUG: 07:38:44.497: watch_fast: 
"/org/appmenu/gtk-module/" (establishing: 0, active: 0)
[New Thread 0x74dff640 (LWP 843202)]
[New Thread 0x7fffe640 (LWP 843203)]
(geany:843195): dconf-DEBUG: 07:38:44.499: unwatch_fast: 
"/org/appmenu/gtk-module/" (active: 0, establishing: 1)
[New Thread 0x7fffef7fe640 (LWP 843204)]
(geany:843195): dconf-DEBUG: 07:38:44.504: watch_established: 
"/org/appmenu/gtk-module/" (establishing: 0)
(geany:843195): GLib-GIO-DEBUG: 07:38:44.527: _g_io_module_get_default: Found 
default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
(geany:843195): dconf-DEBUG: 07:38:44.551: watch_fast: 
"/org/appmenu/gtk-module/" (establishing: 0, active: 0)
(geany:843195): dconf-DEBUG: 07:38:44.551: unwatch_fast: 
"/org/appmenu/gtk-module/" (active: 0, establishing: 1)
[New Thread 0x7fffeeffd640 (LWP 843205)]
(geany:843195): dconf-DEBUG: 07:38:44.552: watch_established: 
"/org/appmenu/gtk-module/" (establishing: 0)
Geany-INFO: 07:38:44.557: Geany 1.38, en_US.UTF-8
Geany-INFO: 07:38:44.557: GTK 3.24.33, GLib 2.72.4
Geany-INFO: 07:38:44.557: OS: Ubuntu 22.04.4 LTS (jammy)
Geany-INFO: 07:38:44.557: System data dir: /usr/share/geany
Geany-INFO: 07:38:44.557: User config dir: /home/felix/.config/geany
[New Thread 0x7fffee7fc640 (LWP 843206)]
[Thread 0x7fffee7fc640 (LWP 843206) exited]
[New Thread 0x7fffee7fc640 (LWP 843207)]
[New Thread 0x7fffedffb640 (LWP 843208)]
[Thread 0x7fffee7fc640 (LWP 843207) exited]
[New Thread 0x7fffedffb640 (LWP 843209)]
[Thread 0x7fffedffb640 (LWP 843208) exited]
[New Thread 0x7fffee7fc640 (LWP 843210)]
[Thread 0x7fffedffb640 (LWP 843209) exited]
[New Thread 0x7fffedffb640 (LWP 843211)]
[Thread 0x7fffee7fc640 (LWP 843210) exited]
[New Thread 0x7fffee7fc640 (LWP 843212)]
[Thread 0x7fffedffb640 (LWP 843211) exited]
[Thread 0x7fffee7fc640 (LWP 843212) exited]
Geany-INFO: 07:38:44.668: Loaded GTK+ CSS theme '/usr/share/geany/geany.css'
Geany-INFO: 07:38:44.669: Loaded GTK+ CSS theme 
'/usr/share/geany/geany-3.20.css'
Geany-INFO: 07:38:44.673: System plugin path: /usr/lib/x86_64-linux-gnu/geany
Geany-INFO: 07:38:44.680: Added filetype Scala (64).
Geany-INFO: 07:38:44.680: Added filetype Cython (65).
Geany-INFO: 07:38:44.680: Added filetype Swift (66).
Geany-INFO: 07:38:44.680: Added filetype Graphviz (67).
Geany-INFO: 07:38:44.680: Added filetype Groovy (68).
Geany-INFO: 07:38:44.680: Added filetype Genie (69).
Geany-INFO: 07:38:44.680: Added filetype JSON (70).
Geany-INFO: 07:38:44.680: Added filetype Arduino (71).
Geany-INFO: 07:38:44.680: Added filetype Meson (72).
Geany-INFO: 07:38:44.680: Added filetype Clojure (73).
Geany-INFO: 07:38:44.680: Added filetype Kotlin (74).
Geany-INFO: 07:38:44.680: Added filetype CUDA (75).
Geany-INFO: 07:38:44.680: Added filetype Nim (76).
Geany-INFO: 07:38:44.680: Added filetype TypeScript (77).
Geany-INFO: 07:38:44.753: Loaded libvte from libvte-2.91.so.0
Geany-INFO: 07:38:44.764: Loaded:   
/usr/lib/x86_64-linux-gnu/geany/splitwindow.so (Split Window)
[New Thread 0x7fffee7fc640 (LWP 843213)]
[New Thread 0x7fffedffb640 (LWP 843214)]
[Thread 0x7fffee7fc640 (LWP 843213) exited]
[New Thread 0x7fffee7fc640 (LWP 843215)]
[New Thread 0x7fffed250640 (LWP 843216)]
[Thread 0x7fffedffb640 (LWP 843214) exited]
[Thread 0x7fffee7fc640 (LWP 843215) exited]
Geany-INFO: 07:38:44.776: unknown : None (UTF-8)
[Thread 0x7fffed250640 (LWP 843216) exited]
[New Thread 0x7fffed250640 (LWP 843217)]
[New Thread 0x7fffee7fc640 (LWP 843218)]
[Thread 0x7fffee7fc640 (LWP 843218) exited]
[Thread 0x7fffed250640 (LWP 843217) exited]
[New Thread 0x7fffed250640 (LWP 843219)]
[New Thread 0x7fffee7fc640 (LWP 843220)]
[Thread 0x7fffed250640 (LWP 843219) exited]
[Thread 0x7fffee7fc640 (LWP 843220) exited]
[New Thread 0x7fffee7fc640 (LWP 843221)]
[New Thread 0x7fffed250640 (LWP 843222)]
[Thread 

[Github-comments] Re: [geany/geany] geany crashes on ubuntu/mate 22.04 when attempting to select text (Issue #3843)

2024-04-16 Thread elextr via Github-comments
Its hard to say anything except that the problem occurs inside the X11 library 
called from GDK called from GTK during the initialisation of the displays 
called from Geany at line `#11`.  We don't even know the version of Geany.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3843#issuecomment-2058841903
You are receiving this because you are subscribed to this thread.

Message ID: