Dolphin freezing when opening a folder with json files.  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
gGord
Posts: 26
Joined: Sun Mar 12, 2023 11:29 am

Dolphin freezing when opening a folder with json files.

#1 Post by gGord »

• the problem happens whenever I try to enter a folder with json files
• Dolphin freezes. left overnight, still frozen
• PCManFM closes. no error message
• Midnight Commander can open the folders and open the file for viewing
• found this topic, viewtopic.php?p=770645#p770645 in the forums
• I read all the posts and followed some of the links and read those posts as well
• I followed some of the steps described in various posts, didn't keep a record though, :frown:
• I think that the json files seem to be the problem
• I followed this link, https://forum.xfce.org/viewtopic.php?id=17257, and noticed that the problem seems to have been identified and a solution proposed.
• the instructions found there are above my technical skill level, I consider myself knowledgeable enough to break things but not skilled enough to fix them :bagoverhead:
• I am hoping that someone more skilled than I am can have a look and see if this might solve this problem.
• The problem is happening on my desktop, info below and laptop. Both have the same version of MX Linux.

Cheers,
Gord

Code: Select all

System:
  Kernel: 6.1.0-17-amd64 [6.1.69-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-17-amd64 root=UUID=<filter> ro quiet splash
  Desktop: KDE Plasma v: 5.27.5 wm: kwin_x11 vt: 7 dm: SDDM Distro: MX-23.5_KDE_x64 Libretto
    January 21 2024 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop System: Gigabyte product: Z590 AORUS PRO AX v: -CF serial: <superuser required>
  Mobo: Gigabyte model: Z590 AORUS PRO AX serial: <superuser required> UEFI: American Megatrends
    LLC. v: F9 date: 03/10/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech M720 Triathlon Multi-Device Mouse serial: <filter>
    charge: 55% (should be ignored) rechargeable: yes status: discharging
CPU:
  Info: model: 11th Gen Intel Core i7-11700K bits: 64 type: MT MCP arch: Rocket Lake gen: core 11
    level: v4 note: check built: 2021+ process: Intel 14nm family: 6 model-id: 0xA7 (167) stepping: 1
    microcode: 0x62
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache: L1: 640 KiB
    desc: d-8x48 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 16 MiB desc: 1x16 MiB
  Speed (MHz): avg: 1823 high: 4900 min/max: 800/4900:5000 scaling: driver: intel_pstate
    governor: powersave cores: 1: 4900 2: 4900 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 9: 4900
    10: 800 11: 800 12: 800 13: 800 14: 4881 15: 800 16: 800 bogomips: 115200
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: SW
    sequence
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel RocketLake-S GT1 [UHD Graphics 750] vendor: Gigabyte driver: i915 v: kernel
    arch: Gen-12.1 process: Intel 10nm built: 2020-21 ports: active: DP-1 empty: HDMI-A-1
    bus-ID: 00:02.0 chip-ID: 8086:4c8a class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: kwin_x11 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00") s-diag: 777mm (30.58")
  Monitor-1: DP-1 model: Dell U2717D serial: <filter> built: 2019 res: 2560x1440 hz: 60 dpi: 109
    gamma: 1.2 size: 597x336mm (23.5x13.23") diag: 685mm (27") ratio: 16:9 modes: max: 2560x1440
    min: 720x400
  API: OpenGL v: 4.6 Mesa 24.2.2-1~mx23ahs renderer: Mesa Intel Graphics (RKL GT1)
    direct-render: Yes
Audio:
  Device-1: Intel Tiger Lake-H HD Audio vendor: Gigabyte driver: snd_hda_intel bus-ID: 1-2:2
    v: kernel chip-ID: 0414:a00e alternate: snd_sof_pci_intel_tgl class-ID: 0300 bus-ID: 00:1f.3
    chip-ID: 8086:43c8 class-ID: 0403
  Device-2: Giga-Byte USB Audio type: USB driver: hid-generic,snd-usb-audio,usbhid
  API: ALSA v: k6.1.0-17-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Ethernet I225-V vendor: Gigabyte driver: igc v: kernel pcie: gen: 2 speed: 5 GT/s
    lanes: 1 port: N/A bus-ID: 06:00.0 chip-ID: 8086:15f3 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel modules: wl pcie: gen: 2 speed: 5 GT/s
    lanes: 1 bus-ID: 07:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlan0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-14:10 chip-ID: 8087:0029
    class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter> bt-v: 3.0 lmp-v: 5.2
    sub-v: 2184 hci-v: 5.2 rev: 2184
  Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff link-mode: peripheral accept
    service-classes: rendering, capturing, object transfer, audio, telephony
Drives:
  Local Storage: total: 17.28 TiB used: 7.22 TiB (41.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:9 vendor: Western Digital model: WD BLACK SN850X 4000GB
    size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: 624361WD temp: 52.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:10 vendor: Western Digital model: WD BLACK SN850X 4000GB
    size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: 624361WD temp: 49.9 C scheme: GPT
  ID-3: /dev/nvme2n1 maj-min: 259:0 vendor: Western Digital model: WDS100T3X0C-00SJG0
    size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: 111110WD temp: 43.9 C scheme: GPT
  ID-4: /dev/sda maj-min: 8:0 vendor: Western Digital model: WDS200T2B0A size: 1.82 TiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 90WD
    scheme: GPT
  ID-5: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD40EZRZ-19GXCB0 size: 3.64 TiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 0A80 scheme: GPT
  ID-6: /dev/sdc maj-min: 8:32 vendor: Western Digital model: WD30EFRX-68EUZN0 size: 2.73 TiB
    block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 0A82 scheme: GPT
  ID-7: /dev/sdd maj-min: 8:48 vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 2B6Q
    scheme: GPT
  ID-8: /dev/sde maj-min: 8:64 vendor: Samsung model: SSD 870 EVO 500GB size: 465.76 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 2B6Q
    scheme: GPT
Partition:
  ID-1: / raw-size: 128.25 GiB size: 125.18 GiB (97.60%) used: 25.14 GiB (20.1%) fs: ext4
    dev: /dev/nvme2n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) used: 40.4 MiB (42.1%) fs: vfat
    dev: /dev/nvme2n1p1 maj-min: 259:1
  ID-3: /home raw-size: 297.33 GiB size: 291.61 GiB (98.07%) used: 85.9 GiB (29.5%) fs: ext4
    dev: /dev/nvme2n1p6 maj-min: 259:6
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 32 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/nvme2n1p7
    maj-min: 259:7
Sensors:
  System Temperatures: cpu: 34.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: 3389 pm: dpkg pkgs: 3368 libs: 2008 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 21
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/dropbox.list
    1: deb [arch=i386,amd64 signed-by=/etc/apt/keyrings/dropbox.asc] http://linux.dropbox.com/debian bookworm main
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mxrepo.com/mx/repo/ bookworm main non-free
    2: deb http://mxrepo.com/mx/repo/ bookworm ahs
  Active apt repos in: /etc/apt/sources.list.d/nordvpn.list
    1: deb https://repo.nordvpn.com/deb/nordvpn/debian/ stable main
  No active apt repos in: /etc/apt/sources.list.d/tonfotos.list
  Active apt repos in: /etc/apt/sources.list.d/winehq-bookworm.sources
    1: deb [arch=amd64 i386] https://dl.winehq.org/wine-builds/debian bookworm main
Info:
  Processes: 360 Uptime: 5h 55m wakeups: 6 Memory: 31.14 GiB used: 4.4 GiB (14.1%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI

User avatar
CharlesV
Global Moderator
Posts: 7313
Joined: Sun Jul 07, 2019 5:11 pm

Re: Dolphin freezing when opening a folder with json files.

#2 Post by CharlesV »

please do the following in a terminal window and past the results:

Code: Select all

xdg-mime query default application/json

*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
gGord
Posts: 26
Joined: Sun Mar 12, 2023 11:29 am

Re: Dolphin freezing when opening a folder with json files.

#3 Post by gGord »

Here are the results.

org.kde.kate.desktop

User avatar
CharlesV
Global Moderator
Posts: 7313
Joined: Sun Jul 07, 2019 5:11 pm

Re: Dolphin freezing when opening a folder with json files.

#4 Post by CharlesV »

ok, so Use kwrite to edit the following file:

Code: Select all

~/.config/mimeapps.list

Remove the line with
application/json=.....

it should be under Default application like this

Code: Select all

[Default Applications]
application/json=org.kde.kwrite.desktop;

Save the file and logout and back in, or reboot.

Normally, you should be able to Right click on a file and then choose Open With... Check the box for always use this application, and then in this case choose KWrite .. but if you cant GET to the point of right clicking, then the above should work .
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
gGord
Posts: 26
Joined: Sun Mar 12, 2023 11:29 am

Re: Dolphin freezing when opening a folder with json files.

#5 Post by gGord »

that entry is missing

User avatar
CharlesV
Global Moderator
Posts: 7313
Joined: Sun Jul 07, 2019 5:11 pm

Re: Dolphin freezing when opening a folder with json files.

#6 Post by CharlesV »

K.. lets try this then.. to my knowledge these are all the places that it might be in:

.config/kde-mimeapps.list
.config/mimeapps.list
/etc/xdg/kde-mimeapps.list
/etc/xdg/mimeapps.list
/usr/share/applications/mimeapps.list

On a test KDE system that was where the entry that was created, so take a look at all of those files and see if you see ANY application/json reference.

And if you cannot find ANY json reference in them... then lets create one in

~/.config/mimeapps.list

and it should be under a [Default Applications] AND an [Added Associations] sections, and the entry should be like this (note - this is starting with an empty file.. so your mimeapps.list may have other entries - If it does, then create the json key, but not the Added / Default sections - you should only have one of each of those. )

Code: Select all

[Added Associations]
application/json=org.kde.kwrite.desktop;

[Default Applications]
application/json=org.kde.kwrite.desktop;

*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

User avatar
gGord
Posts: 26
Joined: Sun Mar 12, 2023 11:29 am

Re: Dolphin freezing when opening a folder with json files.

#7 Post by gGord »

So far:

• I found a file rootMX23/ect/mime.types with the following entry, application/json json, many other entries in the file refer to json files. The file is identified as a MATLAB file.
• The /etc/xdg/kde-mimeapps.list file has no json reference.
• /etc/xdg/mimeapps.list does not exist.
• /usr/share/applications/mimeapps.list does not exist, /usr/share/applications/mimeinfo.cache exists but has no reference to json.
• /usr/share/mime folder exists and the /usr/share/mime/application folder contains a json.xml file. There are 2 other files refering to json in that folder.
• Another folder /usr/share/mime-info contains no reference to json.

User avatar
gGord
Posts: 26
Joined: Sun Mar 12, 2023 11:29 am

Re: Dolphin freezing when opening a folder with json files.

#8 Post by gGord »

I followed the instructions you posted above then rebooted. The outcome is the same, Dolphin freezes whenever I open a folder with a json file. :bawling:

I really appreciate the assistance you have given CharlesV but I have to sign off for the night. My wife requires some attention, I better keep her happy.

Thanks,
Gord

User avatar
CharlesV
Global Moderator
Posts: 7313
Joined: Sun Jul 07, 2019 5:11 pm

Re: Dolphin freezing when opening a folder with json files.

#9 Post by CharlesV »

No worries, I will do some more research on it
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

ceejayemm
Posts: 26
Joined: Sun Jul 31, 2022 5:06 am

Re: Dolphin freezing when opening a folder with json files.

#10 Post by ceejayemm »

@gGord

I think you might have already seen my similar topic to this at: viewtopic.php?p=773301#p773301

As you will see from this topic there were several ideas at the time relating to the content of the json files I was trying to open but in the end I think this was a red herring. I never got a definitive conclusion to this problem but found that if I copied the mime files to a new folder, before removing them, the system then recreates the relevant files when it needs them. I had this same problem on my XFCE laptop and my KDE Plasma desktop both running various variants of MX-23. The commands I ended up using were:

cp -rv ~/.local/share/mime/ mime_data/OLD/mime
rm -R ~/.local/share/mime/

so I had a copy of the old files before they were removed. I still need to do this on occasion as I have not found what causes it to happen.

Good luck

Chris

Post Reply

Return to “MX Help”