This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Lua: Error during loading mpeg_packets_dump.lua

0

Hello,

I just put this file to /usr/local/lib/wireshark.plugins/1.10.2/, then had this error right at the start of wireshark :

Lua: Error during loading: [string "/usr/local/lib/wireshark/plugins/1.10.2/mpe..."]:30: bad argument #1 to 'new' (Field_new: a field with this name must exist)

A little help ?

asked 07 Jan '14, 02:22

ychaouche's gravatar image

ychaouche
315610
accept rate: 100%


One Answer:

1

Line 30 contains this:

mpeg_payload = Field.new("mp2t.payload")

Now, the field mp2t.payload was removed in Wireshark 1.8.x (see here - reason unknown to me). So, you can't reference that in Wireshark 1.10.x !! Please remove all references to it from the code and it should work.

BTW: The newly defined variables (fields) mpeg_payload and mpeg_pusi are only defined, but never used in the Lua code, so you can simply delete those lines.

Regards
Kurt

answered 08 Jan '14, 09:05

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

Thank you that solved the problem ! the plugin however seems not to be up-to-date as another error popped-up when trying to dump packets to file.

(08 Jan '14, 11:36) ychaouche

What is that error message?

(08 Jan '14, 11:46) Kurt Knochner ♦