<div class="gmail_quote">On Thu, Mar 21, 2013 at 3:44 PM, Erik Sejr <span dir="ltr"><<a href="mailto:esejr@wildroseinternet.ca" target="_blank">esejr@wildroseinternet.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hello,<br>
I'm hoping someone in the list can help me with a MythWeb issue
after an upgrade to 0.26. Sometimes (and not all the time) when I
select a filter to view the list of recordings mythweb dumps out the
following errors:<br>
<br>
<b>Warning</b> at /var/www/html/mythweb/modules/tv/recorded.php,
line 80:<br>
!!NoTrans: gmp_add(): Unable to convert variable to GMP - wrong
type!!<br>
<br>
I was looking at the mythweb code at that location and I noticed
that its parsing though a large array ($recordings) which seems to
be essentially an array of arrays returned by the call to the
backend:<br>
<br>
$recordings =
MythBackend::find()->queryProgramRows('QUERY_RECORDINGS
Unsorted');<br>
<br>
After looking at the contents of that array for a while, I noticed
it was often incomplete, like the backend had started sending data,
then stopped which seems to result in the error above (the data
being passed into the gmp_add call was not what was expected,
sometimes a string, sometimes just null). I noted each time this
occurs the following appears in the backend logs:<br>
<br>
2013-03-21 16:27:56.939009 E [6132/21115] MythSocketThread(80)
mythsocket.cpp:662 (WriteStringListReal) - MythSocket(2638fa0:-1):
WriteStringList: Error, called with unconnected socket.<br>
2013-03-21 16:27:56.940256 I [6132/14013] ProcessRequest
mainserver.cpp:1429 (HandleAnnounce) - MainServer::ANN Monitor<br>
2013-03-21 16:27:56.940261 I [6132/14013] ProcessRequest
mainserver.cpp:1431 (HandleAnnounce) - adding: <removed> as a
client (events: 2)<br>
2013-03-21 16:27:57.095470 E [6132/9447] ProcessRequest
mainserver.cpp:1727 (SendResponse) - SendResponse: Unable to write
to client socket, as it's no longer there.<br>
<br>
The issue is very inconsistent. For example I can select the same
recording title from the "show recordings" dropdown box 5 times. 3
times it'll fail as above and 2 times it'll work and display the
filtered list of recordings properly. This is a recent build of
0.26-fixes from Git on a clean (freshly installed) Fedora 18 system:<br>
<br>
MythTV Version : v0.27-pre2-762-gb2a8b1e<br>
MythTV Branch : fixes/0.26<br>
Network Protocol : 77<br>
Library API : 0.27.20130301-1<br>
QT Version : 4.8.4<br>
Options compiled in:<br>
linux profile use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl
using_bindings_python using_bindings_php using_frontend using_hdpvr
using_joystick_menu using_libcrypto using_libdns_sd using_libfftw3
using_libxml2 using_libudf using_lirc using_mheg using_opengl
using_opengl_video using_qtwebkit using_qtscript using_qtdbus
using_v4l2 using_x11 using_xrandr using_xv using_bindings_perl
using_bindings_python using_bindings_php using_mythtranscode
using_opengl using_vaapi using_vdpau using_ffmpeg_threads using_mheg
using_libass using_libxml2 using_libudf<br>
<br>
Any thoughts/ideas? Perhaps an issue with PHP/Apache?<br>
<br>
Thaanks<br></div></blockquote></div><br>My first thought is that it's a memory problem, probably with PHP. Check the applicable php.ini (there are typically several scattered around and it might be a trick to find out which one is being used by apache). I have my memory_limit = 128M<br>
<br>Karl<br>