Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#5725 closed defect (fixed)

Potential bug introduced in changeset 18300

Reported by: anonymous Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no


Infinite loop on line 232 as stream.readLine() is not executed unless the correct verbose is selected.

Current code is: while (!stream.atEnd())

{ VERBOSE(VB_MEDIA+VB_EXTRA, msg + stream.readLine()); }

One possible fix is to move stream.readLine() to previous line and assign to a string for the message.

Change History (3)

comment:1 Changed 12 years ago by Ben Dailey <ben@…>

I believe I saw the results of this code change causing this bug. I was contacted by my wife saying the the frontend was not loading and hanging while loading the theme cache the percentage of cache loading was seemingly random. I deleted the theme cache and changed my startup command from "exec /usr/bin/mythfrontend -l /var/log/mythtv/frontend.log -v important,general" to "exec /usr/bin/mythfrontend -l /var/log/mythtv/frontend.log -v all" watched the log file and saw no issues in the log she told me that is started fine. I had her shut down the frontend I changed back to the original startup command and it hung again. I killed mythfrontend changed back to -v all and all has been working since. I haven't made it home yet to investigate more, but this ticket looks like it is the culprit.

MythTV Version : 18314 MythTV Branch : trunk Library API : 0.22.20080903-1 Network Protocol : 40 QT Version : 4.4.1 Options compiled in:

linux debug using_alsa using_backend using_dvb using_frontend using_hdpvr using_opengl_video using_opengl_vsync using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_opengl using_bindings_perl using_bindings_python using_opengl using_ffmpeg_threads using_xvmc_pbuffer

Thanks for an awesome project and community,


comment:2 Changed 12 years ago by paulh

Resolution: fixed
Status: newclosed

(In [18315]) Fix an infinite loop introduced in [18300]. Fixes #5725.

comment:3 Changed 12 years ago by paulh

(In [18346]) [18315] didn't quite fix the infinite loop properly. Refs #5725.

Note: See TracTickets for help on using tickets.