Log function detect OSX system language and OpenGL version incorrectly

Bug #1306599 reported by henrysky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Confirmed
Low
Unassigned

Bug Description

Log function detect OSX system language and OpenGL version incorrectly
By default, Stellarium should display in the language that system is using....But on OSX, Stellarium cannot detect the system language.
The OpenGL version supported by my macbook air mid-2012 should be up to 4.1, but stellarium display it as 2.1

My Log:
2014-04-11T21:08:52
Mac OS X 10.9 series
Compiled using Clang 5.1.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"
Finished loading star catalogue data, max_geodesic_level: 3
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 constellation names
Loading constellation boundary data ...
Loaded 782 constellation boundary segments
StelPainter: initGLShaders()...
StelPainter: initGLShaders()... done
Creating GUI ...

Tags: mac-os-x

Related branches

tags: added: mac-os-x
Changed in stellarium:
importance: Undecided → Low
Revision history for this message
Alexander Wolf (alexwolf) wrote :

A fix for locale issue has been committed as revision 6722 of the trunk branch in Stellarium's Bazaar repository at Launchpad:
http://bazaar.launchpad.net/~stellarium/stellarium/trunk/revision/6722

Changed in stellarium:
milestone: none → 0.13.0
assignee: nobody → Alexander Wolf (alexwolf)
status: New → In Progress
Revision history for this message
Alexander Wolf (alexwolf) wrote :

About detecting OpenGL version incorrectly - can you give more info?

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

http://support.apple.com/kb/HT5942
My Macbook air mid-2012 should support up to OpenGL 4.1
I have done a test to confirm (the image)...
But in the log, stellarium only detect my computer only support up to OpenGL2.1

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

This is very odd because Stellarium getting info about OpenGL version from Qt and "driver".

Line below was get from Qt:
OpenGL versions supported: "1.1, 1.2, 1.3, 1.4, 1.5, 2.0, 2.1"

Line below was get from driver (reinterpret_cast<const char*>(glGetString(GL_VERSION))):
Driver version string: "2.1 INTEL-8.24.11"

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

Maybe this is a Qt bug???
I get 4.1 Intel-8.24.11 from another software (I am not sure if they are using Qt or not)

Changed in stellarium:
assignee: Alexander Wolf (alexwolf) → nobody
Revision history for this message
Alexander Wolf (alexwolf) wrote :

Henry, can you check latest code?

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

no, the driver version string is still 2.1 INTEL-8.26.34

Changed in stellarium:
milestone: 0.13.0 → 0.13.1
status: In Progress → Opinion
Changed in stellarium:
milestone: 0.13.1 → none
Changed in stellarium:
status: Opinion → Confirmed
Revision history for this message
gzotti (georg-zotti) wrote :

I am pretty sure the Mac has to be initialized in some different way to enable higher OpenGL context. Some developer with a physical Mac could find this out. As always, patch welcome!

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

Could you check this issue in last beta?

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

Still the same, I did notice the last beta is significantly slower (Things not smooth) than current stable on MacOS 10.12.3

gzotti (georg-zotti)
Changed in stellarium:
assignee: nobody → Guillaume Chereau (guillaume-chereau)
Revision history for this message
Guillaume Chereau (guillaume-chereau) wrote :

At least for the OpenGL version, this is expected since stellarium doesn't set OSX 'Core Profile', and specifically set the version to 2.1 in the code. Somehow I don't think this should affect the speed though.

Revision history for this message
gzotti (georg-zotti) wrote :

Ah, this means Macs really deliver a 2.1 format, while e.g. on Windows the system is allowed to deliver higher format? As long as the requested 2.1 does not cause problems, it should be OK. The bug can be closed then, IMHO: locale is fixed, and 2.1 detection is correct. Maybe the log messages can be clarified?

Revision history for this message
Alexander Wolf (alexwolf) wrote :
Changed in stellarium:
assignee: Guillaume Chereau (guillaume-chereau) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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