Map Garbled On Load

I am running my simulation in a Docker container, using X11 forwarding. Everything is coming up, but the map is a bunch of flickering lines and dots. I have tried the pip version as well as the ardupilot compiled version using sim_vehicle.py. Both exhibit the same behavior.

The simulator actually runs without error, I just can’t see anything…

OS: Debian 8 (have also tried 9)

Output:

SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at -35.363261,149.165230,584,353 (CMAC)
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: "/theseus/deps/ardupilot/modules/waf/waf-light" "configure" "--board" "sitl"
Setting top to                           : /theseus/deps/ardupilot 
Setting out to                           : /theseus/deps/ardupilot/build 
Autoconfiguration                        : enabled 
Setting board to                         : sitl 
Checking for 'g++' (C++ compiler)        : /usr/lib/ccache/g++ 
Checking for 'gcc' (C compiler)          : /usr/lib/ccache/gcc 
Checking for need to link with librt     : not necessary 
Checking for HAVE_CMATH_ISFINITE         : yes 
Checking for HAVE_CMATH_ISINF            : yes 
Checking for HAVE_CMATH_ISNAN            : yes 
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : yes 
Checking for NEED_CMATH_ISINF_STD_NAMESPACE    : yes 
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE    : yes 
Checking for header endian.h                   : yes 
Checking for header byteswap.h                 : yes 
Checking for program 'python'                  : /usr/bin/python 
Checking for python version >= 2.7.0           : 2.7.13 
Checking for program 'python'                  : /usr/bin/python 
Checking for python version >= 2.7.0           : 2.7.13 
Source is git repository                       : yes 
Update submodules                              : yes 
Checking for program 'git'                     : /usr/bin/git 
Checking for program 'size'                    : /usr/bin/size 
Benchmarks                                     : disabled 
Unit tests                                     : enabled 
'configure' finished successfully (1.010s)
SIM_VEHICLE: Building
SIM_VEHICLE: "/theseus/deps/ardupilot/modules/waf/waf-light" "build" "--target" "bin/arducopter"
Waf: Entering directory `/theseus/deps/ardupilot/build/sitl'
Waf: Leaving directory `/theseus/deps/ardupilot/build/sitl'

BUILD SUMMARY
Build directory: /theseus/deps/ardupilot/build/sitl
Target          Text     Data   BSS    Total  
----------------------------------------------
bin/arducopter  1529472  56230  36352  1622054

Build commands will be stored in build/sitl/compile_commands.json
'build' finished successfully (1.473s)
SIM_VEHICLE: Using defaults from (/theseus/deps/ardupilot/Tools/autotest/default_params/copter.parm)
SIM_VEHICLE: Run ArduCopter
SIM_VEHICLE: "/theseus/deps/ardupilot/Tools/autotest/run_in_terminal_window.sh" "ArduCopter" "/theseus/deps/ardupilot/build/sitl/bin/arducopter" "-S" "-I0" "--home" "-35.363261,149.165230,584,353" "--model" "+" "--speedup" "1" "--defaults" "/theseus/deps/ardupilot/Tools/autotest/default_params/copter.parm"
SIM_VEHICLE: Run MavProxy
SIM_VEHICLE: "mavproxy.py" "--master" "tcp:127.0.0.1:5760" "--sitl" "127.0.0.1:5501" "--out" "127.0.0.1:14550" "--out" "127.0.0.1:14551" "--map" "--console"
RiTW: Starting ArduCopter : /theseus/deps/ardupilot/build/sitl/bin/arducopter -S -I0 --home -35.363261,149.165230,584,353 --model + --speedup 1 --defaults /theseus/deps/ardupilot/Tools/autotest/default_params/copter.parm
RiTW: Window access not found, logging to /tmp/ArduCopter.log
Connect tcp:127.0.0.1:5760 source_system=255
Loaded module console
Loaded module map
Log Directory: 
Telemetry log: mav.tlog
MAV> Waiting for heartbeat from tcp:127.0.0.1:5760
STABILIZE> Received 849 parameters
Saved 849 parameters to mav.parm

So, just tried it on the host machine and it worked… so it is either something to do with X11 forwarding and opencv or Docker in particular.