Opened 12 years ago

Closed 12 years ago

#4639 closed defect (duplicate)

Mythweather only displays blank screen

Reported by: eric.bosch@… Owned by: stuartm
Priority: trivial Milestone: 0.22
Component: mythweather Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

Recently, mythweather stopped displaying weather information. I have removed all of my weather screens, and added them all back in, and to no avail. In Global settings, if I do not select background retrieval of images, then it segfaults

Attachments (3)

weathersourcesettings.sql (4.9 KB) - added by eric.bosch@… 12 years ago.
mythconverg weathersourcesettings dump file
weathersourcesettings.new.sql (5.1 KB) - added by eric.bosch@… 12 years ago.
WeatherSourcesettings? after truncating and reconfiguring mythweather
gdb.txt (26.1 KB) - added by Ash Bostock <abostock@…> 12 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 12 years ago by stuartm

Status: newassigned

Could you attached a dump of the weathersourcesettings table?

Could you also try the following and then re-add the screens?: TRUNCATE weathersourcesettings; TRUNCATE weatherscreens; TRUNCATE weatherdatalayout;

The segfault is probably related but I'll deal with it separately. A backtrace would be nice, but may not be needed.

Changed 12 years ago by eric.bosch@…

Attachment: weathersourcesettings.sql added

mythconverg weathersourcesettings dump file

comment:2 Changed 12 years ago by eric.bosch@…

I will truncate those tables and set it up again, and will let you know how it goes. Thanks.

Changed 12 years ago by eric.bosch@…

WeatherSourcesettings? after truncating and reconfiguring mythweather

comment:3 Changed 12 years ago by eric.bosch@…

I truncated the 3 tables and reconfigured the weather screens. Seems to work now, although I have not yet reconfigured on host gandalf yet.

comment:4 Changed 12 years ago by stuartm

Priority: minortrivial
Severity: mediumlow
Status: assignedstarted

Seems like mythweather doesn't handle old scripts being removed very well. I'll see what needs to be done to fix that.

comment:5 Changed 12 years ago by stuartm

Milestone: 0.210.22
Status: startedassigned

Changed 12 years ago by Ash Bostock <abostock@…>

Attachment: gdb.txt added

comment:6 Changed 12 years ago by Ash Bostock <abostock@…>

I also had this problem around the time the scripts were moved. Following the advice listed I truncated all 3 mythweather tables and re-added the screens. This worked fine and stopped the segfaulting.

I've just tried to view the weather just now and I'm seeing that same behavior again, even though I haven't touched the mythweather scripts, or changed any screens again since.

Last lines of the mythfrontend log are...

2008-02-21 18:27:03.688 Starting update of BBC-Current-XML 2008-02-21 18:27:03.697 Starting update of BBC-3day-XML 2008-02-21 18:27:03.708 Starting update of Animated-Map-Download 2008-02-21 18:27:03.744 XMLParse::LoadTheme? using /usr/local/share/mythtv/themes/default/weather-ui.xml QPainter::begin: Cannot paint null pixmap QPainter::setPen: Will be reset by begin() Segementation fault

Running 16178 using the Retro theme.

I can't manage to get the seg fault under gdb as when it gets to that point it just shows the blank theme of mythweather. Where it would normally crash at that point, instead it just freezes forever.

I've attached the gdb.txt output I got in case it is still useful.

comment:7 Changed 12 years ago by stuartm

(In [16321]) Cleanup the default weather theme and try to avoid segfaulting if a theme lacks area tags for a container.

Should fix the problems reported by Ash Bostock in #4639

Refs #4639

comment:8 Changed 12 years ago by stuartm

Resolution: duplicate
Status: assignedclosed

I'll address the issue of handling missing scripts as part of the mythweather tasks ticket.

Note: See TracTickets for help on using tickets.