Bug 423586 - KStars crashing at the startup when --script parameter is used
Summary: KStars crashing at the startup when --script parameter is used
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 3.4.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-27 14:50 UTC by Alex Fliker
Modified: 2020-07-02 18:56 UTC (History)
1 user (show)

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 Alex Fliker 2020-06-27 14:50:33 UTC
STEPS TO REPRODUCE
1. Run KStars with these parameters: --paused --script ~/Documents/jup_iss_1.kstars --dump ~/Documents/jup_iss_1.png --width 1920 --height 1200 


OBSERVED RESULT
KStars crashes with this output in the terminal:
$ kstars --paused --script ~/Documents/jup_iss_1.kstars --dump ~/Documents/jup_iss_1.png --width 1920 --height 1200           
Reading time zone rules
Upgrade existing user city db to support geographic elevation.
City table already contains "Elevation".
Loading city data
Loading User Information
Loading sky objects
org.kde.kstars: Processing  "unnamedstars.dat" , HTMesh Level 3
org.kde.kstars:   Sky Mesh Size:  512
org.kde.kstars: Loaded DSO catalog file:  "unnamedstars.dat"
Loading Large Magellanic Clouds (1%)
Loading Small Magellanic Clouds (1%)
Loading Milky Way (1%)
Loading Milky Way (20%)
Loading Milky Way (40%)
Loading Milky Way (60%)
Loading Milky Way (80%)
Loading Milky Way (100%)
Loading Constellation Boundaries (1%)
Loading Constellation Boundaries (10%)
Loading Constellation Boundaries (20%)
Loading Constellation Boundaries (30%)
Loading Constellation Boundaries (40%)
Loading Constellation Boundaries (50%)
Loading Constellation Boundaries (60%)
Loading Constellation Boundaries (70%)
Loading Constellation Boundaries (80%)
Loading Constellation Boundaries (90%)
Loading Constellation Boundaries (100%)
org.kde.kstars: "Star HD20,794 not found."
org.kde.kstars: "Star HD98,230 not found."
File opened:  "/usr/share/kstars/ngcic.dat"
org.kde.kstars: Loading NGC/IC objects
Loading NGC/IC objects (1%)
Loading NGC/IC objects (10%)
Loading NGC/IC objects (20%)
Loading NGC/IC objects (30%)
Loading NGC/IC objects (40%)
Loading NGC/IC objects (50%)
Loading NGC/IC objects (60%)
Loading NGC/IC objects (70%)
Loading NGC/IC objects (80%)
Loading NGC/IC objects (90%)
Loading NGC/IC objects (100%)
File opened:  "/home/alex/.local/share/kstars/comets.dat"
Loading Image URLs
org.kde.kstars: "Object named NGC 6050A not found"
"Could not set location named \"Chisinau\", \"\", \"Moldova\""
"Could not set time: 0 / 0 / 0 ; 0:0:0"
Script executed.
Loading satellites
QPaintDevice: Cannot destroy paint device that is being painted
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kstars path = /usr/bin pid = 7460
KCrash: Arguments: /usr/bin/kstars --paused --script /home/alex/Documents/jup_iss_1.kstars --dump /home/alex/Documents/jup_iss_1.png --width 1920 --height 1200 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi

[1]+  Stopped                 kstars --paused --script ~/Documents/jup_iss_1.kstars --dump ~/Documents/jup_iss_1.png --width 1920 --height 1200


EXPECTED RESULT
Launch and execute the script.


SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.19
KDE Plasma Version: 5.19.2
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2
Kernel Version: 5.4.0-38-generic
OS Type: 64-bit
Processors: 8 × Intel® Xeon® CPU E5450 @ 3.00GHz
Memory: 31.4 GiB of RAM
Graphics Processor: GeForce GTX 960/PCIe/SSE2

ADDITIONAL INFORMATION
Here is the script:
#!/bin/bash
#KStars DBus script: jup_iss_1
#by 
#last modified: 2020-06-27T02:56:06
#
dbus-send --dest=org.kde.kstars --print-reply /KStars org.kde.kstars.setGeoLocation string:"Chisinau" string:"" string:"Moldova"
dbus-send --dest=org.kde.kstars --print-reply /KStars org.kde.kstars.setLocalTime int32:2020 int32:6 int32:30 int32:4 int32:22 int32:52
dbus-send --dest=org.kde.kstars --print-reply /KStars org.kde.kstars.lookTowards string:"Jupiter"
dbus-send --dest=org.kde.kstars --print-reply /KStars org.kde.kstars.zoom double:160000.
##
Comment 1 Alex Fliker 2020-07-02 18:56:32 UTC
Fixed, commit message went here instead:
https://bugs.kde.org/show_bug.cgi?id=423582