Manjaro crashes when Matlab crash

Hello everyone. I’m using Manjaro KDE Plasma on a Surface Pro 6. When running Matlab R2022a with some applications and graphics, it crash, “dragging” plasma. I can´t open Matlab again, or use plasmashell. The only solutions is hardreset. Unfortunately, i can’t open KSystemLog after this (I don´t know why, but probably because plasmashell crashed)

My system spec are:

System:
  Kernel: 5.17.9-arch1-2-surface arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-linux-surface
    root=UUID=b4c8867a-3611-4dae-850a-0b95dea4a771 rw quiet
    resume=UUID=2187ffde-7598-40cb-bb7a-e8eaa46f8c74 udev.log_priority=3
  Desktop: KDE Plasma v: 5.24.5 tk: Qt v: 5.15.4 wm: kwin_wayland vt: 2
    dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Microsoft product: Surface Pro 6
    v: D:0B:13F:5C:10P:38S:01E:0 serial: <superuser required> Chassis: type: 9
    serial: <superuser required>
  Mobo: Microsoft model: Surface Pro 6 serial: <superuser required>
    UEFI: Microsoft v: 234.2706.768 date: 04/18/2019
Battery:
  ID-1: BAT1 charge: 39.1 Wh (95.1%) condition: 41.1/45.0 Wh (91.2%)
    volts: 8.7 min: 7.6 model: SMP M1009169 type: Li-ion serial: <filter>
    status: charging cycles: 545
  Device-1: hid-34:88:5d:c8:64:a2-battery model: Keyboard K380 serial: N/A
    charge: N/A status: discharging
Memory:
  RAM: total: 7.69 GiB used: 3.68 GiB (47.8%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i5-8250U bits: 64 type: MT MCP arch: Coffee Lake
    family: 6 model-id: 0x8E (142) stepping: 0xA (10) microcode: 0xF0
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 698 high: 700 min/max: 400/3400 scaling:
    driver: intel_pstate governor: powersave cores: 1: 691 2: 700 3: 700 4: 700
    5: 700 6: 700 7: 700 8: 700 bogomips: 28808
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush clflushopt
    cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts
    epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr
    ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid
    invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr
    nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln
    pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep smap
    smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow
    tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave
    xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  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: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: Microsoft driver: i915 v: kernel
    ports: active: HDMI-A-1,eDP-1 empty: DP-1,DP-2,HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:5917 class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.3 with: Xwayland v: 22.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting
    alternate: fbdev,vesa gpu: i915 d-rect: 3483x2122 display-ID: 0
  Monitor-1: HDMI-A-1 pos: primary,top-left res: 1920x1080 size: N/A
    modes: N/A
  Monitor-2: eDP-1 pos: bottom-r res: 1563x1042 size: N/A modes: N/A
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 22.0.4
    direct render: Yes
Audio:
  Device-1: Intel Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Imaging
  Unit
    driver: ipu3-imgu alternate: ipu3_imgu bus-ID: 00:05.0 chip-ID: 8086:1919
    class-ID: 0480
  Device-2: Intel CSI-2 Host driver: ipu3-cio2 alternate: ipu3_cio2
    bus-ID: 00:14.3 chip-ID: 8086:9d32 class-ID: 0480
  Device-3: Intel Sunrise Point-LP HD Audio driver: snd_hda_intel v: kernel
    alternate: snd_soc_skl bus-ID: 00:1f.3 chip-ID: 8086:9d71 class-ID: 0403
  Sound Server-1: ALSA v: k5.17.9-arch1-2-surface running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Marvell 88W8897 [AVASTAR] 802.11ac Wireless driver: mwifiex_pcie
    v: 1.0 pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 01:00.0
    chip-ID: 11ab:2b38 class-ID: 0200
  IF: wlp1s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8152 Fast Ethernet Adapter type: USB driver: r8152
    bus-ID: 1-1.3:4 chip-ID: 0bda:8152 class-ID: 0000 serial: <filter>
  IF: enp0s20f0u1u3 state: up speed: 100 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  IF-ID-1: virbr0 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  IF-ID-2: virbr1 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  WAN IP: <filter>
Bluetooth:
  Device-1: Marvell Bluetooth and Wireless LAN Composite type: USB
    driver: btusb v: 0.8 bus-ID: 1-5:6 chip-ID: 1286:204c class-ID: e001
    serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 238.49 GiB used: 144.83 GiB (60.7%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: BC501 NVMe 128GB
    size: 119.24 GiB block-size: physical: 512 B logical: 512 B speed: 15.8 Gb/s
    lanes: 2 type: SSD serial: <filter> rev: 80000C00 temp: 35.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 type: USB vendor: Generic model: SD MMC
    size: 119.25 GiB block-size: physical: 512 B logical: 512 B type: SSD
    serial: <filter> rev: 1.00 scheme: MBR
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 110.15 GiB size: 107.86 GiB (97.92%)
    used: 66.06 GiB (61.2%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: b4c8867a-3611-4dae-850a-0b95dea4a771
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: NO_LABEL uuid: F052-A249
  ID-3: /home/<filter>/pCloudDrive raw-size: N/A size: 7 GiB
    used: 3.66 GiB (52.4%) fs: fuse source: ERR-102
  ID-4: /run/media/jose-tomas/disk raw-size: 119.23 GiB
    size: 119.22 GiB (99.99%) used: 75.11 GiB (63.0%) fs: exfat dev: /dev/sda1
    maj-min: 8:1 label: N/A uuid: N/A
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p3 maj-min: 259:3 label: swap
    uuid: 2187ffde-7598-40cb-bb7a-e8eaa46f8c74
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Genesys Logic Hub ports: 4 rev: 2.1 speed: 480 Mb/s
    power: 100mA chip-ID: 05e3:0610 class-ID: 0900
  Device-1: 1-1.3:4 info: Realtek RTL8152 Fast Ethernet Adapter
    type: Network driver: r8152 interfaces: 1 rev: 2.1 speed: 480 Mb/s
    power: 100mA chip-ID: 0bda:8152 class-ID: 0000 serial: <filter>
  Device-2: 1-1.4:5 info: Genesys Logic SD Card Reader and Writer
    type: Mass Storage driver: usb-storage interfaces: 1 rev: 2.1
    speed: 480 Mb/s power: 500mA chip-ID: 05e3:0749 class-ID: 0806
    serial: <filter>
  Device-3: 1-5:6 info: Marvell Bluetooth and Wireless LAN Composite
    type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 480 Mb/s
    power: 500mA chip-ID: 1286:204c class-ID: e001 serial: <filter>
  Device-4: 1-7:3 info: Microsoft Surface Type Cover type: HID
    driver: hid-multitouch,usbhid interfaces: 1 rev: 2.1 speed: 12 Mb/s
    power: 100mA chip-ID: 045e:09c0 class-ID: 0300
  Hub-3: 2-0:1 info: Super-speed hub ports: 6 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Device-1: 2-4:2 info: Microsoft USB3.0 Card Reader type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 3.0 speed: 5 Gb/s power: 800mA
    chip-ID: 045e:0306 class-ID: 0806 serial: <filter>
Sensors:
  System Temperatures: cpu: 39.0 C pch: 34.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 260 Uptime: 15m wakeups: 3 Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: pacman: 1437 lib: 393
  Shell: Zsh v: 5.9 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.16

Matlab crash log says:

--------------------------------------------------------------------------------
                Assertion detected at 2022-05-31 11:06:19 -0400
--------------------------------------------------------------------------------

Configuration:
  Crash Decoding           : Disabled - No sandbox or build area path
  Crash Mode               : continue (default)
  Default Encoding         : UTF-8
  Deployed                 : false
  Desktop Environment      : KDE
  GNU C Library            : 2.35 stable
  Graphics Driver          : Brian Paul Mesa X11 Version 2.1 Mesa 17.1.3
  Graphics card 1          : 0x8086 ( 0x8086 ) 0x5917 Version 0.0.0.0 (0-0-0)
  Java Version             : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
  MATLAB Architecture      : glnxa64
  MATLAB Entitlement ID    : 6257193
  MATLAB Root              : /home/jose-tomas/Matlab/R2022a
  MATLAB Version           : 9.12.0.1884302 (R2022a)
  OpenGL                   : software
  Operating System         : "Manjaro Linux"
  Process ID               : 1451
  Processor ID             : x86 Family 6 Model 142 Stepping 10, GenuineIntel
  Session Key              : 3d271b61-25a5-4d92-9d42-942470ef4fe6
  Window System            : The X.Org Foundation (12201001), display :1

Fault Count: 1


Additional Log Files:
  Java Crash Report        : /home/jose-tomas/hs_error_pid1451.log
  Java Log                 : /home/jose-tomas/java.log.1451


Assertion in void {anonymous}::mwJavaAbort() at javainit.cpp line 1448:
Fatal Java Exception. See this file for details: /home/jose-tomas/hs_error_pid1451.log

Current Thread: 'CrBrowserMain' id 140357882971712

Register State (captured):
  RAX = 00007fa79dc16bb0  RBX = 00007fa86119d698
  RCX = 00007fa79dc17090  RDX = 00007fa8836b1020
  RSP = 00007fa79dc16860  RBP = 00007fa79dc16c40
  RSI = 00007fa883696f9c  RDI = 00007fa79dc16870

   R8 = 0000000000000000   R9 = 00007fa79dc16b50
  R10 = 00007fa73b12b11d  R11 = 0000000000000000
  R12 = 00007fa8836b7228  R13 = 00007fa8836c72a8
  R14 = 00007fa8611a032e  R15 = 00007fa79dc16c70

  RIP = 00007fa8836429fe  EFL = 0000000000000000

   CS = 0000   FS = 0000   GS = 0000

Stack Trace (captured):
[  0] 0x00007fa88368f263 /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libmwfl.so+00655971
[  1] 0x00007fa88368f2bc /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libmwfl.so+00656060 _ZN10foundation4core4diag15stacktrace_base7captureEm+00000028
[  2] 0x00007fa88363f25b /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libmwfl.so+00328283
[  3] 0x00007fa88363f310 /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libmwfl.so+00328464
[  4] 0x00007fa86112e14a /home/jose-tomas/Matlab/R2022a/bin/glnxa64/matlab_startup_plugins/jmi/../../../../bin/glnxa64/libmwjmi.so+01483082
[  5] 0x00007fa80b90e700 /home/jose-tomas/Matlab/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+09496320
[  6] 0x00007fa80b6c573b /home/jose-tomas/Matlab/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+07100219
[  7] 0x00007fa6d7602b77 /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libnativewindow_x11.so+00011127 NativewindowCommon_FatalError+00000268
[  8] 0x00007fa6d76038bd /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libnativewindow_x11.so+00014525
[  9] 0x00007fa86383df93                               /usr/lib/libX11.so.6+00274323 _XIOError+00000099
[ 10] 0x00007fa863841947                               /usr/lib/libX11.so.6+00289095 _XEventsQueued+00000167
[ 11] 0x00007fa86382dcc2                               /usr/lib/libX11.so.6+00208066 XPending+00000098
[ 12] 0x00007fa80a227615                          /usr/lib/libglib-2.0.so.0+00349717 g_main_context_check+00000645
[ 13] 0x00007fa80a27d877                          /usr/lib/libglib-2.0.so.0+00702583
[ 14] 0x00007fa80a2246c5                          /usr/lib/libglib-2.0.so.0+00337605 g_main_context_iteration+00000053
[ 15] 0x00007fa73b099852 /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libcef.so+66500690
[ 16] 0x00007fa73b0daf24 /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libcef.so+66768676
[ 17] 0x00007fa73b0b401e /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libcef.so+66609182
[ 18] 0x00007fa73b029b7d /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libcef.so+66042749
[ 19] 0x00007fa73b12eaa5 /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libcef.so+67111589
[ 20] 0x00007fa88474754d                                 /usr/lib/libc.so.6+00574797
[ 21] 0x00007fa754088a00                                   <unknown-module>+00000000


Assertion in void {anonymous}::mwJavaAbort() at javainit.cpp line 1448:
Fatal Java Exception. See this file for details: /home/jose-tomas/hs_error_pid1451.log

Current Thread: 'MCR 0 interpret' id 140358172145216

Register State (captured):
  RAX = 00007fa7aefdd550  RBX = 00007fa86119d698
  RCX = 00007fa7aefddc10  RDX = 00007fa8836b1020
  RSP = 00007fa7aefdd3e0  RBP = 00007fa7aefdd7c0
  RSI = 00007fa883696f9c  RDI = 00007fa7aefdd3f0

   R8 = 0000000000000000   R9 = 00007fa7aefdd6d0
  R10 = ffffffffffffffff  R11 = ffffffffffffffff
  R12 = 00007fa8836b7228  R13 = 00007fa8836c72a8
  R14 = 00007fa8611a032e  R15 = 00007fa7aefdd7f0

  RIP = 00007fa8836429fe  EFL = 00007fa7c6e39840

   CS = 9494   FS = c6e3   GS = 7fa7

Stack Trace (captured):
[  0] 0x00007fa88368f263 /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libmwfl.so+00655971
[  1] 0x00007fa88368f2bc /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libmwfl.so+00656060 _ZN10foundation4core4diag15stacktrace_base7captureEm+00000028
[  2] 0x00007fa88363f25b /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libmwfl.so+00328283
[  3] 0x00007fa88363f310 /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libmwfl.so+00328464
[  4] 0x00007fa86112e14a /home/jose-tomas/Matlab/R2022a/bin/glnxa64/matlab_startup_plugins/jmi/../../../../bin/glnxa64/libmwjmi.so+01483082
[  5] 0x00007fa80b90e700 /home/jose-tomas/Matlab/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+09496320
[  6] 0x00007fa80b6c573b /home/jose-tomas/Matlab/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+07100219
[  7] 0x00007fa6d7602b77 /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libnativewindow_x11.so+00011127 NativewindowCommon_FatalError+00000268
[  8] 0x00007fa6d76038bd /home/jose-tomas/Matlab/R2022a/bin/glnxa64/libnativewindow_x11.so+00014525
[  9] 0x00007fa86383df93                               /usr/lib/libX11.so.6+00274323 _XIOError+00000099
[ 10] 0x00007fa863841947                               /usr/lib/libX11.so.6+00289095 _XEventsQueued+00000167
[ 11] 0x00007fa86382dc39                               /usr/lib/libX11.so.6+00207929 XEventsQueued+00000089
[ 12] 0x00007fa7c5adf536                                   <unknown-module>+00000000
[ 13] 0x00007fa7c73e7fb4                                   <unknown-module>+00000000
[ 14] 0x00007fa7c5008302                                   <unknown-module>+00000000
[ 15] 0x00007fa7c50007a7                                   <unknown-module>+00000000
[ 16] 0x00007fa80b68839b /home/jose-tomas/Matlab/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06849435
[ 17] 0x00007fa80b685c63 /home/jose-tomas/Matlab/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06839395
[ 18] 0x00007fa80b686227 /home/jose-tomas/Matlab/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+06840871
[ 19] 0x00007fa80b6f239c /home/jose-tomas/Matlab/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+07283612
[ 20] 0x00007fa80ba7b9eb /home/jose-tomas/Matlab/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+10992107
[ 21] 0x00007fa80ba7bcf1 /home/jose-tomas/Matlab/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+10992881
[ 22] 0x00007fa80b90d8c2 /home/jose-tomas/Matlab/R2022a/sys/java/jre/glnxa64/jre/lib/amd64/server/libjvm.so+09492674
[ 23] 0x00007fa88474754d                                 /usr/lib/libc.so.6+00574797
[ 24] 0x00007fa8847ccb14                                 /usr/lib/libc.so.6+01121044 clone+00000068

java log says:

  Operating System: Linux 5.17.9-arch1-2-surface #1 SMP PREEMPT Wed, 25 May 2022 15:31:19 +0000 x86_64
  Processor ID:     Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
  Host Name:        manjaro
FATAL ERROR in native method: Nativewindow X11 IOError: Display 0x7fa76c632550 (:1): Resource temporarily unavailable
	at sun.awt.X11.XlibWrapper.XEventsQueued(Native Method)
	at sun.awt.X11.XToolkit.run(XToolkit.java:571)
	at sun.awt.X11.XToolkit.run(XToolkit.java:538)
	at java.lang.Thread.run(Thread.java:748)
FATAL ERROR in native method: Nativewindow X11 IOError: Display 0x7fa75cd781c0 (:1): Resource temporarily unavailable