Bug 17364 - meteo-qt crashes at startup in fresh installation
Summary: meteo-qt crashes at startup in fresh installation
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: https://github.com/dglent/meteo-qt/is...
Whiteboard: MGA5-64-OK MGA5-32-OK advisory
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2015-12-19 09:51 CET by Dimitrios Glentadakis
Modified: 2015-12-28 20:24 CET (History)
1 user (show)

See Also:
Source RPM: meteo-qt-0.8.2-1.mga5.src.rpm
CVE:
Status comment:


Attachments

Description Dimitrios Glentadakis 2015-12-19 09:51:37 CET
With the version 0.8.2 when starting meteo-qt for the first time (without the configuration file ~/.config/meteo-qt/meteo-qt.conf) the program crashes with the following backtrace:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/meteo_qt/meteo_qt.py", line 527, in config
    self.config_save()
  File "/usr/lib/python3.4/site-packages/meteo_qt/meteo_qt.py", line 511, in config_save
    if (self.traycolor != traycolor or self.tray_type != tray_type or
AttributeError: 'SystemTrayIcon' object has no attribute 'tray_type'

Steps to reproduce it:
1- Remove the configuration file: rm .config/meteo-qt/meteo-qt.conf
2- launch meteo-qt
3- Set a city from the configuration dialogue and press ok
4- No weather info in tray, because the crash

The version 0.8.8 in core/updates_testing solves this problem


Advisory:
========================

Meteo-qt crashes in a new installation at the first launch.
The version 0.8.8 fixes this problem.

References:
https://github.com/dglent/meteo-qt/issues/42
========================

Updated packages in core/updates_testing:
========================
meteo-qt-0.8.8-1.mga5.noarch.rpm

Source RPMs: 
meteo-qt-0.8.8-1.mga5.src.rpm




Reproducible: 

Steps to Reproduce:
Comment 1 James Kerr 2015-12-21 16:12:50 CET
Testing on mga5-64

# rpm -q meteo-qt
package meteo-qt is not installed

Installed package from Testing:

# rpm -q meteo-qt
meteo-qt-0.8.8-1.mga5

Launched meteo-qt from the menu. 
The systemtray icon appeared.
Right-clicked on icon and set city and display options.
Systemtray shows icon and temperature.
Pop-up shows city, temperature and weather

OK for mga5-64

Whiteboard: (none) => MGA5-64-OK

Comment 2 James Kerr 2015-12-21 16:40:18 CET
Testing on mga5-32

# rpm -q meteo-qt
package meteo-qt is not installed

Installed package from testing:

# rpm -q meteo-qt
meteo-qt-0.8.8-1.mga5

Launched meteo-qt from menu
Systemtray icon appeared
Right-clicked and set city and display options
Weather is displayed

OK for mga5-32

Whiteboard: MGA5-64-OK => MGA5-64-OK MGA5-32-OK

Comment 3 James Kerr 2015-12-21 16:46:12 CET
This update is now validated

The Advisory needs to be uploaded to SVN

The package can then be pushed to updates

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Rémi Verschelde 2015-12-28 13:30:40 CET

Whiteboard: MGA5-64-OK MGA5-32-OK => MGA5-64-OK MGA5-32-OK advisory

Comment 4 Mageia Robot 2015-12-28 20:24:20 CET
An update for this issue has been pushed to Mageia Updates repository.

http://advisories.mageia.org/MGAA-2015-0214.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.