Segfault with pyroot and matplotlib


ROOT Version: 6.40.02
Platform: Arch Linux (root distro package)
Compiler: gcc

Python Version: 3.14.6


Consistently producible on my end with this code and (so far) any .root dataset I’ve tried.

import ROOT
import matplotlib.pyplot as plt
import numpy as np

df = ROOT.RDataFrame("DataRaw/DataPixel", "Readout_1885.root")
col, row = df.AsNumpy(["col","row"]).values()

plt.hist2d(col,row)

Our Readout_xxxx.root files have a TTree with the data in TBranches, reading it out into an RDataFrame is just easier for plotting using native python.

Plotting in “pure” pyroot (ROOT.TFile, TFile.Get() all that jazz) works fine

This only started being an issue after I reinstalled my system last week, before that I had no issue running my above code, even though afaict it should be the same versions of everything (didn’t switch linux distro, just reinstalled it). It is not an issue on our lab computers with Ubuntu and Python 3.12, just my personal laptop.

Here is the terminal output when running the above segment:
Python 3.14.6 (main, Jun 15 2026, 11:36:54) [GCC 16.1.1 20260430] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>> import matplotlib.pyplot as plt
>>> import numpy as np
>>> df = ROOT.RDataFrame("DataRaw/DataPixel", "Readout_1885.root")
>>> col,row = df.AsNumpy(["col","row"]).values()
>>> plt.hist2d(col,row)
 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================

Thread 6 (Thread 0x7f17891ff6c0 (LWP 180133) "pool-spawner"):
#0  0x00007f17af51af9d in syscall () at /usr/lib/libc.so.6
#1  0x00007f178f7c10de in g_cond_wait () at /usr/lib/libglib-2.0.so.0
#2  0x00007f178f75654d in ??? () at /usr/lib/libglib-2.0.so.0
#3  0x00007f178f7cafd7 in ??? () at /usr/lib/libglib-2.0.so.0
#4  0x00007f178f7caad4 in ??? () at /usr/lib/libglib-2.0.so.0
#5  0x00007f17af4981b9 in ??? () at /usr/lib/libc.so.6
#6  0x00007f17af51d21c in ??? () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f17889fe6c0 (LWP 180134) "gmain"):
#0  0x00007f17af4a0a52 in ??? () at /usr/lib/libc.so.6
#1  0x00007f17af494abc in ??? () at /usr/lib/libc.so.6
#2  0x00007f17af494b04 in ??? () at /usr/lib/libc.so.6
#3  0x00007f17af50fff6 in ppoll () at /usr/lib/libc.so.6
#4  0x00007f178f793edf in ??? () at /usr/lib/libglib-2.0.so.0
#5  0x00007f178f793fe5 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#6  0x00007f178f794032 in ??? () at /usr/lib/libglib-2.0.so.0
#7  0x00007f178f7caad4 in ??? () at /usr/lib/libglib-2.0.so.0
#8  0x00007f17af4981b9 in ??? () at /usr/lib/libc.so.6
#9  0x00007f17af51d21c in ??? () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f17881fd6c0 (LWP 180135) "gdbus"):
#0  0x00007f17af4a0a52 in ??? () at /usr/lib/libc.so.6
#1  0x00007f17af494abc in ??? () at /usr/lib/libc.so.6
#2  0x00007f17af494b04 in ??? () at /usr/lib/libc.so.6
#3  0x00007f17af50fff6 in ppoll () at /usr/lib/libc.so.6
#4  0x00007f178f793edf in ??? () at /usr/lib/libglib-2.0.so.0
#5  0x00007f178f7941a7 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#6  0x00007f178e3c5974 in ??? () at /usr/lib/libgio-2.0.so.0
#7  0x00007f178f7caad4 in ??? () at /usr/lib/libglib-2.0.so.0
#8  0x00007f17af4981b9 in ??? () at /usr/lib/libc.so.6
#9  0x00007f17af51d21c in ??? () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f17879fc6c0 (LWP 180136) "[pango] fontcon"):
#0  0x00007f17af51af9d in syscall () at /usr/lib/libc.so.6
#1  0x00007f178f7c10de in g_cond_wait () at /usr/lib/libglib-2.0.so.0
#2  0x00007f178f75654d in ??? () at /usr/lib/libglib-2.0.so.0
#3  0x00007f178f7565c6 in g_async_queue_pop () at /usr/lib/libglib-2.0.so.0
#4  0x00007f178c82e51c in ??? () at /usr/lib/libpangoft2-1.0.so.0
#5  0x00007f178f7caad4 in ??? () at /usr/lib/libglib-2.0.so.0
#6  0x00007f17af4981b9 in ??? () at /usr/lib/libc.so.6
#7  0x00007f17af51d21c in ??? () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f17870226c0 (LWP 180138) "pool-0"):
#0  0x00007f17af51af9d in syscall () at /usr/lib/libc.so.6
#1  0x00007f178f7c1f1c in g_cond_wait_until () at /usr/lib/libglib-2.0.so.0
#2  0x00007f178f756517 in ??? () at /usr/lib/libglib-2.0.so.0
#3  0x00007f178f7cbebb in ??? () at /usr/lib/libglib-2.0.so.0
#4  0x00007f178f7caad4 in ??? () at /usr/lib/libglib-2.0.so.0
#5  0x00007f17af4981b9 in ??? () at /usr/lib/libc.so.6
#6  0x00007f17af51d21c in ??? () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f17aff50bc0 (LWP 179525) "python"):
#0  0x00007f17af4a0a52 in ??? () at /usr/lib/libc.so.6
#1  0x00007f17af494abc in ??? () at /usr/lib/libc.so.6
#2  0x00007f17af494b04 in ??? () at /usr/lib/libc.so.6
#3  0x00007f17af505c6f in wait4 () at /usr/lib/libc.so.6
#4  0x00007f17af4547cd in ??? () at /usr/lib/libc.so.6
#5  0x00007f17a9db1f06 in TUnixSystem::StackTrace() () at /usr/lib/python3.14/site-packages/cppyy/.././libCore.so
#6  0x00007f17aa051f68 in ??? () at /usr/lib/python3.14/site-packages/cppyy/../libCPyCppyy.so
#7  0x00007f17a9db12c9 in TUnixSystem::DispatchSignals(ESignals) () at /usr/lib/python3.14/site-packages/cppyy/.././libCore.so
#8  0x00007f17af43e8f0 in <signal handler called> () at /usr/lib/libc.so.6
#9  0x000055c5eacf18c0 in ??? ()
#10 0x00007f17ab6af99b in hb_face_reference_table () at /usr/lib/python3.14/site-packages/matplotlib/ft2font.cpython-314-x86_64-linux-gnu.so
#11 0x00007f178de853da in ??? () at /usr/lib/libharfbuzz.so.0
#12 0x00007f178de85c64 in hb_ot_color_has_paint () at /usr/lib/libharfbuzz.so.0
#13 0x00007f178dfb8064 in ??? () at /usr/lib/libpango-1.0.so.0
#14 0x00007f178dfb8ca8 in ??? () at /usr/lib/libpango-1.0.so.0
#15 0x00007f178dfb9535 in pango_shape_item () at /usr/lib/libpango-1.0.so.0
#16 0x00007f178dfa0996 in ??? () at /usr/lib/libpango-1.0.so.0
#17 0x00007f178dfa1f55 in ??? () at /usr/lib/libpango-1.0.so.0
#18 0x00007f178dfa44e2 in ??? () at /usr/lib/libpango-1.0.so.0
#19 0x00007f178dfa832f in ??? () at /usr/lib/libpango-1.0.so.0
#20 0x00007f178dd0fd12 in ??? () at /usr/lib/libpangocairo-1.0.so.0
#21 0x00007f178df8f9f6 in ??? () at /usr/lib/libpango-1.0.so.0
#22 0x00007f178c832abc in ??? () at /usr/lib/libpangoft2-1.0.so.0
#23 0x00007f178df9a785 in pango_context_get_metrics () at /usr/lib/libpango-1.0.so.0
#24 0x00007f178cd691a9 in ??? () at /usr/lib/libgtk-4.so.1
#25 0x00007f178cd6dd94 in ??? () at /usr/lib/libgtk-4.so.1
#26 0x00007f178ce138be in ??? () at /usr/lib/libgtk-4.so.1
#27 0x00007f178ccbd429 in ??? () at /usr/lib/libgtk-4.so.1
#28 0x00007f178cd79981 in gtk_layout_manager_measure () at /usr/lib/libgtk-4.so.1
#29 0x00007f178ce13a86 in ??? () at /usr/lib/libgtk-4.so.1
#30 0x00007f178cccc797 in ??? () at /usr/lib/libgtk-4.so.1
#31 0x00007f178cd79981 in gtk_layout_manager_measure () at /usr/lib/libgtk-4.so.1
#32 0x00007f178ce13a86 in ??? () at /usr/lib/libgtk-4.so.1
#33 0x00007f178ce14124 in gtk_widget_get_preferred_size () at /usr/lib/libgtk-4.so.1
#34 0x00007f17ae622ac6 in ??? () at /usr/lib/libffi.so.8
#35 0x00007f17ae61f76b in ??? () at /usr/lib/libffi.so.8
#36 0x00007f17ae62206e in ffi_call () at /usr/lib/libffi.so.8
#37 0x00007f17a23d8bd2 in ??? () at /usr/lib/python3.14/site-packages/gi/_gi.cpython-314-x86_64-linux-gnu.so
#38 0x00007f17a23ce3ec in ??? () at /usr/lib/python3.14/site-packages/gi/_gi.cpython-314-x86_64-linux-gnu.so
#39 0x00007f17af85dcc3 in ??? () at /usr/lib/libpython3.14.so.1.0
#40 0x00007f17af9ee47f in ??? () at /usr/lib/libpython3.14.so.1.0
#41 0x00007f17af9a4d8a in ??? () at /usr/lib/libpython3.14.so.1.0
#42 0x00007f17af85e496 in ??? () at /usr/lib/libpython3.14.so.1.0
#43 0x00007f17af9e346b in ??? () at /usr/lib/libpython3.14.so.1.0
#44 0x00007f17afa34e3e in ??? () at /usr/lib/libpython3.14.so.1.0
#45 0x00007f17af9fe2a9 in ??? () at /usr/lib/libpython3.14.so.1.0
#46 0x00007f17af8652f2 in ??? () at /usr/lib/libpython3.14.so.1.0
#47 0x00007f17af9b7952 in ??? () at /usr/lib/libpython3.14.so.1.0
#48 0x00007f17afaba2c4 in PyEval_EvalCode () at /usr/lib/libpython3.14.so.1.0
#49 0x00007f17afadd976 in ??? () at /usr/lib/libpython3.14.so.1.0
#50 0x00007f17af86844a in ??? () at /usr/lib/libpython3.14.so.1.0
#51 0x00007f17af9e346b in ??? () at /usr/lib/libpython3.14.so.1.0
#52 0x00007f17af9fe2a9 in ??? () at /usr/lib/libpython3.14.so.1.0
#53 0x00007f17af96bbea in ??? () at /usr/lib/libpython3.14.so.1.0
#54 0x00007f17af841cea in ??? () at /usr/lib/libpython3.14.so.1.0
#55 0x00007f17afaa1cfc in Py_BytesMain () at /usr/lib/libpython3.14.so.1.0
#56 0x00007f17af427741 in ??? () at /usr/lib/libc.so.6
#57 0x00007f17af427879 in __libc_start_main () at /usr/lib/libc.so.6
#58 0x000055c5c59b5045 in _start ()
===========================================================


The lines below might hint at the cause of the crash. If you see question
marks as part of the stack trace, try to recompile with debugging information
enabled and export CLING_DEBUG=1 environment variable before running.
You may get help by asking at the ROOT forum https://root.cern/forum
preferably using the command (.forum bug) in the ROOT prompt.
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern/bugs or (preferably) using the command (.gh bug) in
the ROOT prompt. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#9  0x000055c5eacf18c0 in ??? ()
#10 0x00007f17ab6af99b in hb_face_reference_table () at /usr/lib/python3.14/site-packages/matplotlib/ft2font.cpython-314-x86_64-linux-gnu.so
#11 0x00007f178de853da in ??? () at /usr/lib/libharfbuzz.so.0
#12 0x00007f178de85c64 in hb_ot_color_has_paint () at /usr/lib/libharfbuzz.so.0
#13 0x00007f178dfb8064 in ??? () at /usr/lib/libpango-1.0.so.0
#14 0x00007f178dfb8ca8 in ??? () at /usr/lib/libpango-1.0.so.0
#15 0x00007f178dfb9535 in pango_shape_item () at /usr/lib/libpango-1.0.so.0
#16 0x00007f178dfa0996 in ??? () at /usr/lib/libpango-1.0.so.0
#17 0x00007f178dfa1f55 in ??? () at /usr/lib/libpango-1.0.so.0
#18 0x00007f178dfa44e2 in ??? () at /usr/lib/libpango-1.0.so.0
#19 0x00007f178dfa832f in ??? () at /usr/lib/libpango-1.0.so.0
#20 0x00007f178dd0fd12 in ??? () at /usr/lib/libpangocairo-1.0.so.0
#21 0x00007f178df8f9f6 in ??? () at /usr/lib/libpango-1.0.so.0
#22 0x00007f178c832abc in ??? () at /usr/lib/libpangoft2-1.0.so.0
#23 0x00007f178df9a785 in pango_context_get_metrics () at /usr/lib/libpango-1.0.so.0
#24 0x00007f178cd691a9 in ??? () at /usr/lib/libgtk-4.so.1
#25 0x00007f178cd6dd94 in ??? () at /usr/lib/libgtk-4.so.1
#26 0x00007f178ce138be in ??? () at /usr/lib/libgtk-4.so.1
#27 0x00007f178ccbd429 in ??? () at /usr/lib/libgtk-4.so.1
#28 0x00007f178cd79981 in gtk_layout_manager_measure () at /usr/lib/libgtk-4.so.1
#29 0x00007f178ce13a86 in ??? () at /usr/lib/libgtk-4.so.1
#30 0x00007f178cccc797 in ??? () at /usr/lib/libgtk-4.so.1
#31 0x00007f178cd79981 in gtk_layout_manager_measure () at /usr/lib/libgtk-4.so.1
#32 0x00007f178ce13a86 in ??? () at /usr/lib/libgtk-4.so.1
#33 0x00007f178ce14124 in gtk_widget_get_preferred_size () at /usr/lib/libgtk-4.so.1
#34 0x00007f17ae622ac6 in ??? () at /usr/lib/libffi.so.8
#35 0x00007f17ae61f76b in ??? () at /usr/lib/libffi.so.8
#36 0x00007f17ae62206e in ffi_call () at /usr/lib/libffi.so.8
#37 0x00007f17a23d8bd2 in ??? () at /usr/lib/python3.14/site-packages/gi/_gi.cpython-314-x86_64-linux-gnu.so
#38 0x00007f17a23ce3ec in ??? () at /usr/lib/python3.14/site-packages/gi/_gi.cpython-314-x86_64-linux-gnu.so
#39 0x00007f17af85dcc3 in ??? () at /usr/lib/libpython3.14.so.1.0
#40 0x00007f17af9ee47f in ??? () at /usr/lib/libpython3.14.so.1.0
#41 0x00007f17af9a4d8a in ??? () at /usr/lib/libpython3.14.so.1.0
#42 0x00007f17af85e496 in ??? () at /usr/lib/libpython3.14.so.1.0
#43 0x00007f17af9e346b in ??? () at /usr/lib/libpython3.14.so.1.0
#44 0x00007f17afa34e3e in ??? () at /usr/lib/libpython3.14.so.1.0
#45 0x00007f17af9fe2a9 in ??? () at /usr/lib/libpython3.14.so.1.0
#46 0x00007f17af8652f2 in ??? () at /usr/lib/libpython3.14.so.1.0
#47 0x00007f17af9b7952 in ??? () at /usr/lib/libpython3.14.so.1.0
#48 0x00007f17afaba2c4 in PyEval_EvalCode () at /usr/lib/libpython3.14.so.1.0
#49 0x00007f17afadd976 in ??? () at /usr/lib/libpython3.14.so.1.0
#50 0x00007f17af86844a in ??? () at /usr/lib/libpython3.14.so.1.0
#51 0x00007f17af9e346b in ??? () at /usr/lib/libpython3.14.so.1.0
#52 0x00007f17af9fe2a9 in ??? () at /usr/lib/libpython3.14.so.1.0
#53 0x00007f17af96bbea in ??? () at /usr/lib/libpython3.14.so.1.0
#54 0x00007f17af841cea in ??? () at /usr/lib/libpython3.14.so.1.0
#55 0x00007f17afaa1cfc in Py_BytesMain () at /usr/lib/libpython3.14.so.1.0
#56 0x00007f17af427741 in ??? () at /usr/lib/libc.so.6
#57 0x00007f17af427879 in __libc_start_main () at /usr/lib/libc.so.6
#58 0x000055c5c59b5045 in _start ()
===========================================================


 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================

Thread 6 (Thread 0x7f17891ff6c0 (LWP 180133) "pool-spawner"):
#0  0x00007f17af51af9d in syscall () at /usr/lib/libc.so.6
#1  0x00007f178f7c10de in g_cond_wait () at /usr/lib/libglib-2.0.so.0
#2  0x00007f178f75654d in ??? () at /usr/lib/libglib-2.0.so.0
#3  0x00007f178f7cafd7 in ??? () at /usr/lib/libglib-2.0.so.0
#4  0x00007f178f7caad4 in ??? () at /usr/lib/libglib-2.0.so.0
#5  0x00007f17af4981b9 in ??? () at /usr/lib/libc.so.6
#6  0x00007f17af51d21c in ??? () at /usr/lib/libc.so.6

Thread 5 (Thread 0x7f17889fe6c0 (LWP 180134) "gmain"):
#0  0x00007f17af4a0a52 in ??? () at /usr/lib/libc.so.6
#1  0x00007f17af494abc in ??? () at /usr/lib/libc.so.6
#2  0x00007f17af494b04 in ??? () at /usr/lib/libc.so.6
#3  0x00007f17af50fff6 in ppoll () at /usr/lib/libc.so.6
#4  0x00007f178f793edf in ??? () at /usr/lib/libglib-2.0.so.0
#5  0x00007f178f793fe5 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#6  0x00007f178f794032 in ??? () at /usr/lib/libglib-2.0.so.0
#7  0x00007f178f7caad4 in ??? () at /usr/lib/libglib-2.0.so.0
#8  0x00007f17af4981b9 in ??? () at /usr/lib/libc.so.6
#9  0x00007f17af51d21c in ??? () at /usr/lib/libc.so.6

Thread 4 (Thread 0x7f17881fd6c0 (LWP 180135) "gdbus"):
#0  0x00007f17af4a0a52 in ??? () at /usr/lib/libc.so.6
#1  0x00007f17af494abc in ??? () at /usr/lib/libc.so.6
#2  0x00007f17af494b04 in ??? () at /usr/lib/libc.so.6
#3  0x00007f17af50fff6 in ppoll () at /usr/lib/libc.so.6
#4  0x00007f178f793edf in ??? () at /usr/lib/libglib-2.0.so.0
#5  0x00007f178f7941a7 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#6  0x00007f178e3c5974 in ??? () at /usr/lib/libgio-2.0.so.0
#7  0x00007f178f7caad4 in ??? () at /usr/lib/libglib-2.0.so.0
#8  0x00007f17af4981b9 in ??? () at /usr/lib/libc.so.6
#9  0x00007f17af51d21c in ??? () at /usr/lib/libc.so.6

Thread 3 (Thread 0x7f17879fc6c0 (LWP 180136) "[pango] fontcon"):
#0  0x00007f17af51af9d in syscall () at /usr/lib/libc.so.6
#1  0x00007f178f7c10de in g_cond_wait () at /usr/lib/libglib-2.0.so.0
#2  0x00007f178f75654d in ??? () at /usr/lib/libglib-2.0.so.0
#3  0x00007f178f7565c6 in g_async_queue_pop () at /usr/lib/libglib-2.0.so.0
#4  0x00007f178c82e51c in ??? () at /usr/lib/libpangoft2-1.0.so.0
#5  0x00007f178f7caad4 in ??? () at /usr/lib/libglib-2.0.so.0
#6  0x00007f17af4981b9 in ??? () at /usr/lib/libc.so.6
#7  0x00007f17af51d21c in ??? () at /usr/lib/libc.so.6

Thread 2 (Thread 0x7f17870226c0 (LWP 180138) "pool-0"):
#0  0x00007f17af51af9d in syscall () at /usr/lib/libc.so.6
#1  0x00007f178f7c1f1c in g_cond_wait_until () at /usr/lib/libglib-2.0.so.0
#2  0x00007f178f756517 in ??? () at /usr/lib/libglib-2.0.so.0
#3  0x00007f178f75668f in g_async_queue_timeout_pop () at /usr/lib/libglib-2.0.so.0
#4  0x00007f178f7cbdf1 in ??? () at /usr/lib/libglib-2.0.so.0
#5  0x00007f178f7caad4 in ??? () at /usr/lib/libglib-2.0.so.0
#6  0x00007f17af4981b9 in ??? () at /usr/lib/libc.so.6
#7  0x00007f17af51d21c in ??? () at /usr/lib/libc.so.6

Thread 1 (Thread 0x7f17aff50bc0 (LWP 179525) "python"):
#0  0x00007f17af4a0a52 in ??? () at /usr/lib/libc.so.6
#1  0x00007f17af494abc in ??? () at /usr/lib/libc.so.6
#2  0x00007f17af494b04 in ??? () at /usr/lib/libc.so.6
#3  0x00007f17af505c6f in wait4 () at /usr/lib/libc.so.6
#4  0x00007f17af4547cd in ??? () at /usr/lib/libc.so.6
#5  0x00007f17a9db1f06 in TUnixSystem::StackTrace() () at /usr/lib/python3.14/site-packages/cppyy/.././libCore.so
#6  0x00007f17aa051e23 in ??? () at /usr/lib/python3.14/site-packages/cppyy/../libCPyCppyy.so
#7  0x00007f17a9db12c9 in TUnixSystem::DispatchSignals(ESignals) () at /usr/lib/python3.14/site-packages/cppyy/.././libCore.so
#8  0x00007f17af43e8f0 in <signal handler called> () at /usr/lib/libc.so.6
#9  0x000055c5eacf18c0 in ??? ()
#10 0x00007f17ab6af99b in hb_face_reference_table () at /usr/lib/python3.14/site-packages/matplotlib/ft2font.cpython-314-x86_64-linux-gnu.so
#11 0x00007f178de853da in ??? () at /usr/lib/libharfbuzz.so.0
#12 0x00007f178de85c64 in hb_ot_color_has_paint () at /usr/lib/libharfbuzz.so.0
#13 0x00007f178dfb8064 in ??? () at /usr/lib/libpango-1.0.so.0
#14 0x00007f178dfb8ca8 in ??? () at /usr/lib/libpango-1.0.so.0
#15 0x00007f178dfb9535 in pango_shape_item () at /usr/lib/libpango-1.0.so.0
#16 0x00007f178dfa0996 in ??? () at /usr/lib/libpango-1.0.so.0
#17 0x00007f178dfa1f55 in ??? () at /usr/lib/libpango-1.0.so.0
#18 0x00007f178dfa44e2 in ??? () at /usr/lib/libpango-1.0.so.0
#19 0x00007f178dfa832f in ??? () at /usr/lib/libpango-1.0.so.0
#20 0x00007f178dd0fd12 in ??? () at /usr/lib/libpangocairo-1.0.so.0
#21 0x00007f178df8f9f6 in ??? () at /usr/lib/libpango-1.0.so.0
#22 0x00007f178c832abc in ??? () at /usr/lib/libpangoft2-1.0.so.0
#23 0x00007f178df9a785 in pango_context_get_metrics () at /usr/lib/libpango-1.0.so.0
#24 0x00007f178cd691a9 in ??? () at /usr/lib/libgtk-4.so.1
#25 0x00007f178cd6dd94 in ??? () at /usr/lib/libgtk-4.so.1
#26 0x00007f178ce138be in ??? () at /usr/lib/libgtk-4.so.1
#27 0x00007f178ccbd429 in ??? () at /usr/lib/libgtk-4.so.1
#28 0x00007f178cd79981 in gtk_layout_manager_measure () at /usr/lib/libgtk-4.so.1
#29 0x00007f178ce13a86 in ??? () at /usr/lib/libgtk-4.so.1
#30 0x00007f178cccc797 in ??? () at /usr/lib/libgtk-4.so.1
#31 0x00007f178cd79981 in gtk_layout_manager_measure () at /usr/lib/libgtk-4.so.1
#32 0x00007f178ce13a86 in ??? () at /usr/lib/libgtk-4.so.1
#33 0x00007f178ce14124 in gtk_widget_get_preferred_size () at /usr/lib/libgtk-4.so.1
#34 0x00007f17ae622ac6 in ??? () at /usr/lib/libffi.so.8
#35 0x00007f17ae61f76b in ??? () at /usr/lib/libffi.so.8
#36 0x00007f17ae62206e in ffi_call () at /usr/lib/libffi.so.8
#37 0x00007f17a23d8bd2 in ??? () at /usr/lib/python3.14/site-packages/gi/_gi.cpython-314-x86_64-linux-gnu.so
#38 0x00007f17a23ce3ec in ??? () at /usr/lib/python3.14/site-packages/gi/_gi.cpython-314-x86_64-linux-gnu.so
#39 0x00007f17af85dcc3 in ??? () at /usr/lib/libpython3.14.so.1.0
#40 0x00007f17af9ee47f in ??? () at /usr/lib/libpython3.14.so.1.0
#41 0x00007f17af9a4d8a in ??? () at /usr/lib/libpython3.14.so.1.0
#42 0x00007f17af85e496 in ??? () at /usr/lib/libpython3.14.so.1.0
#43 0x00007f17af9e346b in ??? () at /usr/lib/libpython3.14.so.1.0
#44 0x00007f17afa34e3e in ??? () at /usr/lib/libpython3.14.so.1.0
#45 0x00007f17af9fe2a9 in ??? () at /usr/lib/libpython3.14.so.1.0
#46 0x00007f17af8652f2 in ??? () at /usr/lib/libpython3.14.so.1.0
#47 0x00007f17af9b7952 in ??? () at /usr/lib/libpython3.14.so.1.0
#48 0x00007f17afaba2c4 in PyEval_EvalCode () at /usr/lib/libpython3.14.so.1.0
#49 0x00007f17afadd976 in ??? () at /usr/lib/libpython3.14.so.1.0
#50 0x00007f17af86844a in ??? () at /usr/lib/libpython3.14.so.1.0
#51 0x00007f17af9e346b in ??? () at /usr/lib/libpython3.14.so.1.0
#52 0x00007f17af9fe2a9 in ??? () at /usr/lib/libpython3.14.so.1.0
#53 0x00007f17af96bbea in ??? () at /usr/lib/libpython3.14.so.1.0
#54 0x00007f17af841cea in ??? () at /usr/lib/libpython3.14.so.1.0
#55 0x00007f17afaa1cfc in Py_BytesMain () at /usr/lib/libpython3.14.so.1.0
#56 0x00007f17af427741 in ??? () at /usr/lib/libc.so.6
#57 0x00007f17af427879 in __libc_start_main () at /usr/lib/libc.so.6
#58 0x000055c5c59b5045 in _start ()
===========================================================


The lines below might hint at the cause of the crash. If you see question
marks as part of the stack trace, try to recompile with debugging information
enabled and export CLING_DEBUG=1 environment variable before running.
You may get help by asking at the ROOT forum https://root.cern/forum
preferably using the command (.forum bug) in the ROOT prompt.
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern/bugs or (preferably) using the command (.gh bug) in
the ROOT prompt. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#9  0x000055c5eacf18c0 in ??? ()
#10 0x00007f17ab6af99b in hb_face_reference_table () at /usr/lib/python3.14/site-packages/matplotlib/ft2font.cpython-314-x86_64-linux-gnu.so
#11 0x00007f178de853da in ??? () at /usr/lib/libharfbuzz.so.0
#12 0x00007f178de85c64 in hb_ot_color_has_paint () at /usr/lib/libharfbuzz.so.0
#13 0x00007f178dfb8064 in ??? () at /usr/lib/libpango-1.0.so.0
#14 0x00007f178dfb8ca8 in ??? () at /usr/lib/libpango-1.0.so.0
#15 0x00007f178dfb9535 in pango_shape_item () at /usr/lib/libpango-1.0.so.0
#16 0x00007f178dfa0996 in ??? () at /usr/lib/libpango-1.0.so.0
#17 0x00007f178dfa1f55 in ??? () at /usr/lib/libpango-1.0.so.0
#18 0x00007f178dfa44e2 in ??? () at /usr/lib/libpango-1.0.so.0
#19 0x00007f178dfa832f in ??? () at /usr/lib/libpango-1.0.so.0
#20 0x00007f178dd0fd12 in ??? () at /usr/lib/libpangocairo-1.0.so.0
#21 0x00007f178df8f9f6 in ??? () at /usr/lib/libpango-1.0.so.0
#22 0x00007f178c832abc in ??? () at /usr/lib/libpangoft2-1.0.so.0
#23 0x00007f178df9a785 in pango_context_get_metrics () at /usr/lib/libpango-1.0.so.0
#24 0x00007f178cd691a9 in ??? () at /usr/lib/libgtk-4.so.1
#25 0x00007f178cd6dd94 in ??? () at /usr/lib/libgtk-4.so.1
#26 0x00007f178ce138be in ??? () at /usr/lib/libgtk-4.so.1
#27 0x00007f178ccbd429 in ??? () at /usr/lib/libgtk-4.so.1
#28 0x00007f178cd79981 in gtk_layout_manager_measure () at /usr/lib/libgtk-4.so.1
#29 0x00007f178ce13a86 in ??? () at /usr/lib/libgtk-4.so.1
#30 0x00007f178cccc797 in ??? () at /usr/lib/libgtk-4.so.1
#31 0x00007f178cd79981 in gtk_layout_manager_measure () at /usr/lib/libgtk-4.so.1
#32 0x00007f178ce13a86 in ??? () at /usr/lib/libgtk-4.so.1
#33 0x00007f178ce14124 in gtk_widget_get_preferred_size () at /usr/lib/libgtk-4.so.1
#34 0x00007f17ae622ac6 in ??? () at /usr/lib/libffi.so.8
#35 0x00007f17ae61f76b in ??? () at /usr/lib/libffi.so.8
#36 0x00007f17ae62206e in ffi_call () at /usr/lib/libffi.so.8
#37 0x00007f17a23d8bd2 in ??? () at /usr/lib/python3.14/site-packages/gi/_gi.cpython-314-x86_64-linux-gnu.so
#38 0x00007f17a23ce3ec in ??? () at /usr/lib/python3.14/site-packages/gi/_gi.cpython-314-x86_64-linux-gnu.so
#39 0x00007f17af85dcc3 in ??? () at /usr/lib/libpython3.14.so.1.0
#40 0x00007f17af9ee47f in ??? () at /usr/lib/libpython3.14.so.1.0
#41 0x00007f17af9a4d8a in ??? () at /usr/lib/libpython3.14.so.1.0
#42 0x00007f17af85e496 in ??? () at /usr/lib/libpython3.14.so.1.0
#43 0x00007f17af9e346b in ??? () at /usr/lib/libpython3.14.so.1.0
#44 0x00007f17afa34e3e in ??? () at /usr/lib/libpython3.14.so.1.0
#45 0x00007f17af9fe2a9 in ??? () at /usr/lib/libpython3.14.so.1.0
#46 0x00007f17af8652f2 in ??? () at /usr/lib/libpython3.14.so.1.0
#47 0x00007f17af9b7952 in ??? () at /usr/lib/libpython3.14.so.1.0
#48 0x00007f17afaba2c4 in PyEval_EvalCode () at /usr/lib/libpython3.14.so.1.0
#49 0x00007f17afadd976 in ??? () at /usr/lib/libpython3.14.so.1.0
#50 0x00007f17af86844a in ??? () at /usr/lib/libpython3.14.so.1.0
#51 0x00007f17af9e346b in ??? () at /usr/lib/libpython3.14.so.1.0
#52 0x00007f17af9fe2a9 in ??? () at /usr/lib/libpython3.14.so.1.0
#53 0x00007f17af96bbea in ??? () at /usr/lib/libpython3.14.so.1.0
#54 0x00007f17af841cea in ??? () at /usr/lib/libpython3.14.so.1.0
#55 0x00007f17afaa1cfc in Py_BytesMain () at /usr/lib/libpython3.14.so.1.0
#56 0x00007f17af427741 in ??? () at /usr/lib/libc.so.6
#57 0x00007f17af427879 in __libc_start_main () at /usr/lib/libc.so.6
#58 0x000055c5c59b5045 in _start ()
===========================================================

You can check what Python version ROOT was compiled for, with root-config --python3-version (you have Python 3.14.6; not sure if it’s an issue if they don’t match perfectly).
And maybe you should also check with the maintainer of that binary, since it’s not an “official” ROOT binary (not listed in Release 64002 - ROOT); a web search gives this page: Arch Linux - root 6.40.02-1 (x86_64)

It isn’t an official root binary, but the arch repositories are listed as an installation method on the root installation website.

ROOT appears to have been compiled for Python 3.14.5, is that likely to be the issue then?

Edit: downgrading python back to 3.14.5 doesn’t resolve the issue, I still get the same crash.