Bug #258
closedtext2skin crasht in der Kanalanzeige
Description
Hallo,
leider crasht text2skin bei mir häufig in der Verbindung mit PearlHD beim Zappen.
Schalte ich die Kanalanzeige (also die Anzeige davon, was gerade auf dem Kanal läuft auf den ich geschaltet habe) aus, so gibt es keine Abstürze mehr.
Die Fehlermeldung im Log:
Feb 17 21:43:26 [kernel] Text2Skin: chan31174: segfault at 9302133f ip 08134b4e sp a49f4e84 error 4 in vdr[8048000+1a1000]
Gruß,
Hendrik
Updated by HelAu over 14 years ago
Ich hab den hier recht haeufig:
Core was generated by `/usr/bin/vdr --localedir=/etc/vdr/locale -u root -w 60 --config=/etc/vdr --shut'.
Program terminated with signal 11, Segmentation fault.
#0 0x08126a21 in cBitmap::SetIndex (this=0x85b2be0, x=15, y=38,
Index=6 '\006') at osd.c:407
Thread 1 (Thread 9542):
#0 0x08126a21 in cBitmap::SetIndex (this=0x85b2be0, x=15, y=38,
Index=6 '\006') at osd.c:407
No locals.
#1 0x08126b30 in cBitmap::DrawPixel (this=0x85b2be0, x=15, y=38,
Color=4041502598) at osd.c:423
No locals.
#2 0xb4bef7c4 in cText2SkinBitmap::LoadNonXpm(char const*, int, int, int, bool) () from /usr/lib/vdr/plugins/libvdr-text2skin.so.1.7.12
No symbol table info available.
#3 0xb4befe72 in cText2SkinBitmap::Load(std::string const&, int, int, int, int, bool) () from /usr/lib/vdr/plugins/libvdr-text2skin.so.1.7.12
No symbol table info available.
#4 0xb4be5bdc in cText2SkinRender::DrawImage(txPoint const&, txSize const&, unsigned int const*, unsigned int const*, unsigned int const*, int, int, std::string const&) () from /usr/lib/vdr/plugins/libvdr-text2skin.so.1.7.12
No symbol table info available.
Updated by henfri over 14 years ago
Hallo,
hier gibt's interessante Inputs dazu:
http://www.vdr-portal.de/board/thread.php?postid=892561#post892561
Gruß,
Hendrik
Updated by domml over 14 years ago
Hallo,
probiert doch bitte 'mal ff. Patch:
diff --git a/bitmap.c b/bitmap.c
index 87252ea..2a9037c 100644
--- a/bitmap.c
++ b/bitmap.c@ -181,7 +181,7
@ bool cText2SkinBitmap::LoadNonXpm(const char *Filename, int height, int width, i
return false;
}
*/
- bmp = new cBitmap(w, h, (*it).depth());
bmp = new cBitmap(w, h, std::min((*it).depth(), 8U));
//Dprintf("this image has %d colors\n", (*it).totalColors());
const PixelPacket *pix = (*it).getConstPixels(0, 0, w, h);
Updated by SPAM over 14 years ago
- Assignee set to TomG
Just a FYI, I don't speak German, but I believe TomG does, so maybe he can take care of this (assigning to him). In general, I'd say filing issues in English have better chance for timely reaction than ones written in some other language...
Updated by domml over 14 years ago
No problem, I just wrote that you could try the patch above for solving this crash.
The problem is that VDR can handle onyl 8bpp for the ODS, so a higher value leads to memory corruption.
Updated by henfri over 14 years ago
Hello scop,
sorry, I was not aware.
Let me translate:
unfortunately text2skin crashes when using the PearlHD skin, when I'm zapping.
When I deaktivate the OSD during zapping (the small OSD that just shows the current and next show), no crashes happen.
From syslog:
Feb 17 21:43:26 [kernel] Text2Skin: chan31174: segfault at 9302133f ip 08134b4e sp a49f4e84 error 4 in vdr[8048000+1a1000]
The Backtrace:
Core was generated by `/usr/bin/vdr --localedir=/etc/vdr/locale -u root -w 60 --config=/etc/vdr --shut'.
Program terminated with signal 11, Segmentation fault.
#0 0x08126a21 in cBitmap::SetIndex (this=0x85b2be0, x=15, y=38,
Index=6 '\006') at osd.c:407
Thread 1 (Thread 9542):
#0 0x08126a21 in cBitmap::SetIndex (this=0x85b2be0, x=15, y=38,
Index=6 '\006') at osd.c:407
No locals.
#1 0x08126b30 in cBitmap::DrawPixel (this=0x85b2be0, x=15, y=38,
Color=4041502598) at osd.c:423
No locals.
#2 0xb4bef7c4 in cText2SkinBitmap::LoadNonXpm(char const*, int, int, int, bool) () from /usr/lib/vdr/plugins/libvdr-text2skin.so.1.7.12
No symbol table info available.
#3 0xb4befe72 in cText2SkinBitmap::Load(std::string const&, int, int, int, int, bool) () from /usr/lib/vdr/plugins/libvdr-text2skin.so.1.7.12
No symbol table info available.
#4 0xb4be5bdc in cText2SkinRender::DrawImage(txPoint const&, txSize const&, unsigned int const*, unsigned int const*, unsigned int const*, int, int, std::string const&) () from /usr/lib/vdr/plugins/libvdr-text2skin.so.1.7.12
No symbol table info available.
And much information on this, unfortunately in german:
http://www.vdr-portal.de/board/thread.php?postid=892561#post892561
dommls patch seems to be working or me!
Regards,
Hendrik
Updated by TomG over 14 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset 92711d662d7ffec560f517eb1e4878d1fa1621a9.