Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-01-31 14:41:46

raphael
Member
Registered: 2024-01-31
Posts: 2

FileChooser crashes when folder has json/js files

This is beyond weird. Since last week I've noticed that if I tried to open Thunar or the file selection dialog on the browser, it would crash immediately if the folder had any json file.

It's not likely a file extension issue because if I rename the file to txt or yml, it works. It also works if the file is empty. It seems it only segfaults when the it tries to read a file with json content. It also opens without any problem if I open as root.

I was on Debian 11 and XFCE 4.16. Upgrading to Debian 12 and XFCE 4.18 did not solve the issue.

What could be possibly the issue here? I can post a trace if needed.

Offline

#2 2024-01-31 17:46:12

raphael
Member
Registered: 2024-01-31
Posts: 2

Re: FileChooser crashes when folder has json/js files

More information from syslog: When I try to open thunar with the json file, I get::

systemd[2371]: Started tumblerd.service - Thumbnailing service.
kernel: [181192.926033] thunar[2367673]: segfault at 7ffdb8fcafe8 ip 00007f5b0066c9d9 sp 00007ffdb8fcaff0 error 6 in libgio-2.0.so.0.7400.6[7f5b00566000+10c000] likely on CPU 6 (core 6, socket 0)

When I open the File Picker from the browser and select a folder with a json file, it crashes and syslog shows:

systemd[2371]: xdg-desktop-portal-gtk.service: Failed with result 'signal'.
xdg-desktop-por[3488]: Backend call failed: Message recipient disconnected from message bus without replying
kernel: [182309.317029] pool-xdg-deskto[2382065]: segfault at 7f3fa43fdff0 ip 00007f3fa7733d95 sp 00007f3fa43fdff0 error 6 in libgio-2.0.so.0.7400.6[7f3fa762e000+10c000] likely on CPU 13 (core 3, socket 0)

So it seems that in both cases it has something to do with libgio, but searching for it does not show anything recent.

Offline

#3 2024-01-31 23:54:06

chang-zhao
Member
Registered: 2023-11-20
Posts: 35

Re: FileChooser crashes when folder has json/js files

If it's a bug related to thumbnailer, here's one possible place to discuss it (and there might be somehow similar issues):
https://gitlab.xfce.org/xfce/tumbler/-/issues
Sorry, I don't know more.

Offline

#4 2024-02-01 03:51:19

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,006

Re: FileChooser crashes when folder has json/js files

raphael wrote:

It's not likely a file extension issue because if I rename the file to txt or yml, it works. It also works if the file is empty. It seems it only segfaults when the it tries to read a file with json content. It also opens without any problem if I open as root.

Can you run the following commands as both user and as root and post back the outputs:

xdg-mime query default application/json
file -i /path/to/a/json/file.json

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB