<div dir="ltr">Que tal Marcos, el error es efectivamente un bug, trataremos de revolverlo lo antes posible. Muchas gracias por el reporte y el caso de prueba.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/6/14 Marcos Juayek <span dir="ltr"><<a href="mailto:mjuayek@correo.um.edu.uy" target="_blank">mjuayek@correo.um.edu.uy</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><b>No actualize ningún paquete de la VM.</b></div><div><b><br></b></div><div><b>Ejecute como me dijiste y e</b><b>l log me tira esto: </b></div><div><br></div><div>[canvas::System] Using system: use=gtk<br>
</div><div>[canvas::System] DEBUG: Initialize</div><div>[canvas::Window] Creating display: size=(720,576)</div><div>[canvas::gtk::Window] DEBUG: Initialize</div><div>[canvas::vlc] Initialize</div><div>[ncl30-presenter::PresentationEngineManager] DEBUG: Start document: doc=/home/ginga/QualifyTV/main4.ncl</div>
<div>Intentando conectar al 10.1.3.112 por el puerto 80</div><div>[ncl30-converter::PrivateBaseContext] DEBUG: Doc added, url=/home/ginga/QualifyTV/main4.ncl</div><div>[gingaplayer::Manager] DEBUG: Reserve keys: listeners=0, id=0x8e8aa70, size=9</div>
<div>[canvas::gtk::System] Main loop begin</div><div>[ncl30-presenter::FormatterMediator] DEBUG: start doc, id=main, interface=</div><div>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=FormatterScheduler, listenerId=0x8f53fa4, eventId=0x8e2ea08</div>
<div>[gingaplayer::Manager] DEBUG: Reserve keys: listeners=1, id=0x8f44408, size=8</div><div>[ncl30-presenter::FormatterScheduler] DEBUG: runAction: event 'luna_1' for '-1/body/luna/dsc'</div><div>[gingaplayer::Device] Create player: type=lua, schema=file, body=/home/ginga/QualifyTV/lib/prueba2.lua, mime=</div>
<div>[gingaplayer::player] DEBUG: Initialize</div><div>[gingaplayer::Player] DEBUG: Set property begin: name=src</div><div>[gingaplayer::Player] DEBUG: Set property end: name=src, result=1</div><div>[gingaplayer::Player] DEBUG: Set property begin: name=type</div>
<div>[gingaplayer::Player] DEBUG: Set property end: name=type, result=1</div><div>[ncl30-presenter::FormatterRegion] DEBUG: bounds: x=0, y=0, w=720, h=576, z=0</div><div>[gingaplayer::Player] DEBUG: Set property begin: name=bounds</div>
<div>[gingaplayer::Player] DEBUG: Set property end: name=bounds, result=1</div><div>[gingaplayer::Player] DEBUG: Set property begin: name=zIndex</div><div>[gingaplayer::Player] DEBUG: Set property end: name=zIndex, result=1</div>
<div>[ncl30-presenter::ExecutionObject] DEBUG: prepare(-1/body/luna/dsc)</div><div>[ncl30-presenter::ExecutionObject] DEBUG: prepare(-1/body/luna/dsc) locked</div><div>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=CompositeExecutionObject, listenerId=0x8e30700, eventId=0x8e2fc58</div>
<div>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=FormatterScheduler, listenerId=0x8f53fa4, eventId=0x8e2fc58</div><div>[gingaplayer::player] DEBUG: play</div><div>[gingaplayer::player] DEBUG: Can play begin</div>
<div>[gingaplayer::player] DEBUG: Can play: result=1</div><div>[gingaplayer::GraphicPlayer] DEBUG: Start play</div><div>[gingaplayer::SurfaceProperties] DEBUG: Creating surface: pos=(0,0), size=(720,576)</div><div>[canvas::Canvas] DEBUG: Add surface: surface=0x8f7e440</div>
<div>[gingaplayer::SurfaceProperties] DEBUG: Creating surface: pos=(0,0), size=(720,576)</div><div>[canvas::Canvas] DEBUG: Add surface: surface=0x8e78a70</div><div>[gingaplayer::LuaPlayer] Start play, source=/home/ginga/QualifyTV/lib/prueba2.lua</div>
<div>[gingaplayer::player] DEBUG: Apply changes</div><div>[gingaplayer::SurfaceProperties] DEBUG: apply bounds: (0,0,720,576)</div><div>[gingaplayer::SurfaceProperties] DEBUG: apply bounds: (0,0,720,576)</div><div>[gingaplayer::SurfaceProperties] DEBUG: apply zIndex, value=0</div>
<div>[gingaplayer::SurfaceProperties] DEBUG: apply zIndex, value=0</div><div>[gingaplayer::FocusProperties] DEBUG: Apply focus properties: focus=0, selected=0</div><div>[gingaplayer::GraphicProperties] DEBUG: apply visible, value=1</div>
<div>[gingaplayer::GraphicProperties] DEBUG: apply opacity, value=1.000000</div><div>[gingaplayer::GraphicPlayer] DEBUG: Begin refresh</div><div><b><font color="#ff0000">[gingaplayer::LuaPlayer] ERROR: in lua script 'attempt to index a thread value' at line = attempt to index a thread value, attempt to index a thread value</font></b></div>
<div>[gingaplayer::GraphicPlayer] DEBUG: On property changed</div><div>[gingaplayer::Manager] DEBUG: Reserve keys: listeners=2, id=0x8e32160, size=122</div><div>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=FormatterScheduler, listenerId=0x8f53fa4, eventId=0x8e2fc58</div>
<div>[ncl30-presenter::FormatterScheduler] DEBUG: eventStateChanged: start, event: 0x8e2fc58</div><div>[ncl30-presenter::FormatterScheduler] DEBUG: eventStateChanged: 'luna_1' transition '0'</div><div>[gingaplayer::Player::settings] DEBUG: get var, name=service.currentKeyMaster, value=</div>
<div>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=FormatterScheduler, listenerId=0x8f53fa4, eventId=0x8e2fc58</div><div>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=CompositeExecutionObject, listenerId=0x8e30700, eventId=0x8e2fc58</div>
<div>[ncl30-presenter::CompositeExecutionObject] DEBUG: eventStateChanged id='-1/body/' transition='0'</div><div>[ncl30-presenter::ncl::EventManager] DEBUG: Add listener, type=CompositeExecutionObject, listenerId=0x8e34120, eventId=0x8e2ea08</div>
<div>[ncl30-presenter::CompositeExecutionObject] DEBUG: eventStateChanged id='-1/body/' starting whole content</div><div>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=FormatterScheduler, listenerId=0x8f53fa4, eventId=0x8e2ea08</div>
<div>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=FormatterScheduler, listenerId=0x8f53fa4, eventId=0x8e2ea08</div><div>[ncl30-presenter::ncl::EventManager] DEBUG: Before listener, type=CompositeExecutionObject, listenerId=0x8e34120, eventId=0x8e2ea08</div>
<div>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=CompositeExecutionObject, listenerId=0x8e34120, eventId=0x8e2ea08</div><div>[ncl30-presenter::ncl::EventManager] DEBUG: After listener, type=CompositeExecutionObject, listenerId=0x8e30700, eventId=0x8e2fc58</div>
<div>[ncl30-presenter::FormatterScheduler] DEBUG: run action over ApplicationExecutionObject</div><div>[canvas::Canvas] DEBUG: Flush: toBlit=1, regions=1</div><div>[canvas::Canvas] TRACE: Dirty region: (0, 0, 720, 576)</div>
<div>[canvas::Canvas] DEBUG: Surface to blit: 0x8f7e440, zIndex=0</div><div>[canvas::gtk::Window] TRACE: Update main window properties: type=13</div><div><br></div><div>[canvas::gtk::Window] TRACE: Update main window properties: type=13</div>
<div><br></div><div>[canvas::gtk::Window] TRACE: Update main window properties: type=13</div><div><br></div><div>[canvas::gtk::Window] DEBUG: Draw: rect=(0,0,1,1)</div><div>[canvas::gtk::Window] TRACE: Update main window properties: type=14</div>
<div><br></div><div>[canvas::gtk::Window] DEBUG: Draw: rect=(0,0,720,576)</div><div>[canvas::gtk::Window] TRACE: Update main window properties: type=12</div><div><br></div><div><br></div><div><b>Y la linea de código que presenta el error es esta:</b><br>
</div><div><br></div><div><div><font face="courier new, monospace">---Conecta em um servidor por meio do protocolo TCP.</font></div><div><font face="courier new, monospace">--A função só retorna quando a conexão for estabelecida.</font></div>
<div><font face="courier new, monospace">--@param host Nome do host para conectar</font></div><div><font face="courier new, monospace">--@param port Porta a ser usada para a conexão</font></div><div><font face="courier new, monospace">function connect (host, port) </font></div>
<div><font face="courier new, monospace"> local t = {</font></div><div class="im"><div><font face="courier new, monospace"> host = host,</font></div><div><font face="courier new, monospace"> port = port,</font></div>
</div><div><font face="courier new, monospace"> waiting = 'connect'</font></div><div><font face="courier new, monospace"> }</font></div><div><font face="courier new, monospace"> CONNECTIONS[coroutine.running()] = t</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"> print("Intentando conectar al "..host.." por el puerto " .. port)</font></div><div class="im"><div>
<font face="courier new, monospace"> </font></div>
<div><font face="courier new, monospace"> <b> <font color="#ff0000">event.post {</font></b></font></div><div><font color="#ff0000" face="courier new, monospace"><b> class = 'tcp',</b></font></div><div><font color="#ff0000" face="courier new, monospace"><b> type = 'connect',</b></font></div>
<div><font color="#ff0000" face="courier new, monospace"><b> host = host,</b></font></div><div><font color="#ff0000" face="courier new, monospace"><b> port = port,</b></font></div><div><font color="#ff0000" face="courier new, monospace"><b> }</b></font></div>
<div><font face="courier new, monospace"><br></font></div></div><div><font face="courier new, monospace"> --Suspende a execução da co-rotina.<br></font></div><div><font face="courier new, monospace"> --A função atual (connect) só retorna quando</font></div>
<div><font face="courier new, monospace"> --a co-rotina for resumida, o que ocorre</font></div><div><font face="courier new, monospace"> --quando o evento connect é capturado</font></div><div><font face="courier new, monospace"> --pela função handler. </font></div>
<div><font face="courier new, monospace"> return coroutine.yield() </font></div><div><font face="courier new, monospace">end</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"><b>Podes ver que el print si lo realiza, pero no pasa del event.post, lo comprobé quitandolo y sigue de largo.</b></font></div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">El 14 de junio de 2013 09:39, Leo <span dir="ltr"><<a href="mailto:lisasmendi@lifia.info.unlp.edu.ar" target="_blank">lisasmendi@lifia.info.unlp.edu.ar</a>></span> escribió:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Ok, no actualizaste nigún paquete en la maquina virtual?</div><div> </div><div>Podrías ejecutar tu aplicación con los parametros --debug=all.all.all y copiar el error en la lista, junto con la linea de código que lo produce?<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">El 14 de junio de 2013 09:12, Marcos Juayek <span dir="ltr"><<a href="mailto:mjuayek@correo.um.edu.uy" target="_blank">mjuayek@correo.um.edu.uy</a>></span> escribió:<div>
<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Leo, lo estoy corriendo en la VM que esta en la pagina de lifia. Pienso que el error tiene que ver con el tema de las coroutines, que utiliza la librería tcp.lua.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">
El 14 de junio de 2013 08:38, Leo <span dir="ltr"><<a href="mailto:lisasmendi@lifia.info.unlp.edu.ar" target="_blank">lisasmendi@lifia.info.unlp.edu.ar</a>></span> escribió:<div><div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Hola Marcos, me podrías dar más información.</div><div>Estás corriendo ginga.ar2.0 en una maquina virtual o lo compilaste en tu máquina?</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
El 13 de junio de 2013 19:19, Marcos Juayek <span dir="ltr"><<a href="mailto:mjuayek@correo.um.edu.uy" target="_blank">mjuayek@correo.um.edu.uy</a>></span> escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>
<div dir="ltr">Estimados, estoy intentando realizar una conexión tcp utilizando la libreria tcp.lua, pero cuando intento realizar la conexión me despliega en consola el siguiente mensaje:<div><br></div><div>PANIC: unprotected error in call to Lua API (attempt to index a thread value)<br>
</div><div><br></div><div>El error ocurre en la función connect junto cundo envía un event.post, que se define asi:<br></div><div><br></div><div><div>event.post {</div><div> class = 'tcp',</div>
<div> type = 'connect',</div><div> host = host,</div><div> port = port,</div><div> }</div><div><br></div><div>Lo probé en la VM de PUC y la conexión se realiza correctamente.</div>
<div><br></div><div>Alguien me puede ayudar?</div><div><br></div><div><br></div></div></div>
<br></div></div>__________________________________________Lista de correo <a href="mailto:Ginga-argentina@lists.ourproject.org" target="_blank">Ginga-argentina@lists.ourproject.org</a><br>
cambiar suscripci&#243;n: <a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina</a><br>
Sitio web: <a href="http://comunidad.ginga.org.ar" target="_blank">http://comunidad.ginga.org.ar</a><br>
Wiki: <a href="http://wiki.ginga.org.ar" target="_blank">http://wiki.ginga.org.ar</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr">Saludos Leo<br></div>
</font></span></div>
<br>__________________________________________Lista de correo <a href="mailto:Ginga-argentina@lists.ourproject.org" target="_blank">Ginga-argentina@lists.ourproject.org</a><br>
cambiar suscripci&#243;n: <a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina</a><br>
Sitio web: <a href="http://comunidad.ginga.org.ar" target="_blank">http://comunidad.ginga.org.ar</a><br>
Wiki: <a href="http://wiki.ginga.org.ar" target="_blank">http://wiki.ginga.org.ar</a><br>
<br></blockquote></div></div></div><br></div>
<br>__________________________________________Lista de correo <a href="mailto:Ginga-argentina@lists.ourproject.org" target="_blank">Ginga-argentina@lists.ourproject.org</a><br>
cambiar suscripci&#243;n: <a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina</a><br>
Sitio web: <a href="http://comunidad.ginga.org.ar" target="_blank">http://comunidad.ginga.org.ar</a><br>
Wiki: <a href="http://wiki.ginga.org.ar" target="_blank">http://wiki.ginga.org.ar</a><br>
<br></blockquote></div></div></div><span><font color="#888888"><br><br clear="all"><br>-- <br><div dir="ltr">Saludos Leo<br></div>
</font></span></div>
<br>__________________________________________Lista de correo <a href="mailto:Ginga-argentina@lists.ourproject.org" target="_blank">Ginga-argentina@lists.ourproject.org</a><br>
cambiar suscripci&#243;n: <a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina</a><br>
Sitio web: <a href="http://comunidad.ginga.org.ar" target="_blank">http://comunidad.ginga.org.ar</a><br>
Wiki: <a href="http://wiki.ginga.org.ar" target="_blank">http://wiki.ginga.org.ar</a><br>
<br></blockquote></div></div></div><br></div>
<br>__________________________________________Lista de correo <a href="mailto:Ginga-argentina@lists.ourproject.org">Ginga-argentina@lists.ourproject.org</a><br>
cambiar suscripci&#243;n: <a href="https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina" target="_blank">https://lists.ourproject.org/cgi-bin/mailman/listinfo/ginga-argentina</a><br>
Sitio web: <a href="http://comunidad.ginga.org.ar" target="_blank">http://comunidad.ginga.org.ar</a><br>
Wiki: <a href="http://wiki.ginga.org.ar" target="_blank">http://wiki.ginga.org.ar</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div>Nicolás Baglivo, LIFIA, Facultad de Informática, UNLP.</div>
</div>