HandBrake 1.5.1 hangs on startup due libQt5Qml

  • Done
  • quality assurance status badge
Details
2 participants
  • Distopico Vegan
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Distopico Vegan
Severity
normal
D
D
Distopico Vegan wrote on 13 Jul 2023 20:56
(address . bug-guix@gnu.org)
87cz0vbpmu.fsf@riseup.net
HandBrake 1.5.1 hangs on startup and `dmesg` show the following error


```
QQmlThread[....]: segfault at 0 ip 000.... sp 0000... error 4 in libQt5Qml.so.5.15.8
```
After some research I found a similar issues on NixOS:



Looks like the issue is related with QML disk cache, and after test
ruining *handbrake* with `QML_DISABLE_DISK_CACHE=1` works fine

```
QML_DISABLE_DISK_CACHE=1 ghb
```
-----BEGIN PGP SIGNATURE-----

iQFJBAEBCAAzFiEEvYwofabWO6y953lVmAk6gHJUa/MFAmSwSnkVHGRpc3RvcGlj
b0ByaXNldXAubmV0AAoJEJgJOoByVGvzxzwH/1s8yE6uUlUo5bEF8FAyWu0opaPM
vZ1mPiBCX4wh4QnHMDWHxcGnyJJlySnGE+nMATplSMtc5h/z++T3GseUKSRQ3Gab
yUoiAf+NkthyO92oM/Mu6/DvomYG8sxKoP775Mm4wh6R6VN6u/rCiRWNbNtvV+oF
7QaQBLKjP18xA4fHj1Y1fWtwSr2FO1TNABJugoRUMXDYMdUnU+RambrL9y9yujm1
4Uadp7a+dC0D0WX++ra5TxQlwAZ0rel6fMfMi+IElf/tmCC+s11NlCIdq7E6NR3f
vAx0dEQbR4NwlANgsO5wuSBr4GqDiLAJY2Elr1HrL8g7ZwhCd9/aHI75YiQ=
=6R47
-----END PGP SIGNATURE-----

M
M
Maxim Cournoyer wrote on 20 Jul 2023 15:15
(name . Distopico Vegan)(address . distopico@riseup.net)(address . 64605@debbugs.gnu.org)
878rban2px.fsf@gmail.com
Hello,

Distopico Vegan <distopico@riseup.net> writes:

Toggle quote (20 lines)
> HandBrake 1.5.1 hangs on startup and `dmesg` show the following error
>
>
> ```
> QQmlThread[....]: segfault at 0 ip 000.... sp 0000... error 4 in libQt5Qml.so.5.15.8
> ```
> After some research I found a similar issues on NixOS:
>
> - https://github.com/NixOS/nixpkgs/issues/32577
> - https://github.com/NixOS/nixpkgs/issues/177720
>
> and a solution: https://github.com/NixOS/nixpkgs/pull/197010
>
> Looks like the issue is related with QML disk cache, and after test
> ruining *handbrake* with `QML_DISABLE_DISK_CACHE=1` works fine
>
> ```
> QML_DISABLE_DISK_CACHE=1 ghb
> ```

This looks like an upstream Qt problem. Have you searched if an issue
was known about it? Their tracker is at https://bugreports.qt.io/.

--
Thanks,
Maxim
D
D
Distopico wrote on 20 Jul 2023 18:43
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)(address . 64605@debbugs.gnu.org)
871qh2wmui.fsf@riseup.net
On 2023-07-20, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:

Toggle quote (3 lines)
> This looks like an upstream Qt problem. Have you searched if an issue
> was known about it? Their tracker is at https://bugreports.qt.io/.

Checking there looks like is already reported a similar issue
Guix/Nix becase QT is trying to write inside the profile path
-----BEGIN PGP SIGNATURE-----

iQFJBAEBCAAzFiEEvYwofabWO6y953lVmAk6gHJUa/MFAmS5ZVYVHGRpc3RvcGlj
b0ByaXNldXAubmV0AAoJEJgJOoByVGvzdJEH/Ai8ATuD9D4QKYXwUByiECETBQlI
YjAGpEDom79sq/h7F0RFgGC/oekO1YbESo/KDCIsdkFHWyqKjRQircc7rGMdXn+H
2zubhHDRxa/UJJ63T4Rd6dS2ICaRSAEtGk2gYTPT5ldefhRz02jtFC3Xb+zWRa7Z
3diISSWptXfLKNq+K/8NVOym6YembAcgc3zZQj3hmoEVsrOFu5oYX8Q3eoWpuEuJ
Je63w650wikFx1EwSEMz71sBGzkRRMzpUy81/NafRpmL6bl+K5ctrIeMbOWIGsss
c7PsAzAxTdPNLsp65bL7cBjiZY7mtmKOSy/00r3oN0PWO6EsOB0BvlEFTcU=
=dfy1
-----END PGP SIGNATURE-----

M
M
Maxim Cournoyer wrote on 20 Jul 2023 21:51
(name . Distopico)(address . distopico@riseup.net)(address . 64605@debbugs.gnu.org)
87cz0ml5tk.fsf@gmail.com
Hello,

Distopico <distopico@riseup.net> writes:

Toggle quote (9 lines)
> On 2023-07-20, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>
>> This looks like an upstream Qt problem. Have you searched if an issue
>> was known about it? Their tracker is at https://bugreports.qt.io/.
>
> Checking there looks like is already reported a similar issue
> https://bugreports.qt.io/browse/QTBUG-58508, I think that happens in
> Guix/Nix becase QT is trying to write inside the profile path

It looks like we should apply this patch to completely disable QML disk

--
Thanks,
Maxim
D
D
Distopico wrote on 20 Jul 2023 22:25
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)(address . 64605@debbugs.gnu.org)
875y6e9vog.fsf@riseup.net
On 2023-07-20, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:

Toggle quote (16 lines)
> Hello,
>
> Distopico <distopico@riseup.net> writes:
>
>> On 2023-07-20, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>>
>>> This looks like an upstream Qt problem. Have you searched if an issue
>>> was known about it? Their tracker is at https://bugreports.qt.io/.
>>
>> Checking there looks like is already reported a similar issue
>> https://bugreports.qt.io/browse/QTBUG-58508, I think that happens in
>> Guix/Nix becase QT is trying to write inside the profile path
>
> It looks like we should apply this patch to completely disable QML disk
> cache in Qt: https://github.com/NixOS/nixpkgs/pull/197010.

yes, I was thinking on that, maybe inside [profile]/etc/profile
-----BEGIN PGP SIGNATURE-----

iQFJBAEBCAAzFiEEvYwofabWO6y953lVmAk6gHJUa/MFAmS5mF8VHGRpc3RvcGlj
b0ByaXNldXAubmV0AAoJEJgJOoByVGvz/tQH+wV4gjAkFNKoerXo7mtEfiZcG95R
5w8qGk64oGZniNSadIIoGutswsQiMSsxcpt+oAueSYinkpjIz4DziNFz1ruld0ZN
HbigFkuQH5Fu9wMz1EJsHAU+xav/mMevkyM/vAJ0/EoKKdsdRFcn1w6G21rgdEDz
gR73SmVaEwJXCmClVrVtSVeGXGJAKzse3OcEGCsMILDpUCOwhzN33aG4vKRwmEsb
bNPTLZ6oq0vwwFZo8ZUsMstUXOtsQrJnIPOvw/B4ltWcBTRhxSf2ifAl+KYa6O8o
jQYJ4htzQ4RUJ3hTOgqZBQLdBHK2u/TkLR7JkqMlqTS3UAkOyOg9i0Z09xA=
=tiLU
-----END PGP SIGNATURE-----

M
M
Maxim Cournoyer wrote on 21 Jul 2023 03:35
(name . Distopico)(address . distopico@riseup.net)(address . 64605@debbugs.gnu.org)
87zg3qjbc2.fsf@gmail.com
Hi,

Distopico <distopico@riseup.net> writes:

Toggle quote (20 lines)
> On 2023-07-20, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>
>> Hello,
>>
>> Distopico <distopico@riseup.net> writes:
>>
>>> On 2023-07-20, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>>>
>>>> This looks like an upstream Qt problem. Have you searched if an issue
>>>> was known about it? Their tracker is at https://bugreports.qt.io/.
>>>
>>> Checking there looks like is already reported a similar issue
>>> https://bugreports.qt.io/browse/QTBUG-58508, I think that happens in
>>> Guix/Nix becase QT is trying to write inside the profile path
>>
>> It looks like we should apply this patch to completely disable QML disk
>> cache in Qt: https://github.com/NixOS/nixpkgs/pull/197010.
>
> yes, I was thinking on that, maybe inside [profile]/etc/profile

No, the patch is more definitive than that, it disables the QML disk
caching from qtdeclarative directly.

--
Thanks,
Maxim
M
M
Maxim Cournoyer wrote on 26 Aug 2023 04:26
(name . Distopico)(address . distopico@riseup.net)(address . 64605-done@debbugs.gnu.org)
87cyzaa68j.fsf@gmail.com
Hello,

Maxim Cournoyer <maxim.cournoyer@gmail.com> writes:

Toggle quote (27 lines)
> Hi,
>
> Distopico <distopico@riseup.net> writes:
>
>> On 2023-07-20, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> Distopico <distopico@riseup.net> writes:
>>>
>>>> On 2023-07-20, Maxim Cournoyer <maxim.cournoyer@gmail.com> wrote:
>>>>
>>>>> This looks like an upstream Qt problem. Have you searched if an issue
>>>>> was known about it? Their tracker is at https://bugreports.qt.io/.
>>>>
>>>> Checking there looks like is already reported a similar issue
>>>> https://bugreports.qt.io/browse/QTBUG-58508, I think that happens in
>>>> Guix/Nix becase QT is trying to write inside the profile path
>>>
>>> It looks like we should apply this patch to completely disable QML disk
>>> cache in Qt: https://github.com/NixOS/nixpkgs/pull/197010.
>>
>> yes, I was thinking on that, maybe inside [profile]/etc/profile
>
> No, the patch is more definitive than that, it disables the QML disk
> caching from qtdeclarative directly.

Installed with commit 1717c8a233b7fda3a10aabc061168c71317f883e.

Let me know if any caching problems persist.

--
Thanks,
Maxim
Closed
?