Lua Telnet crashes in 2.1.3

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
HowardL
New Cone
New Cone
Posts: 6
Joined: 31 Mar 2010 19:35

Lua Telnet crashes in 2.1.3

Postby HowardL » 05 Feb 2014 03:26

What am I doing wrong?

I start VLC with
vlc --rc-quiet --extraintf="rc" --rc-host="127.0.0.1:4400" --telnet-password="x"

Then, I use View->Add Interface->Telnet

Messages reports
main debug: looking for interface module matching "telnet,none": 15 candidates
lua debug: Found lua interface script: C:\Program Files\VideoLAN\vlc213\lua\intf\telnet.luac
lua debug: Setting config variable: config={telnet={host='telnet://localhost:4212',password='******'}}
main debug: using interface module "lua"
lua info: Listening on host "telnet://localhost:4212".
main debug: net: listening to localhost port 4212
lua error: Error loading script C:\Program Files\VideoLAN\vlc213\lua\intf\telnet.luac: ...ckage/win32/../../../share/lua/intf/modules/host.lua:279: attempt to call field 'poll' (a nil value)

So several problems:
1. What am I missing that causes the lua host script to fail with nothing to select on.
2. Why doesn't it see 4400 as the port instead of 4212
3. All this worked on 2.0 so are there no unit tests on the 2.1 lua rewrite (and how would I write them)

Rémi Denis-Courmont
Developer
Developer
Posts: 15318
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Lua Telnet crashes in 2.1.3

Postby Rémi Denis-Courmont » 05 Feb 2014 17:47

1. Code to support Lua net poll on Windows.
2. Backward compatibility with the old VLM "telnet" interface.
3. That stuff was actually pretty broken in 2.0. But no there are no unit tests; contributions welcome.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 232 guests