Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Application fails at startup: qrc:/main.qml:681:5: Cannot assign object to list property "contentData" #774

Open
yurivict opened this issue Jan 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@yurivict
Copy link

yurivict commented Jan 5, 2024

Describe the bug

QQmlApplicationEngine failed to load component
qrc:/main.qml:681:5: Cannot assign object to list property "contentData"

To Reproduce
Run rpi-imager.

Expected behaviour
n/a

Screenshots or video
n/a

Desktop (please complete the following information):

  • OS: FreeBSD 14.0

The name of the OS you are trying to write
n/a

Are you using OS Customisation?
Patched out WiFi-related parts.

@yurivict yurivict added the bug Something isn't working label Jan 5, 2024
@maxnet
Copy link
Collaborator

maxnet commented Jan 6, 2024

Seems to be a problem that only affects the Qt 5.15 FreeBSD package.
Get the same error as you if I use that, but if I do "pkg install qt6" and turn the CMakeLists.txt around to prefer Qt 6 over 5 if both are found, then it does work fine.

fbsd-screenshot

At least to the point of starting.
Will leave the other problems like fixing disk enumeration (on Linux we outsource that to lsblk, but the lsblk package FreeBSD has does not have the "--json" option we use), and finding solutions to open raw disk devices as non-root user under FreeBSD, and unmounting storage if it is already mounted to you.

@maxnet
Copy link
Collaborator

maxnet commented Jan 6, 2024

Hmm, while it does start under Qt 6, the operating system window shows an empty list (even though if I add a console.log(osmodel.count) to the onClick of the "choose os" button it does print that it has 12 items).
So something with that wrong as well.

Does run fine under Qt 6 on other operating systems. (Our OSX build is Qt 6, although we still default to 5 for other OS).
So may be something FreeBSD or Qt subrelease specific as well.
Also noticed that FreeBSD ships a Qt version with KDE enhancements instead of stock Qt. Not sure if that may add potential bugs as well...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants