Matlab Vision Toolbox inside Docker: Can't reload '/usr/loca​l/MATLAB/R​2016a/bin/​glnxa64/li​bmwfitools​.so'

2 views (last 30 days)
Hi,
I installed matlab 2016a inside docker and it is unable to run the `insertShape()` from the Vision Toolbox.
This is how I instantiate a docker container:
sudo docker run --runtime=nvidia --env GPU_ID=2 -p 9005:9005 --env CUDA_CACHE_PATH=/data/vgg/vggdemo/spinenet/appdata/cuda_cache --env CUDA_CACHE_MAXSIZE=2147483647 --env CUDA_CACHE_DISABLE=0 -it nvidia/cuda:9.2-cudnn7-devel-ubuntu16.04 bash
And this is how I install matlab:
apt-get -y update && apt-get -y install joe git cmake libjpeg62-dev unzip libboost-dev libboost-thread1.58-dev libboost-system1.58-dev libboost-filesystem1.58-dev libboost-atomic1.58-dev libxt6
/mnt/install -inputFile /data/matlab_2016a_installer_input.txt
apt-get -y update && apt-get -y install joe git cmake libjpeg62-dev unzip libboost-dev libboost-thread1.58-dev libboost-system1.58-dev libboost-filesystem1.58-dev libboost-atomic1.58-dev libxt6
/mnt/install -inputFile /data/vggdemos/spinenet/matlab_2016a_installer_input.txt
When I run the following example code from `insertShape()` documentation, I get the following error:
root@ae194f3d8997:~# /usr/local/MATLAB/R2016a/bin/matlab -nodesktop -nodisplay -nosplash -nojvm -r "I = imread('peppers.png'); RGB = insertShape(I,'circle',[150 280 35],'LineWidth',5);"
< M A T L A B (R) >
Copyright 1984-2016 The MathWorks, Inc.
R2016a (9.0.0.341360) 64-bit (glnxa64)
February 11, 2016
For online documentation, see http://www.mathworks.com/support
For product information, visit www.mathworks.com.
----------------------------------------------------
Your MATLAB license will expire in 34 days.
Please contact your system administrator or
MathWorks to renew this license.
----------------------------------------------------
Academic License
Can't reload '/usr/local/MATLAB/R2016a/bin/glnxa64/libmwfitools.so'
Error in numerictype (line 194)
this = embedded.numerictype;
Error in insertShape>createShapeInserter_sim (line 705)
h_ShapeInserter = vision.ShapeInserter('Shape', shape, ...
Error in insertShape>getSystemObjects_sim (line 654)
h_ShapeInserter = createShapeInserter_sim(shape, fillShape, ...
Error in insertShape>getSystemObjects (line 629)
h_ShapeInserter = getSystemObjects_sim(shape, fillShape, lineWidth, ...
Error in insertShape (line 112)
h_ShapeInserter = getSystemObjects(shapeOut, fillShape, ...
My docker version is: 18.03.1-ce, build 9ee9f40
The same command runs well when matlab is run outside the docker container. I would appreciate if you can give me any pointers on why this is happening.
  1 Comment
Walter Roberson
Walter Roberson on 7 Nov 2018
A while ago I went through and tagged a number of "can't reload" postings, hopping to find a commonality. Unfortunately the situation remained murky, but you might want to examine the tagged posts to see if any of them give you ideas. https://www.mathworks.com/matlabcentral/answers/?term=tag%3A%22can%27t+reload+%28linux%29%22

Sign in to comment.

Answers (0)

Categories

Find more on Image Processing and Computer Vision in Help Center and File Exchange

Products


Release

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!