Bug 502694 - TypeError: Cannot read property 'popup' of null
Summary: TypeError: Cannot read property 'popup' of null
Status: RESOLVED FIXED
Alias: None
Product: Haruna
Classification: Applications
Component: generic (other bugs)
Version First Reported In: 1.3.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: george fb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-11 21:33 UTC by nozonyan89
Modified: 2025-04-12 16:43 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nozonyan89 2025-04-11 21:33:00 UTC
SUMMARY

Since v.1.3.1 or 1.3.2 my Arch packaged Haruna is not able to open right quick menu when right clicking on the haruna window. 

I have tried to run haruna via console to see what error came out and this is printed to terminal everytime I try rightclicking

unknown() : qrc:/qt/qml/org/kde/haruna/qml/Main.qml:228: TypeError: Cannot read property 'popup' of null

unknown() : qrc:/qt/qml/org/kde/haruna/qml/Main.qml:228: TypeError: Cannot read property 'popup' of null

unknown() : qrc:/qt/qml/org/kde/haruna/qml/Main.qml:228: TypeError: Cannot read property 'popup' of null

unknown() : qrc:/qt/qml/org/kde/haruna/qml/Main.qml:228: TypeError: Cannot read property 'popup' of null

I have opened a thread on arch bbs thinking it was a distro specific bug and they pointed me out to this line
https://invent.kde.org/multimedia/haruna/-/blob/master/src/qml/Main.qml?ref_type=heads#L227

STEPS TO REPRODUCE
1. open haruna
2. try to right click on haruna window
3. nothing at all happens, error output to terminal

OBSERVED RESULT

nothing at all happens, error output to terminal

EXPECTED RESULT

quick menu open

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arc Linux with latest linux kernel 6.14.1-arch1-1 (64-bit)
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION

Happens on both wayland and X.

Flatpak version works fine, menu opens correctly and no errors whatsoever.

I was hesitant to file a bug at first since I found it strange no one is mentioning it anywhere, but an user on the arch bbs confirmed this is an upstream issue.
Comment 1 george fb 2025-04-12 16:43:42 UTC
Git commit 8a2c03037f36a7d9c09ddb6a5ff171e7896241ec by George Florea Bănuș.
Committed on 12/04/2025 at 16:41.
Pushed by georgefb into branch 'master'.

Menus: rename ContextMenu to MpvContextMenu
       conflicts with the ContextMenu added in qt6.9

M  +1    -1    src/CMakeLists.txt
M  +2    -2    src/qml/Main.qml
R  +0    -0    src/qml/Menus/MpvContextMenu.qml [from: src/qml/Menus/ContextMenu.qml - 100% similarity]

https://invent.kde.org/multimedia/haruna/-/commit/8a2c03037f36a7d9c09ddb6a5ff171e7896241ec