Xpra: Ticket #2588: Error importing avcodec2 decoder (dec_avcodec2)

Xpra-Python3-x86_64_4.0-r25205 Win 10

"Xpra-Python3-x86_64_4.0-r25205\xpra_cmd" shadow ssh://user@ip/0  --opengl=no --desktop-scaling=0.75 --min-speed=70 --webcam=no --speaker=off --microphone=off --pulseaudio=no --exit-with-client=no
2020-02-11 21:12:38,843 Xpra GTK3 client version 4.0-r25205 64-bit
2020-02-11 21:12:38,847  running on Microsoft Windows 10
2020-02-11 21:12:40,664 GStreamer version 1.16.2 for Python 3.8.1 64-bit
2020-02-11 21:12:41,343 Error importing avcodec2 decoder (dec_avcodec2)
2020-02-11 21:12:41,343  DLL load failed while importing decoder: The specified module could not be found.
2020-02-11 21:12:41,383 keyboard layout code 0x409
2020-02-11 21:12:41,383 identified as 'United States - English' : us
xpra initialization error:
 connection failed: 'NoneType' object has no attribute 'get'

I am seriously wondering what could possibly be to blame ....

I started having portable xpra / conf-on-cmd-line approach, so as to not hit any weird stuff :/

I have to downgrade all the way to Xpra-Python3-x86_64_4.0-r24762 to work :/



Wed, 12 Feb 2020 04:38:00 GMT - Antoine Martin: owner changed

Using the exact same command line (bar username / password), I'm not seeing any problems here.

Can you try with -d all?


Wed, 12 Feb 2020 13:20:30 GMT - stdedos:

Re-downloading Xpra-Python3-x86_64_4.0-r25205 and installing https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads (plink apparently needed it?) allows me to at least continue and connect to the shadow server.

The message comes regardless. However, when running with -d all I don't see the connection coming.

Attaching the full log now.


Wed, 12 Feb 2020 13:20:43 GMT - stdedos: attachment set


Wed, 12 Feb 2020 14:39:31 GMT - Antoine Martin: owner, status changed

Error importing avcodec2 decoder (dec_avcodec2)

That's a different thing from the error that caused the connection to fail.

connection failed: 'NoneType' object has no attribute 'get'

Finally hit it. Using "paramiko" on win32 only. This was caused by r25180 and is fixed in r25214.

You were no longer hitting it because you must have switched to plink. (judging from your log sample)

I am keeping this ticket open so I can ensure avcodec2 is linked properly (one of the MSYS2 libraries it links against probably needs rebuilding). And as per ticket:2550#comment:1, maybe we should build our own ffmpeg to save space.


Wed, 12 Feb 2020 15:11:13 GMT - stdedos:

Error importing avcodec2 decoder (dec_avcodec2)

That's a different thing from the error that caused the connection to fail.

¯\_(ツ)_/¯ I didn't do anything different

connection failed: 'NoneType' object has no attribute 'get'

Finally hit it. Using "paramiko" on win32 only. This was caused by r25180 and is fixed in r25214.

You were no longer hitting it because you must have switched to plink. (judging from your log sample)

... oops! Almost. Yes, I switched back to plink (#2549 issue of "weird" password prompt finally triggered me). All my WinTerminal scripts are cludges, so, I forgot I didn't redirect the command (pretty similar to the old one). Here it is:

"Xpra-Python3-x86_64_4.0-r25205\xpra_cmd" shadow ssh://user@ip/0 --ssh="plink -ssh -agent" -d all \
    --opengl=no --desktop-scaling=0.75 --min-speed=70 --webcam=no --speaker=off --microphone=off --pulseaudio=no --exit-with-client=no

Wed, 26 Feb 2020 14:43:38 GMT - Antoine Martin: status changed; resolution set

Hit it today (ticket:2579#comment:20), turns out to be a problem with cx_Freeze not including libx265.dll with the ffmpeg decoder module. (it picks up every other dependency - possibly from the gstreamer modules? - just not this one) r25345 fixes that.

Updated beta builds are available.


Mon, 02 Mar 2020 10:51:58 GMT - stdedos:

LGTM


Sat, 23 Jan 2021 05:55:23 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2588