Bug 338986 - I am trying to use Marble using QML in my Qt5 App. Unfortunately I get a crash
Summary: I am trying to use Marble using QML in my Qt5 App. Unfortunately I get a crash
Status: RESOLVED WORKSFORME
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR critical
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-10 18:09 UTC by drewjpotter
Modified: 2023-02-01 05:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description drewjpotter 2014-09-10 18:09:19 UTC
I am trying to use Marble using QML in my Qt5 App. Unfortunately I get a crash

I get the following error:

Module 'org.kde.edu.marble' does not contain a module identifier directive - it cannot be protected from external registrations.
QObject: Cannot create children for a parent that is in a different thread.
(Parent is MarbleDeclarativePlugin(0x7f89a40cfc00), parent's thread is QThread(0xb376e0), current thread is QThread(0xafc010)
QWidget: Cannot create a QWidget without QApplication
Aborted (core dumped)

The code:

    import QtQuick 2.0
    import QtWebKit 3.0
    import QtMultimedia 5.0
    //import QtAV 1.3
    import Ogre 1.0
    import Example 1.0
    import QtQuick.Controls 1.2
    import QtQuick.Layouts 1.1
    import QtWebKit.experimental 1.0
    import Qt.WebSockets 1.0
    import QtQuick.Controls.Styles 1.2
    import org.kde.edu.marble 0.11

    Rectangle {
        id: drewpotter
        width: 1200
        height: 600
        color: "#96cae8"
       

    MarbleWidget {
      projection: "Mercator"
      mapThemeId: "earth/openstreetmap/openstreetmap.dgml"
    }

    }


Any help would be appreciated.

Reproducible: Always

Steps to Reproduce:
1. Compile Qt5 App
2. Run App
3. App crashes

Actual Results:  
Module 'org.kde.edu.marble' does not contain a module identifier directive - it cannot be protected from external registrations.
QObject: Cannot create children for a parent that is in a different thread.
(Parent is MarbleDeclarativePlugin(0x7f89a40cfc00), parent's thread is QThread(0xb376e0), current thread is QThread(0xafc010)
QWidget: Cannot create a QWidget without QApplication
Aborted (core dumped)
Comment 1 Andrew Crouthamel 2018-11-12 02:54:35 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Andrew Crouthamel 2018-11-21 04:21:46 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Justin Zobel 2023-01-02 07:43:40 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2023-01-17 05:16:50 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2023-02-01 05:06:04 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!