Bug 470557 - Plugin and data env vars ignored resulting in data and plugins not found.
Summary: Plugin and data env vars ignored resulting in data and plugins not found.
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Snap Linux
: NOR normal
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-02 12:53 UTC by Scarlett Moore
Modified: 2023-11-03 15:08 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 Scarlett Moore 2023-06-02 12:53:09 UTC
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
***


STEPS TO REPRODUCE
1. Build and install snap
2. launch snap
3. Works but without plugins or default image textiles

OBSERVED RESULT
I have tried setting 
runtime:
    MARBLE_PLUGIN_PATH: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/marble/plugins
    MARBLE_DATA_PATH: $SNAP/usr/share/marble/data
buildtime:
        - "-DMARBLE_PLUGIN_INSTALL_PATH=/usr/lib/$CRAFT_ARCH_TRIPLET/qt5/plugins/"
        - "-DMARBLE_DATA_INSTALL_PATH=/usr/share/marble/data"

And every variation I could find on the interwebs to no avail. Marble can't find its plugins.

marble --show-info
scarlett@debian:~/kde-snaps/snapcraft-kde-applications$ marble --debug-info
marble(17289)/(default) \[31munknown\[0m: Map theme file does not exist: ""
marble(17289)/() \[31m\[34munknown\[0m: Failed to load map theme earth/srtm2/srtm2.dgml. Check your installation. No elevation will be returned.
marble(17289)/() \[31m\[34munknown\[0m: Starting to load Plugins.
marble(17289)/() \[31m\[34munknown\[0m: === MarbleDirs: ===
marble(17289)/() \[31m\[34munknown\[0m: Local Path: "/home/scarlett/snap/marble/x1/.local/share/marble"
marble(17289)/() \[31m\[34munknown\[0m: Plugin Local Path: "/home/scarlett/snap/marble/x1/.marble/plugins"
marble(17289)/() \[31m\[34munknown\[0m: 
marble(17289)/() \[31m\[34munknown\[0m: Marble Data Path (Run Time) : ""
marble(17289)/() \[31m\[34munknown\[0m: Marble Data Path (Compile Time): "/usr/share/marble/data"
marble(17289)/() \[31m\[34munknown\[0m: 
marble(17289)/() \[31m\[34munknown\[0m: Marble Plugin Path (Run Time) : ""
marble(17289)/() \[31m\[34munknown\[0m: Marble Plugin Path (Compile Time): "/usr/lib/x86_64-linux-gnu/marble/plugins"
marble(17289)/() \[31m\[34munknown\[0m: 
marble(17289)/() \[31m\[34munknown\[0m: System Path: "/snap/marble/x1/usr/bin/data"
marble(17289)/() \[31m\[34munknown\[0m: Plugin System Path: "/snap/marble/x1/usr/bin/plugins"
marble(17289)/() \[31m\[34munknown\[0m: ===================
marble(17289)/(default) \[31munknown\[0m: No plugins loaded. Please check if the plugins were installed in the correct path, or if any errors occurred while loading plugins.
marble(17289)/() \[31m\[34munknown\[0m: void Marble::PluginManagerPrivate::loadPlugins() Time elapsed: 0 ms
marble(17289)/() \[31m\[34munknown\[0m: bool Marble::BookmarkManager::loadFile(const QString&) Loading Bookmark File: ""
marble(17289)/(default) \[31m\[34munknown\[0m: Start: MarblePart::readSettings()
marble(17289)/() \[31m\[34munknown\[0m: added download policy ("a.tile.openstreetmap.org", "b.tile.openstreetmap.org", "c.tile.openstreetmap.org") 1 20
marble(17289)/() \[31m\[34munknown\[0m: added download policy ("a.tile.openstreetmap.org", "b.tile.openstreetmap.org", "c.tile.openstreetmap.org") 0 2
marble(17289)/() \[31m\[34munknown\[0m: DgmlBlendingTagHandler::parse "AlphaBlending"
marble(17289)/() \[31m\[34munknown\[0m: DgmlBlendingTagHandler::parse "AlphaBlending"
marble(17289)/() \[31m\[34munknown\[0m: DgmlBlendingTagHandler::parse "AlphaBlending"
marble(17289)/() \[31m\[34munknown\[0m: Map theme file successfully loaded: "/home/scarlett/snap/marble/x1/.local/share/marble/maps/earth/openfiremap/openfiremap.dgml"
marble(17289)/() \[31m\[34munknown\[0m: DGML2 Name       :  "OpenFireMap"
marble(17289)/() \[31m\[34munknown\[0m: Changing Planet
marble(17289)/() \[31m\[34munknown\[0m: SunLocator::setPlanet(Planet*)
marble(17289)/() \[31m\[34munknown\[0m: adding container: "cityplacemarks.cache"
marble(17289)/() \[31m\[34munknown\[0m: Starting placemark loading timer
marble(17289)/() \[31m\[34munknown\[0m: adding container: "baseplacemarks.cache"
marble(17289)/() \[31m\[34munknown\[0m: Starting placemark loading timer
marble(17289)/() \[31m\[34munknown\[0m: adding container: "elevplacemarks.cache"
marble(17289)/() \[31m\[34munknown\[0m: Starting placemark loading timer
marble(17289)/() \[31m\[34munknown\[0m: adding container: "otherplacemarks.cache"
marble(17289)/() \[31m\[34munknown\[0m: Starting placemark loading timer
marble(17289)/() \[31m\[34munknown\[0m: starting parser for "cityplacemarks.cache"
marble(17289)/() \[31m\[34munknown\[0m: starting parser for "baseplacemarks.cache"
marble(17289)/() \[31m\[34munknown\[0m: adding container: "boundaryplacemarks.cache"
marble(17289)/() \[31m\[34munknown\[0m: No Default Placemark Source File for  "cityplacemarks"
marble(17289)/() \[31m\[34munknown\[0m: Starting placemark loading timer
marble(17289)/() \[31m\[34munknown\[0m: No Default Placemark Source File for  "baseplacemarks"
marble(17289)/() \[31m\[34munknown\[0m: starting parser for "elevplacemarks.cache"
marble(17289)/() \[31m\[34munknown\[0m: THEME CHANGED: *** "earth/openfiremap/openfiremap.dgml"
marble(17289)/() \[31m\[34munknown\[0m: No Default Placemark Source File for  "elevplacemarks"
marble(17289)/() \[31m\[34munknown\[0m: In MarbleMap the property  "clouds_data" was set to  false
marble(17289)/() \[31m\[34munknown\[0m: GeoSceneSettings: Property  "clouds_data" to false
marble(17289)/() \[31m\[34munknown\[0m: starting parser for "otherplacemarks.cache"
marble(17289)/() \[31m\[34munknown\[0m: starting parser for "boundaryplacemarks.cache"
marble(17289)/() \[31m\[34munknown\[0m: Base tile  "maps/earth/openstreetmap/0/0/0.png"  is missing for source dir  "earth/openstreetmap"
marble(17289)/() \[31m\[34munknown\[0m: Base tile  "maps/earth/openstreetmap/0/0/0.png"  is missing for source dir  "earth/openstreetmap"
marble(17289)/(default) \[31munknown\[0m: Base tiles for "earth/openstreetmap" not available. Skipping all texture layers.
marble(17289)/() \[31m\[34munknown\[0m: Base tile  "maps/earth/humanitarian/0/0/0.png"  is missing for source dir  "earth/humanitarian"
marble(17289)/() \[31m\[34munknown\[0m: Base tile  "maps/earth/humanitarian/0/0/0.png"  is missing for source dir  "earth/humanitarian"
marble(17289)/() \[31m\[34munknown\[0m: No Default Placemark Source File for  "otherplacemarks"
marble(17289)/() \[31m\[34munknown\[0m: No Default Placemark Source File for  "boundaryplacemarks"
marble(17289)/(default) \[31munknown\[0m: Base tiles for "earth/humanitarian" not available. Skipping all texture layers.
marble(17289)/() \[31m\[34munknown\[0m: Base tile  "maps/earth/hillshading/0/0/0.png"  is missing for source dir  "earth/hillshading"
marble(17289)/() \[31m\[34munknown\[0m: Base tile  "maps/earth/hillshading/0/0/0.png"  is missing for source dir  "earth/hillshading"
marble(17289)/(default) \[31munknown\[0m: Base tiles for "earth/hillshading" not available. Skipping all texture layers.
marble(17289)/() \[31m\[34munknown\[0m: enabling texture "openfiremap"
marble(17289)/() \[31m\[34munknown\[0m: Style reset requested.
marble(17289)/() \[31m\[34munknown\[0m: In MarbleMap the property  "clouds_data" was set to  true
marble(17289)/() \[31m\[34munknown\[0m: GeoSceneSettings: Property  "clouds_data" to true
marble(17289)/() \[31m\[34munknown\[0m: About to clear VolatileTileCache
marble(17289)/() \[31m\[34munknown\[0m: Cleared Volatile Cache!
marble(17289)/() \[31m\[34munknown\[0m: In MarbleMap the property  "citylights" was set to  false
marble(17289)/() \[31m\[34munknown\[0m: GeoSceneSettings: Property  "citylights" to false
marble(17289)/() \[31m\[34munknown\[0m: detaching!
marble(17289)/(default) \[31m\[34munknown\[0m: Updating Settings ...
marble(17289)/() \[31m\[34munknown\[0m: Style reset requested.
marble(17289)/() \[31m\[34munknown\[0m: kiloBytes 102400
marble(17289)/() \[31m\[34munknown\[0m: "Setting tile cache to 102400 kilobytes."
marble(17289)/() \[31m\[34munknown\[0m: updateMapThemeModel
marble(17289)/() \[31m\[34munknown\[0m: added download policy ("a.tile.openstreetmap.org", "b.tile.openstreetmap.org", "c.tile.openstreetmap.org") 1 20
marble(17289)/() \[31m\[34munknown\[0m: added download policy ("a.tile.openstreetmap.org", "b.tile.openstreetmap.org", "c.tile.openstreetmap.org") 0 2
marble(17289)/() \[31m\[34munknown\[0m: DgmlBlendingTagHandler::parse "AlphaBlending"
marble(17289)/() \[31m\[34munknown\[0m: DgmlBlendingTagHandler::parse "AlphaBlending"
marble(17289)/() \[31m\[34munknown\[0m: DgmlBlendingTagHandler::parse "AlphaBlending"
marble(17289)/() \[31m\[34munknown\[0m: Map theme file successfully loaded: "/home/scarlett/snap/marble/x1/.local/share/marble/maps/earth/openfiremap/openfiremap.dgml"
marble(17289)/(default) \[31munknown\[0m: QFSFileEngine::open: No file name specified
[17425:17431:0602/054319.853990:ERROR:command_buffer_proxy_impl.cc(141)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.

reveals runtime is not being set! Does marble not honor it's own env vars?
    MARBLE_PLUGIN_PATH: $SNAP/usr/lib/$CRAFT_ARCH_TRIPLET/marble/plugins
    MARBLE_DATA_PATH: $SNAP/usr/share/marble/data

EXPECTED RESULT
plugins and data to be found.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Snap
(available in About System)
KDE Plasma Version: N/A
KDE Frameworks Version: 106
Qt Version: 5.15.9

ADDITIONAL INFORMATION
I am trying to snap this application
Comment 1 Scarlett Moore 2023-11-03 15:08:18 UTC
Fixed the issue in the snaps themselves