Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

Segmentation Fault during mythweather

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


johnnyjboss at gmail

Jan 19, 2010, 7:59 AM

Post #1 of 9 (1885 views)
Permalink
Segmentation Fault during mythweather

I tried to check the weather this morning and myth exits abruptly.

Here's normal logging:

2010-01-19 07:51:58.403 Loading window theme from
/usr/local/share/mythtv/themes/Mythbuntu/menu-ui.xml
2010-01-19 07:51:58.554 Loading menu theme from
/usr/local/share/mythtv/themes/defaultmenu//mainmenu.xml
2010-01-19 07:51:58.621 Found mainmenu.xml for theme 'Mythbuntu'
2010-01-19 07:51:59.073 MythContext: Connecting to backend server:
10.0.1.199:6543 (try 1 of 1)
2010-01-19 07:51:59.075 Using protocol version 50
2010-01-19 07:52:01.812 Loading menu theme from
/usr/local/share/mythtv/themes/defaultmenu//info_menu.xml
2010-01-19 07:52:03.455 SourceManager: NeedSourceFor: Unable to find
source for 8, +32.51,-096.51, 1
2010-01-19 07:52:03.455 SourceManager: NeedSourceFor: Unable to find
source for 5, http://images.weather.com/looper/archive/s_central_sat_720x486/,
1
2010-01-19 07:52:03.455 SourceManager: NeedSourceFor: Unable to find
source for 6, http://image.weather.com/images/maps/current/sc_curtemp_720x486.,
1
2010-01-19 07:52:03.455 SourceManager: NeedSourceFor: Unable to find
source for 5, http://images.weather.com/looper/archive/us_sc_9regradar_plus_us,
1
2010-01-19 07:52:03.463 Loading window theme from
/usr/local/share/mythtv/themes/Mythbuntu/weather-ui.xml
2010-01-19 07:52:03.497 SourceManager: NeedSourceFor: Unable to find
source for 8, +32.51,-096.51, 1
2010-01-19 07:52:03.497 SourceManager: NeedSourceFor: Unable to find
source for 5, http://images.weather.com/looper/archive/s_central_sat_720x486/,
1
2010-01-19 07:52:03.497 SourceManager: NeedSourceFor: Unable to find
source for 6, http://image.weather.com/images/maps/current/sc_curtemp_720x486.,
1
2010-01-19 07:52:03.497 SourceManager: NeedSourceFor: Unable to find
source for 5, http://images.weather.com/looper/archive/us_sc_9regradar_plus_us,
1
2010-01-19 07:52:03.499 Loading window theme from
/usr/local/share/mythtv/themes/Mythbuntu/weather-ui.xml
QObject::connect: Cannot connect (null)::newData(QString, units_t,
DataMap) to WeatherScreen::newData(QString, units_t, DataMap)

I haven't messed with Weather since I got it working a few days back.

I can reproduce it if I restart and simply goto InfoCenter --> weather

Here's the last part of the -v main logging when I tried it again:

2010-01-19 08:02:45.687 MythUIImage::LoadImage found in cache
:watermark-settings.png---1x-1.png: RefCount = 41
2010-01-19 08:02:45.688 MythUIImage::LoadImage(-1342842200,
watermark/settings.png) Object watermark
2010-01-19 08:02:45.688 MythUIImage::LoadImage found in cache
:watermark-settings.png---1x-1.png: RefCount = 42
2010-01-19 08:02:45.689 MythUIImage::LoadImage(-1342841648,
watermark/settings.png) Object watermark
2010-01-19 08:02:45.689 MythUIImage::LoadImage found in cache
:watermark-settings.png---1x-1.png: RefCount = 43
2010-01-19 08:02:45.689 MythUIImage::LoadImage(-1342839680,
watermark/netflix.png) Object watermark
2010-01-19 08:02:45.689 MythUIImage::LoadImage Not Found in cache.
Loading Directly :watermark/netflix.png:
2010-01-19 08:02:45.690 Saved to Cache
(/home/johnny/.mythtv/themecache/Mythbuntu.840.525/watermark-netflix.png---1x-1.png)
2010-01-19 08:02:45.690 MythUIHelper::CacheImage : Cache Count = :92: size :84:
2010-01-19 08:02:45.690 MythUIImage::LoadImage Image is NULL
:watermark/netflix.png:
2010-01-19 08:02:45.691 MythUIImage::LoadImage(-1342838216,
watermark/netflix.png) Object watermark
2010-01-19 08:02:45.691 MythUIImage::LoadImage Not Found in cache.
Loading Directly :watermark/netflix.png:
2010-01-19 08:02:45.691 MythUIImage::LoadImage(-1342829256,
watermark/dvd.png) Object watermark
2010-01-19 08:02:45.692 Saved to Cache
(/home/johnny/.mythtv/themecache/Mythbuntu.840.525/watermark-netflix.png---1x-1.png)
2010-01-19 08:02:45.692 MythUIImage::LoadImage found in cache
:watermark-dvd.png---1x-1.png: RefCount = 69
2010-01-19 08:02:45.692 MythUIHelper::CacheImage : Cache Count = :92: size :84:
2010-01-19 08:02:45.692 MythUIImage::LoadImage Image is NULL
:watermark/netflix.png:
2010-01-19 08:02:45.692 MythUIImage::LoadImage(-1342835168,
watermark/netflix.png) Object watermark
2010-01-19 08:02:45.692 MythUIImage::LoadImage Not Found in cache.
Loading Directly :watermark/netflix.png:
2010-01-19 08:02:45.692 MythUIImage::LoadImage(-1342826480,
watermark/dvd.png) Object watermark
2010-01-19 08:02:45.693 MythUIImage::LoadImage found in cache
:watermark-dvd.png---1x-1.png: RefCount = 70
2010-01-19 08:02:45.693 Saved to Cache
(/home/johnny/.mythtv/themecache/Mythbuntu.840.525/watermark-netflix.png---1x-1.png)
2010-01-19 08:02:45.693 MythUIHelper::CacheImage : Cache Count = :92: size :84:
2010-01-19 08:02:45.693 MythUIImage::LoadImage Image is NULL
:watermark/netflix.png:
2010-01-19 08:02:45.693 MythUIImage::LoadImage(-1342833616,
watermark/netflix.png) Object watermark
2010-01-19 08:02:45.694 MythUIImage::LoadImage Not Found in cache.
Loading Directly :watermark/netflix.png:
2010-01-19 08:02:45.694 Saved to Cache
(/home/johnny/.mythtv/themecache/Mythbuntu.840.525/watermark-netflix.png---1x-1.png)
2010-01-19 08:02:45.695 MythUIHelper::CacheImage : Cache Count = :92: size :84:

What does netflix have to do with mythweather?

The Segmentation fault is recorded in kern.log:

Jan 19 08:02:47 mythrevo kernel: [ 321.158987] mythfrontend[1622]:
segfault at 30 ip 035186a6 sp bff75dc0 error 4 in
libmythweather.so[34f6000+51000]
Jan 19 08:05:37 mythrevo kernel: [ 490.944926] mythfrontend[1698]:
segfault at 30 ip 07bc76a6 sp bfb962a0 error 4 in
libmythweather.so[7ba5000+51000]

I'm using the latest updated version for SVN.

Do I need to post my compile options?
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Jan 19, 2010, 8:57 AM

Post #2 of 9 (1804 views)
Permalink
Re: Segmentation Fault during mythweather [In reply to]

On 01/19/2010 10:59 AM, Johnny Walker wrote:
> I tried to check the weather this morning and myth exits abruptly.
>

I didn't read the detailed logs, but if you haven't had MythWeather
working since upgrading, I would recommend clearing and reconfiguring:

cat << "EOF" | mysql -umythtv -p mythconverg
DROP TABLE IF EXISTS weathersourcesettings;
DROP TABLE IF EXISTS weatherscreens;
DROP TABLE IF EXISTS weatherdatalayout;
DELETE FROM settings WHERE value = 'WeatherDBSchemaVer';
EOF

Then restart the frontend and reconfigure MythWeather.

If it has been working, perhaps it's just a transient error on the source.

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


scott at alfter

Jan 20, 2010, 12:34 PM

Post #3 of 9 (1773 views)
Permalink
Re: Segmentation Fault during mythweather [In reply to]

On 19 Jan 10 08:57, Michael T. Dean wrote:
> On 01/19/2010 10:59 AM, Johnny Walker wrote:
>> I tried to check the weather this morning and myth exits abruptly.
>
> I didn't read the detailed logs, but if you haven't had MythWeather
> working since upgrading, I would recommend clearing and reconfiguring:
>
> cat<< "EOF" | mysql -umythtv -p mythconverg
> DROP TABLE IF EXISTS weathersourcesettings;
> DROP TABLE IF EXISTS weatherscreens;
> DROP TABLE IF EXISTS weatherdatalayout;
> DELETE FROM settings WHERE value = 'WeatherDBSchemaVer';
> EOF
>
> Then restart the frontend and reconfigure MythWeather.

The weatherdatalayout table needs to be dropped first; a foreign key constraint
blocks dropping the first two if it isn't.

I also had problems with MythWeather crashing on startup; that is now fixed.
After fixing permissions on the scripts in
/usr/share/mythtv/mythweather/scripts, I was finally able to get MythWeather
running again.

Scott Alfter
scott [at] alfter
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Jan 20, 2010, 1:32 PM

Post #4 of 9 (1780 views)
Permalink
Re: Segmentation Fault during mythweather [In reply to]

On 01/20/2010 03:34 PM, Scott Alfter wrote:
> On 19 Jan 10 08:57, Michael T. Dean wrote:
>> On 01/19/2010 10:59 AM, Johnny Walker wrote:
>>> I tried to check the weather this morning and myth exits abruptly.
>> I didn't read the detailed logs, but if you haven't had MythWeather
>> working since upgrading, I would recommend clearing and reconfiguring:
>>
>> cat<< "EOF" | mysql -umythtv -p mythconverg
>> DROP TABLE IF EXISTS weathersourcesettings;
>> DROP TABLE IF EXISTS weatherscreens;
>> DROP TABLE IF EXISTS weatherdatalayout;
>> DELETE FROM settings WHERE value = 'WeatherDBSchemaVer';
>> EOF
>>
>> Then restart the frontend and reconfigure MythWeather.
> The weatherdatalayout table needs to be dropped first; a foreign key
> constraint blocks dropping the first two if it isn't.
>
> I also had problems with MythWeather crashing on startup; that is now
> fixed. After fixing permissions on the scripts in
> /usr/share/mythtv/mythweather/scripts, I was finally able to get
> MythWeather running again.
>

Ah, thanks for the update. So the right approach should be:

cat<< "EOF" | mysql -umythtv -p mythconverg
DROP TABLE IF EXISTS weatherdatalayout;
DROP TABLE IF EXISTS weathersourcesettings;
DROP TABLE IF EXISTS weatherscreens;
DELETE FROM settings WHERE value = 'WeatherDBSchemaVer';
EOF

Mike


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


dsnider at thesniderpad

Jan 20, 2010, 7:15 PM

Post #5 of 9 (1769 views)
Permalink
Re: Segmentation Fault during mythweather [In reply to]

On Jan 19, 2010, at 8:59 AM, Johnny Walker wrote:

> /usr/local/share/mythtv/themes/defaultmenu//info_menu.xml
> 2010-01-19 07:52:03.455 SourceManager: NeedSourceFor: Unable to find
> source for 8, +32.51,-096.51, 1
> 2010-01-19 07:52:03.455 SourceManager: NeedSourceFor: Unable to find
> source for 5, http://images.weather.com/looper/archive/s_central_sat_720x486/
> ,
> 1
> 2010-01-19 07:52:03.455 SourceManager: NeedSourceFor: Unable to find
> source for 6, http://image.weather.com/images/maps/current/sc_curtemp_720x486
> .,
> 1

I had these exact same errors on my system after messing with the
sources and scripts. I finally fixed it by removing all the screens
in setup, then removing the MythWeather directory here /home/
mythtv/.mythtv/MythWeather. After I setup the screens again on the
frontend all worked as planned.


johnnyjboss at gmail

Jan 22, 2010, 4:06 PM

Post #6 of 9 (1718 views)
Permalink
Re: Segmentation Fault during mythweather [In reply to]

On Wed, Jan 20, 2010 at 3:32 PM, Michael T. Dean
<mtdean [at] thirdcontact> wrote:
> On 01/20/2010 03:34 PM, Scott Alfter wrote:
>> On 19 Jan 10 08:57, Michael T. Dean wrote:
>>> On 01/19/2010 10:59 AM, Johnny Walker wrote:
>>>> I tried to check the weather this morning and myth exits abruptly.
>>> I didn't read the detailed logs, but if you haven't had MythWeather
>>> working since upgrading, I would recommend clearing and reconfiguring:
>>>
>>> cat<<  "EOF" | mysql -umythtv -p mythconverg
>>> DROP TABLE IF EXISTS weathersourcesettings;
>>> DROP TABLE IF EXISTS weatherscreens;
>>> DROP TABLE IF EXISTS weatherdatalayout;
>>> DELETE FROM settings WHERE value = 'WeatherDBSchemaVer';
>>> EOF
>>>
>>> Then restart the frontend and reconfigure MythWeather.
>> The weatherdatalayout table needs to be dropped first; a foreign key
>> constraint blocks dropping the first two if it isn't.
>>
>> I also had problems with MythWeather crashing on startup; that is now
>> fixed. After fixing permissions on the scripts in
>> /usr/share/mythtv/mythweather/scripts, I was finally able to get
>> MythWeather running again.
>>
>
> Ah, thanks for the update.  So the right approach should be:
>
> cat<<  "EOF" | mysql -umythtv -p mythconverg
> DROP TABLE IF EXISTS weatherdatalayout;
> DROP TABLE IF EXISTS weathersourcesettings;
> DROP TABLE IF EXISTS weatherscreens;
> DELETE FROM settings WHERE value = 'WeatherDBSchemaVer';
> EOF
>
> Mike

this worked great - I re-setup my weather sources and it's working fine.

Thanks Mike.

-JJ
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


marius at schrecker

Jan 24, 2010, 8:31 AM

Post #7 of 9 (1670 views)
Permalink
Re: Segmentation Fault during mythweather [In reply to]

>> cat<< "EOF" | mysql -umythtv -p mythconverg
>> DROP TABLE IF EXISTS weathersourcesettings;
>> DROP TABLE IF EXISTS weatherscreens;
>> DROP TABLE IF EXISTS weatherdatalayout;
>> DELETE FROM settings WHERE value = 'WeatherDBSchemaVer';
>> EOF
>>

I perhaps stupidly followed this advice as mythweather hasn't really worked for me since installing 0.22.

I'm stuck now without the tables.

Earlier advice suggested adjusting the version number of the WeatherDBSchemaVer row in the settings table, to let the mythweather plugin recreate the tables. Unfortunately, this row no longer exists.
Can anyone say how I recreate the mythweather tables?

My original problem was that the BBC parser only seems to find up to the letter B of Norwegian place names.

Cheers!

Marius
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


mtdean at thirdcontact

Jan 24, 2010, 6:50 PM

Post #8 of 9 (1653 views)
Permalink
Re: Segmentation Fault during mythweather [In reply to]

On 01/24/2010 11:31 AM, Marius Schrecker wrote:
>>> cat<< "EOF" | mysql -umythtv -p mythconverg
>>> DROP TABLE IF EXISTS weathersourcesettings;
>>> DROP TABLE IF EXISTS weatherscreens;
>>> DROP TABLE IF EXISTS weatherdatalayout;
>>> DELETE FROM settings WHERE value = 'WeatherDBSchemaVer';
>>> EOF
>>>
> I perhaps stupidly followed this advice as mythweather hasn't really worked for me since installing 0.22.
>
> I'm stuck now without the tables.
>
> Earlier advice suggested adjusting the version number of the WeatherDBSchemaVer row in the settings table, to let the mythweather plugin recreate the tables. Unfortunately, this row no longer exists.
> Can anyone say how I recreate the mythweather tables?
>
> My original problem was that the BBC parser only seems to find up to the letter B of Norwegian place names.
>
> Cheers!
>

Restart mythfrontend--or better, restart all of Myth (including the
master backend).

If you still don't get the tables back, that means that your MySQL
server is configured to disable the InnoDB storage engine. Some distros
do this because it saves 40MB of RAM (or so). Yes, that's /mega/
bytes... Like 40 million. Obviously worth making users have to figure
this out to save /that/ many bytes. Agreed?

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


marius at schrecker

Jan 24, 2010, 11:12 PM

Post #9 of 9 (1641 views)
Permalink
Re: Segmentation Fault during mythweather [In reply to]

...
>>
>> Earlier advice suggested adjusting the version number of the WeatherDBSchemaVer row in the settings table, to let the mythweather plugin recreate the tables. Unfortunately, this row no longer exists.
> > Can anyone say how I recreate the mythweather tables?
>>
>> My original problem was that the BBC parser only seems to find up to the letter B of Norwegian place names.
>>
>> Cheers!
>>

>Restart mythfrontend--or better, restart all of Myth (including the
>master backend).

>If you still don't get the tables back, that means that your MySQL
>server is configured to disable the InnoDB storage engine. Some distros
>do this because it saves 40MB of RAM (or so). Yes, that's /mega/
>bytes... Like 40 million. Obviously worth making users have to figure
>this out to save /that/ many bytes. Agreed?
>
>Mike

Hmm. Looks like that is the case (Mythbuntu Karmic). have reaterted both frontend and backend since the mishap.

Where is the mythweather schema version stored now? Obviously not where it was before.

Cheers!

Marius
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.