<div dir="ltr">Hi,<br><br>I can confirm this bug. Kaffeine crashes when adding or modifying DVB channels or recordings.<br>The issue is in SqlInterface::sqlFindFreeKey, where std::prev is called with an invalid argument (-1).<br><br>I tested the following fix (removing the -1 argument), and it resolves the crash:<br>--- a/src/sqlinterface.h<br>+++ b/src/sqlinterface.h<br>@@ -87,7 +87,7 @@<br>     if (!container.isEmpty()) {<br>-        sqlKey = SqlKey(std::prev(container.constEnd(), -1).key().sqlKey + 1);<br>+        sqlKey = SqlKey(std::prev(container.constEnd()).key().sqlKey + 1);<br>     }<br>     [...]<br><br>This patch works for me. Could it be integrated into the Debian package?<br><br>Regards,<br>[Dominique]<br><br></div>