https://bugs.kde.org/show_bug.cgi?id=423586

            Bug ID: 423586
           Summary: KStars crashing at the startup when --script parameter
                    is used
           Product: kstars
           Version: 3.4.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: mutla...@ikarustech.com
          Reporter: alex....@mail.fliker09.tk
  Target Milestone: ---

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.
##

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to