bug#64605: HandBrake 1.5.1 hangs on startup due libQt5Qml

2023-07-13 Thread Distopico Vegan

HandBrake 1.5.1 hangs on startup and `dmesg` show the following error


```
 QQmlThread[]: segfault at 0 ip 000 sp ... 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
```


signature.asc
Description: PGP signature


bug#64605: HandBrake 1.5.1 hangs on startup due libQt5Qml

2023-07-20 Thread Maxim Cournoyer
Hello,

Distopico Vegan  writes:

> HandBrake 1.5.1 hangs on startup and `dmesg` show the following error
>
>
> ```
>  QQmlThread[]: segfault at 0 ip 000 sp ... 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





bug#64605: HandBrake 1.5.1 hangs on startup due libQt5Qml

2023-07-20 Thread Distopico

On 2023-07-20, Maxim Cournoyer  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 



signature.asc
Description: PGP signature


bug#64605: HandBrake 1.5.1 hangs on startup due libQt5Qml

2023-07-20 Thread Maxim Cournoyer
Hello,

Distopico  writes:

> On 2023-07-20, Maxim Cournoyer  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.

-- 
Thanks,
Maxim





bug#64605: HandBrake 1.5.1 hangs on startup due libQt5Qml

2023-07-20 Thread Distopico

On 2023-07-20, Maxim Cournoyer  wrote:

> Hello,
>
> Distopico  writes:
>
>> On 2023-07-20, Maxim Cournoyer  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


signature.asc
Description: PGP signature


bug#64605: HandBrake 1.5.1 hangs on startup due libQt5Qml

2023-07-20 Thread Maxim Cournoyer
Hi,

Distopico  writes:

> On 2023-07-20, Maxim Cournoyer  wrote:
>
>> Hello,
>>
>> Distopico  writes:
>>
>>> On 2023-07-20, Maxim Cournoyer  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





bug#64605: HandBrake 1.5.1 hangs on startup due libQt5Qml

2023-08-25 Thread Maxim Cournoyer
Hello,

Maxim Cournoyer  writes:

> Hi,
>
> Distopico  writes:
>
>> On 2023-07-20, Maxim Cournoyer  wrote:
>>
>>> Hello,
>>>
>>> Distopico  writes:
>>>
 On 2023-07-20, Maxim Cournoyer  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