On the adaptation of Lucy’s original work you’re using, I’ve never seen that layout be necessary, so it might be worth testing both Core22 and Core24 without it.
Otherwise, let us know the Java error
If you go back to Lucy’s original above, then I’d add it back in. But the spin off you’re using has never needed it because it only exists in the domain of fixing ALSA → Pulse(+Pipe implicitly), not fixing direct userland ALSA access like Lucy’s.
Sorry about the missing java error @James-Carroll, here it is.
SEVERE [global]
java.lang.IllegalArgumentException: No line matching interface Clip supporting format PCM_SIGNED unknown sample rate, 16 bit, stereo, 4 bytes/frame, big-endian is supported.
at java.desktop/javax.sound.sampled.AudioSystem.getLine(Unknown Source)
at java.desktop/javax.sound.sampled.AudioSystem.getClip(Unknown Source)
at se.trixon.yaya.dice.data.sound.Sound.lambda$load$3(Sound.java:88)
at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(Unknown Source)
at se.trixon.yaya.dice.data.sound.Sound.load(Sound.java:82)
at se.trixon.yaya.dice.data.sound.Sound.<init>(Sound.java:43)
at se.trixon.yaya.dice.Die$RollThread.rollOut(Die.java:362)
[catch] at se.trixon.yaya.dice.Die$RollThread.run(Die.java:317)
Removing the layout section on core22 did not seem to brake anything.
Removing it on core24 did not fix the problem.
Regarding the generated snap size, is it supposed to be so much larger ?
Im shipping a custom java runtime image but the error is there when I use a classic JRE too.
I noticed that libasound2-plugins in core24 results in the extra 60MB compared with core22 and that by removing libasound2-plugins from the core22 snap I got the same error as with the core24.
To me it looks like libasound2-plugins is not configured correctly in my core24 snap, but I have no idea how to fix that.