Opened 17 years ago
Closed 17 years ago
#2713 closed defect (fixed)
mythtv-setup crashes when editing LNB in diseqc setup. mythbackend unable to get a signal
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | 0.21 |
Component: | dvb | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
DVB Setup: Rotor -> 2-port diseqc switch -> LNB1 LNB2
after upgrading from .20 to svn r11794, editing Rotor or switch does not cause problems, when selecting a LNB to edit, mythtv-setup crashes instantly without any error.
Also, mythbackend is not able to get any signal.
Attachments (2)
Change History (11)
comment:1 Changed 17 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 17 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
gdb log of mythtv-setup when it crashes during diseqc LNB configuration
comment:3 Changed 17 years ago by
Owner: | changed from Isaac Richards to danielk |
---|---|
Status: | reopened → new |
comment:4 Changed 17 years ago by
note: once in a while it happens that I can edit the LNB, but even when I do, no changes are being saved. That's kind of what happened when I ran gdb. The first time I tried to edit the LNB settings it brought up the edit screen, so I escaped out of it, the second time I tried to edit the LNB it crashed so the log should include both cases.
comment:5 Changed 17 years ago by
While searching for the source of the crash problem I found another. If you have a DVB source defined and assigned to a card without a switch, the inputname will be "DVBInput". Now if you assign that same source to second card with a switch that inputname will now be "DVBInput #1" (where #1 is the switch port number). This causes tuning to fail while scanning because it will select the first card with the incorrect inputname.
/** \fn ChannelUtil::GetInputName(int) * \brief Returns input name for a card input * NOTE: This is BROKEN, it does not specify which card the input is on. */ QString ChannelUtil::GetInputName(int source_id)
is the problem.
This patch should fix the problem.
Changed 17 years ago by
Attachment: | scan_input_fix.diff added |
---|
comment:6 Changed 17 years ago by
Component: | mythtv → dvb |
---|
Thanks for the backtrace. I've been able to reproduce this now by starting up the edit node dialog repeatedly. Valgrind is reporting the use of uninitialized memory but the instance we crash on looks ok, so my current theory is that we delete something and then try to use it. But it could also be a bad cast somewhere. Tonight I'll try to narrow the problem by making the segfault more repeatable...
comment:8 Changed 17 years ago by
Replying to danielk:
(In [12157]) Refs #2713. Fixes an unitialized memory error in diseqc editor.
that fixed the LNB editor. thank you, however neither livetv nor scanning is able to get any type of lock. I applied the patch attached to this ticket but that did not make a difference. I ran the backend, forntend and setup with -v all,nodatabase but I did not see anything unusual there, except that I think in the past mythbackend would be verbose about switching diseqc ports or when moving a rotor. Now I only see this in mythtv-setup log. Is this the correct behavior?
Need backtrace, see TicketHowTo