**Describe the bug/issue**
While working on pictures, switching to another pict…ure or just opening the first image, darktable crashes with the same error for me since a while in Permutohedral.h:485 (see attached stacktrace)
**To Reproduce**
I really don't know how to reproduce, it seems to happen randomly to my obsservation. When restarting darktable and running the same steps as what lead to the crash does not crash darktable again.
**Stack trace**
```
Thread 99 "worker res 1" received signal SIGBUS, Bus error.
[Switching to Thread 0x7fff1ffff640 (LWP 23858)]
0x00007fff70c12471 in PermutohedralLattice<5, 4>::splat (this=0x7fffc5fd72b0, position=position@entry=0x7fff1ffee440, value=value@entry=0x7fff1ffee430, replay_index=replay_index@entry=1117698, thread_index=thread_index@entry=3) at /home/panda/Downloads/dtcompile/darktable/src/iop/Permutohedral.h:485
485 barycentric[D - rank[i]] += (elevated[i] - greedy[i]) * scale;
(gdb) bt full
#0 0x00007fff70c12471 in PermutohedralLattice<5, 4>::splat(float*, float*, unsigned long, int) const
(this=0x7fffc5fd72b0, position=position@entry=0x7fff1ffee440, value=value@entry=0x7fff1ffee430, replay_index=replay_index@entry=1117698, thread_index=thread_index@entry=3)
at /home/panda/Downloads/dtcompile/darktable/src/iop/Permutohedral.h:485
i = 4
elevated =
{446365920, 446365856, -892731712, 4.28966618, 4.3655386, -26.3971424}
greedy = {446365946, 446365914, -892731782, 0, 0, -30}
rank =
{-1062557013, 1084926635, 0, 1060570776, -1086912872, 1093315243}
barycentric = {0, 0, 0, 0, 0, 0, 0}
key =
{hash = <optimized out>, key = {<optimized out>, <optimized out>, <optimized out>, <optimized out>, <optimized out>}}
sum = <optimized out>
#1 0x00007fff70c108d9 in process._omp_fn.1(void) ()
at /home/panda/Downloads/dtcompile/darktable/src/iop/bilateral.cc:226
pos = {7.03762054, 223182928, 0.287140638, 0.208565861, 5.90258074}
val = {0.0574281216, 0.041713167, 0.0295129027, 1}
i = 34
in = 0x7fff2821b060
thread = <optimized out>
index = 1117698
j = 536798272
ivoid = <optimized out>
roi_in = 0x7fffc5fd7830
ch = <optimized out>
sigma = {0.206988841, 0.206988841, 5.00000048, 5.00000048, 200}
lattice =
{nData = 1158522, nThreads = 4, scaleFactor = 0x7fffb004b8f0, canonical = 0x7fffb004a220, replay = 0x7ffefca0a010, hashTables = 0x7fffb00bc118}
lattice =
{nData = 1896583536, nThreads = 32767, scaleFactor = 0xffff00009ff1, canonical = 0xb916a4c0b90a1940, replay = 0x3b0149183b77eb76, hashTables = 0x39aa268f39a3f63b}
data = <optimized out>
ch = <optimized out>
sigma =
{2.9387583e-39, 0, -3.01532605e+30, 4.59163468e-41, -16.0413265}
rad = <optimized out>
#2 0x00007ffff74e46c6 in gomp_thread_start (xdata=<optimized out>)
at /build/gcc/src/gcc/libgomp/team.c:125
team = 0x7fffb0022ce0
task = 0x7fffb00234a8
data = <optimized out>
pool = 0x7fffb0022c10
local_fn = 0x7fff70c10740 <process._omp_fn.1(void)>
local_data = 0x7fffc5fd72e0
#3 0x00007ffff7551259 in start_thread () at /usr/lib/libpthread.so.0
#4 0x00007ffff21f95e3 in clone () at /usr/lib/libc.so.6
```
**Platform**
* darktable version : 3.7.0+1112~gc2295c9a2-dirty
* OS : 5.14.7-arch1-1
* Linux - Distro : latest Arch Linux
* Memory : 32 GB
* Graphics card : Radeon RX 580 Series (POLARIS10, DRM 3.42.0, 5.14.7-arch1-1, LLVM 12.0.1) (0x67df)
* Graphics driver : Mesa 21.2.2
* OpenCL installed : yes
* OpenCL activated : yes
* Xorg : 1.20.13-2
* Desktop : GNOME 40
* GTK+ : 3.24.30 / 4.4.0
* gcc : 11
* cflags : no changes
* CMAKE_BUILD_TYPE : Release
**Additional context**
- Can you reproduce with another darktable version(s)? **happens for a while in git now, didn't try 3.6 branch due to missing cr3 support**
- Can you reproduce with a RAW or Jpeg or both? **Happens to several raws so I doubt it's image specific**
- Are the steps above reproducible with a fresh edit (i.e. after discarding history)? **yes**
- Is the issue still present using an empty/new config-dir (e.g. start darktable with --configdir "/tmp")? **so far I was unable to have a crash but sometimes dt doesn't crrash for a while so I can't say for sure**
- Do you use lua scripts? **No**