Stellarium crash when quit by Command+Q while running script

Bug #1285268 reported by henrysky
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
High
Guillaume Chereau

Bug Description

Stellarium crash when quit by Command+Q while running script on Mac OSX 10.9.2 with Stellarium 0.13.0

Related branches

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Please show latest run log

Changed in stellarium:
importance: Undecided → High
tags: added: mac-os-x scripting
Revision history for this message
henrysky (henry-leung-2010) wrote :
Download full text (3.9 KiB)

Video showing the situation: https://drive.google.com/file/d/0BxwVC1JjuhyvSXZyUTRIYzJiMTg/edit?usp=sharing
I press command+Q to quit, then the screen become grey....

2014-02-27T01:46:34
Unsupported Mac version
Compiled using Clang 5.0.0
Qt runtime version: 5.2.1
Qt compilation version: 5.2.1
Addressing mode: 64-bit
Model Name: MacBook Air
Model Identifier: MacBookAir5,2
Processor Name: Intel Core i5
Processor Speed: 1.8 GHz
Number of Processors: 1
Memory: 4 GB
Chipset Model: Intel HD Graphics 4000
VRAM (Total): 1024 MB
/Applications/Stellarium.app/Contents/MacOS/stellarium
 -------------------------------------------------------
[ This is Stellarium 0.13.0 - http://www.stellarium.org ]
[ Copyright (C) 2000-2014 Fabien Chereau et al ]
 -------------------------------------------------------
Writing log file to: "/Users/Henry/Library/Application Support/Stellarium/log.txt"
File search paths:
  0 . "/Users/Henry/Library/Application Support/Stellarium"
  1 . "/Applications/Stellarium.app/Contents/Resources"
Config file is: "/Users/Henry/Library/Application Support/Stellarium/config.ini"
Couldn't load translations for language "system"
Empty translation file for language "system"
OpenGL versions supported: "1.1, 1.2, 1.3, 1.4, 1.5, 2.0, 2.1"
Driver version string: "2.1 INTEL-8.24.11"
GL vendor is "Intel Inc."
GL renderer is "Intel HD Graphics 4000 OpenGL Engine"
Cache directory is: "/Users/Henry/Library/Caches/stellarium/stellarium"
Couldn't load translations for language "C"
Empty translation file for language "C"
Sky language is "C"
Couldn't load translations for language "C"
Empty translation file for language "C"
Application language is "C"
Loading Solar System data ...
Loading star data ...
"Loading "/Applications/Stellarium.app/Contents/Resources/stars/default/stars_0_0v0_4.cat": 0_0v0_4; 4979"
"Loading "/Applications/Stellarium.app/Contents/Resources/stars/default/stars_1_0v0_4.cat": 1_0v0_4; 21800"
"Loading "/Applications/Stellarium.app/Contents/Resources/stars/default/stars_2_0v0_4.cat": 2_0v0_4; 150779"
"Loading "/Applications/Stellarium.app/Contents/Resources/stars/default/stars_3_1v0_3.cat": 3_1v0_3; 428466"
"Loading "/Users/Henry/Library/Application Support/Stellarium/stars/default/stars_4_1v0_1.cat": 4_1v0_3; 1702042"
Finished loading star catalogue data, max_geodesic_level: 4
navigation/preset_sky_time is a double - treating as jday: 2.45151e+06
Loaded 10051 NGC records
Loading NGC name data ...
Loaded 414 / 414 NGC name records successfully
Use vertex shader for atmosphere rendering.
Loading star names from "/Applications/Stellarium.app/Contents/Resources/skycultures/western/star_names.fab"
Loaded 237 / 237 common star names
Loading star names from "/Applications/Stellarium.app/Contents/Resources/stars/default/name.fab"
Loaded 4359 / 4359 scientific star names
Loading variable stars from "/Applications/Stellarium.app/Contents/Resources/stars/default/gcvs_hip_part.dat"
Loaded 6886 / 6886 variable stars
Loaded 88 / 88 constellation records successfully for culture "western"
Loaded 85 / 85 constellation art records successfully for culture "western"
Loaded 89 / 89 con...

Read more...

Revision history for this message
henrysky (henry-leung-2010) wrote :

The first thing I found is that stellarium will also crash on Windows while runnning the scripts when I attempted to end the task in windows task manager (but nothing happen for pressing alt+F4).....
The second thing I found that even I haven't set any shortcut key for quitting...
On both windows and Mac, I still able to use alt+F4 and command+q which are default shortcut for quitting to quit stellarium... (A bug???)

I think that somehow stellarium will crash when being try to terminate externally while running script....
Can you find some way to disable the command+q shortcut, I think it is the solution of this bug....I mean the action after pressing command+q is handled by stellarium but not the system to terminate stellarium....
It is because It's OK to quit by pressing the quit button inside stellarium while running script....but not the command+q

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Can you attach crash trace?

Revision history for this message
henrysky (henry-leung-2010) wrote :

I just created a dump when the stellarium become unresponsive using spindump which is built-in in macosx, don't know if this is useful...

I use activity monitor in mac osx to quit or force quit the unresponsive stellarium, but it just not quiting or it quits without crash report (but don't like this image: http://fairerplatform.com/wp-content/uploads/2012/04/force-quit-activity-monitor1.jpg, the activity monitor shows that stellarium is NOT unresponsive and stellarium use 9X% of CPU)

Revision history for this message
henrysky (henry-leung-2010) wrote :
Revision history for this message
Guillaume Chereau (guillaume-chereau) wrote :

This branch should fix the problem at least on OSX:

https://code.launchpad.net/~guillaume-chereau/stellarium/fix-quit

Not tested on Windows.

Changed in stellarium:
status: New → In Progress
assignee: nobody → Guillaume Chereau (guillaume-chereau)
milestone: none → 0.13.0
Revision history for this message
Guillaume Chereau (guillaume-chereau) wrote :

I merged the branch. Please let me know if the bug is still present.

Revision history for this message
Alexander Wolf (alexwolf) wrote :
Changed in stellarium:
status: In Progress → Fix Committed
Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.