Open itlancer opened 1 year ago
Crash is happening when the runtime calls gdk_flush() which in turn calls XSync for all displays. For a simple flv video texture test it works without crashing if you change that function to a no-op.
Tested by creating a file gdkflush.c with the contents void gdk_flush(void) { }
compiling with gcc -shared -fPIC -o gdkflush.so gdkflush.c
and running with LD_PRELOAD=./gdkflush.so yourprogram
Problem Description
FLV video playback via
VideoTexture
cause application crash for Linux devices after ~1 second of playback. The same usingStarling
orStage3D
directly.It has been tested with multiple AIR versions, even with latest AIR 50.0.1.3 with multiple Linux Ubuntu 16 and 22.04.1 LTS devices (VM and real) with different AIR applications. Same issue in all cases. There is no such issues with Windows/macOS/Android/iOS devices. There is no such issue using
Video
. Cannot test withStageVideo
causestage.stageVideos
return empty array for Linux right now.Related issues (not the same): https://github.com/airsdk/Adobe-Runtime-Support/issues/1984 https://github.com/airsdk/Adobe-Runtime-Support/issues/2277 https://github.com/airsdk/Adobe-Runtime-Support/issues/2159 https://github.com/airsdk/Adobe-Runtime-Support/issues/2125 https://github.com/airsdk/Adobe-Runtime-Support/issues/1159 https://github.com/airsdk/Adobe-Runtime-Support/issues/180 https://github.com/airsdk/Adobe-Runtime-Support/issues/155 https://github.com/airsdk/Adobe-Runtime-Support/issues/139 https://github.com/airsdk/Adobe-Runtime-Support/issues/93 https://github.com/airsdk/Adobe-Runtime-Support/issues/82 https://github.com/airsdk/Adobe-Runtime-Support/issues/16
Steps to Reproduce
Launch code below with any Linux x86_64 device. Application start video playback. Application example with sources and example of video attached. linux_videotexture_netstream_flv_crash.zip
Actual Result: Application crash after ~1 second of video playback. No errors or logs about crash generated.
Context3D::enableErrorChecking = true
didn't help.Expected Result: Application play video without crashes.
Known Workarounds
none *Use
Video
.