Bug 458078 - Haruna crashes on startup
Summary: Haruna crashes on startup
Status: RESOLVED WORKSFORME
Alias: None
Product: Haruna
Classification: Applications
Component: generic (show other bugs)
Version: 0.10.3
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: george fb
URL:
Keywords:
: 463123 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-08-19 22:23 UTC by tobias
Modified: 2023-08-23 19:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Log from Terminal start (1.99 KB, text/x-log)
2022-08-19 22:23 UTC, tobias
Details
gdb log (3.72 KB, text/plain)
2022-08-20 22:47 UTC, tobias
Details
haruna log (5.19 KB, text/x-log)
2023-01-11 21:10 UTC, GoldBarb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tobias 2022-08-19 22:23:51 UTC
Created attachment 151437 [details]
Log from Terminal start

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

I will maybe provide a debug log, when I have the time.

STEPS TO REPRODUCE
1. Update Haruna
2. Start Haruna


OBSERVED RESULT
Crash.

EXPECTED RESULT
Haruna should start.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.15.60-1-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i3
Memory: 7.7 GiB of RAM
Graphics Processor: NVIDIA

ADDITIONAL INFORMATION

Haruna 0.8.0 works.
Compiled via https://aur.archlinux.org/packages/haruna
Comment 1 tobias 2022-08-20 22:47:21 UTC
Created attachment 151463 [details]
gdb log
Comment 2 tobias 2022-08-20 22:55:01 UTC
I compiled haruna with debug symbols now and hope that the log contains something useful, though I am not sure I did this correctly.
If not, maybe someone could tell me how to do it correctly.
Comment 3 george fb 2022-08-22 17:38:10 UTC
I tried it in a Manjaro VM and it worked fine. Try running it in a new user account.
Comment 4 tobias 2022-08-22 19:09:37 UTC
Note: I will also try it with a second clean account, but for now:

I just tried it again (on the usual account) and it seems to be a problem related to Wayland (and maybe Nvidia; one guess would be, that you can't replicate it, because in a VM you usually don't have Nvidia):
If I use:
$ QT_QPA_PLATFORM=xcb haruna
Haruna starts.

If I use:
$ haruna -platform wayland
Haruna fails to start.
Comment 5 tobias 2022-08-22 19:40:07 UTC
(In reply to george fb from comment #3)
> I tried it in a Manjaro VM and it worked fine. Try running it in a new user
> account.

Update:
I now tried it with a new user, with the same result as above.
Comment 6 george fb 2022-08-22 21:09:32 UTC
I have no idea what could cause it.
I tried it on wayland, on my opensuse tw system with nvidia, and it worked.

Try the flatpak maybe.
Comment 7 tobias 2022-08-22 21:27:26 UTC
(In reply to george fb from comment #6)
> I have no idea what could cause it.
> I tried it on wayland, on my opensuse tw system with nvidia, and it worked.
> 
> Try the flatpak maybe.

I guess the only possible explanations left are:
- Manjaro has some config included in vanilla manjaro versions that is causing this
- or there is some kind of "bug fix" in newer versions of dependency software that is maybe not included in Manjaro yet, or vice versa.

Will try the flatpak (I assume that includes the dependencies bundled with the software?).
Comment 8 tobias 2022-08-31 18:59:35 UTC
Still a problem with 0.9.1.

But I tried the Flatpak version now and it works (as expected), so it seems to be a problem with my dependency packages installed.
Comment 9 george fb 2022-11-08 17:52:24 UTC
This could be caused by the cache, if you still encounter this problem try deleting your cache.
Comment 10 tobias 2022-11-08 19:44:48 UTC
(In reply to george fb from comment #9)
> This could be caused by the cache, if you still encounter this problem try
> deleting your cache.

I tried deleting the cache in "/home/[username]/.cache/KDE/haruna", but it still crashes.
Comment 11 george fb 2022-12-16 19:03:51 UTC
*** Bug 463123 has been marked as a duplicate of this bug. ***
Comment 12 Ricky 2022-12-16 22:11:40 UTC
Deleting cache does not help in this case.

haruna fails to start with the same message: unknown() : file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/Menu.qml:32:15: QML MenuItem: Binding loop detected for property "implicitWidth"
Comment 13 Ricky 2022-12-16 22:52:02 UTC
(In reply to Ricky from comment #12)
> Deleting cache does not help in this case.
> 
> haruna fails to start with the same message: unknown() :
> file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/Menu.qml:32:15:
> QML MenuItem: Binding loop detected for property "implicitWidth"

Some additional observations:

I checked running Haruna inside a VM on Arch.
Plasma 5.26.4
Frameworks 5.101.0 
Wayland 1.21.0-2

I still get the same messages however Haruna opens successfully. This indicates to me that those QML messages are just warnings?
The only major difference I see between running inside a VM and baremetal causing an issue is using a NVIDIA GPU which I use since those drivers were recently updated.
Comment 14 Ricky 2022-12-17 18:07:17 UTC
(In reply to Ricky from comment #13)
> (In reply to Ricky from comment #12)
> > Deleting cache does not help in this case.
> > 
> > haruna fails to start with the same message: unknown() :
> > file:///usr/lib/qt/qml/QtQuick/Controls.2/org.kde.desktop/Menu.qml:32:15:
> > QML MenuItem: Binding loop detected for property "implicitWidth"
> 
> Some additional observations:
> 
> I checked running Haruna inside a VM on Arch.
> Plasma 5.26.4
> Frameworks 5.101.0 
> Wayland 1.21.0-2
> 
> I still get the same messages however Haruna opens successfully. This
> indicates to me that those QML messages are just warnings?
> The only major difference I see between running inside a VM and baremetal
> causing an issue is using a NVIDIA GPU which I use since those drivers were
> recently updated.

Solved. Downgrading nvidia drivers to 520.56.06 and haruna successfully opens.
Comment 15 george fb 2022-12-18 07:05:37 UTC
What version did you have before?
Comment 16 Ricky 2022-12-18 20:58:30 UTC
(In reply to george fb from comment #15)
> What version did you have before?

525.60.11
Comment 17 tobias 2023-01-09 20:26:33 UTC
Still fails with:
Nvidia 525.78.01-1
Haruna 0.10.2
Comment 18 Ricky 2023-01-10 12:58:14 UTC
(In reply to tobias from comment #17)
> Still fails with:
> Nvidia 525.78.01-1
> Haruna 0.10.2

Even with QT_QPA_PLATFORM=xcb ?
Comment 19 tobias 2023-01-11 20:45:34 UTC
(In reply to Ricky from comment #18)
> (In reply to tobias from comment #17)
> > Still fails with:
> > Nvidia 525.78.01-1
> > Haruna 0.10.2
> 
> Even with QT_QPA_PLATFORM=xcb ?

That works (as I already said: https://bugs.kde.org/show_bug.cgi?id=458078#c4)

While using XWayland might be a workaround, it does not fix the problem.
And using XWayland is much slower (at least on my machine), I have switched to using mpv in the meantime.

It would be interesting to know whether this an Nvidia bug or whether Nvidia changed something that Haruna or its dependencies must adjust to.
Comment 20 GoldBarb 2023-01-11 21:10:18 UTC
Created attachment 155223 [details]
haruna log
Comment 21 GoldBarb 2023-01-11 21:13:50 UTC
Getting the same issue too. Haruna fails to open on NVIDIA drivers (525.78.01)

I followed the comments on https://bugs.kde.org/show_bug.cgi?id=458078#c14
This could be a NVIDIA issue since downgrading the drivers helps and Haruna loads up fine.

I am on Arch too, so maybe its an issue there too.. I am not entirely sure though.
Comment 22 george fb 2023-08-23 19:12:59 UTC
Closing, I can't reproduce and the provided information is not enough.