Error: Storage::readChar(): invalid position using Sumo, veins example and omnet++ - omnet++

I've been using Veins (v5.1) along with SUMO (v1.8) and OMNeT++ (v5.6.2) in Linux Ubuntu 20.04 and 18.04. When I try to run the example provided by veins I keep getting the same error both in Ubuntu 20.04 and 18.04.
According to the information in OMNeT, the error code is 133 or 137 and there isn't much information about the error in the above lines.
Sumo seems to be running correctly, listening on port 9999, and sumo-gui is actually launching. However, a few seconds later it terminates with the following error log
"Error: Storage::readChar(): invalid position". There's also an error code in the terminal.
In the past I faced this problem in Ubuntu 14.04 due to incompatibility issues between the versions I was using. This time I'm using the recommended versions from veins webpage.
Has anyone faced this problem before? Could this be an incompatibility issue with the operating system and if so, does anyone know what the compatible versions are for Ubuntu 18.04 or 20.04? I haven't used Linux before so I'm not sure if there's something else I'm missing.
I've included a screenshot with the errors I'm getting in case that helps.
Thanks!

I faced the same issue when using ubuntu 20.04, Omnet++ 5.6.2 and SUMO 1.9.0, and I managed to solve it by downgrading sumo to an older version.
First remove the current sumo:
$sudo apt-get remove sumo
Then install the old version:
$sudo apt-get install sumo=1.4.0+dfsg1-1

I don't know if that is actually an answer to the problem or why this works. I've tried it both in my laptop (Ubuntu 18.04) and in two different virtual machines (Ubuntu 18.04 and Ubuntu 20.04) and this seems to fix the problem.
Veins should be saved in a folder called src and then imported to OMNeT++ to avoid the error. The path to Veins should be similar to the following.
/home/<me>/<folder>/src/veins-5.1

Related

omnetpp won't run on macOS after fresh installation

i installed omnetpp 5.6.2 on macOS m1, but it won't start after installation. The ide also would not start. Is there anyway I can fix this issue?
I tired to run from the ide subfolder but it still did not start.
As the installation guide states: OMNeT++ 5.6.2 does NOT support M1 macs. Use 5.7 which has workarounds to start in x86 emulation mode.

Rstudio not working on my Ubuntu 16 virtual machine

When I try to run Rstudio Desktop (1.4) on my virtual machine (Ubuntu 16.4), Rstudio crashes and gives the error:
ERROR:gl_surface_glx_gt.cpp(141) GLX 1.3 or later is required.
I tried to follow the instructions on this page: https://wiki.x2go.org/doku.php/wiki:development:glx-xlib-workaround, but can not get past the meson -D configuration in the Ubuntu terminal. At this point I get the error message: 'ERROR: Problem encountered: gallium-xlib conflicts with any dri driver'
I googled and tried everything that I could possibly find (similar questions as https://community.rstudio.com/t/x2go-and-rstudio/29704/2), but no success yet.
Obviously the upgrade to a higher GLX version is the cause, but I can not upgrade it.
Is anyone familiar with the error and what is actually causing it?
Any help would be greatly appreciated!
I am using R version 3.4.4

How to install OpenModelica 1.9.5 on Ubuntu 20.04?

I installed the latest version on OpenModelica (version 1.16.5) on Ubuntu 20.04.
However, this version has problems with the packages (examples).
So, by recommendation, I'm trying to install version 1.9.5 or 1.10.X, without success.
Since I'm a novice Linux user, I don't know how to do this.
On the site,
"https://openmodelica.org/download/download-linux"
for older versions, it is suggested to use the line
"deb https://build.openmodelica.org/omc/builds/linux/releases/1.xx.x/".
I honestly do not know how to do it and that is why I ask for help to be able to carry out this procedure.
Grateful.
If you are on Ubuntu 20.04 (focal), you can only install OpenModelica versions released after April 2020 (because we don't update the old releases for newer OpenModelica versions). The oldest you can install without using docker or compiling your own OpenModelica is the following as /etc/apt/sources.list.d/openmodelica.list:
deb https://build.openmodelica.org/omc/builds/linux/releases/1.16.0/ focal release
Which example does not work in the latest OpenModelica for you? We have done some fairly extensive testing and the change from the old to the new frontend is a net gain in the number of models that simulate.
Now this error occurs after installing Scilab through the terminal.

Installation of gstreamer bad plugins and opencv3.3 on Ubuntu 16.04 arm64

I have been working on some video playing/streaming pipelines for Computer Vision work on Nvidia Jetson TX2. It had Ubuntu 16.04 with latest Jetpack.
I have already installed opencv 3.3 and to test some of the pipelines, with .MP$ video files, I need h264parse plugin which is a part of gst-bad-plugins. However, when I try to install it using apt-get, it shows that following packages will be installed:
freepats gstreamer1.0-plugins-bad-faad gstreamer1.0-plugins-bad-videoparsers
libbs2b0 libde265-0 libflite1 libfluidsynth1 libgstreamer-plugins-bad1.0-0
libmimic0 libmjpegutils-2.1-0 libmms0 libmpeg2encpp-2.1-0 libmplex2-2.1-0
libofa0 libopenal-data libopenal1 libopencv-calib3d2.4v5
libopencv-contrib2.4v5 libopencv-core2.4v5 libopencv-features2d2.4v5
libopencv-flann2.4v5 libopencv-highgui2.4v5 libopencv-imgproc2.4v5
libopencv-legacy2.4v5 libopencv-ml2.4v5 libopencv-objdetect2.4v5
libopencv-video2.4v5 libsoundtouch1 libspandsp2 libsrtp0 libvo-aacenc0
libvo-amrwbenc0 libwildmidi-config libwildmidi1 libzbar0
Here it tries to install an older version of opencv and this really messes up with my current opencv (v3.3) install.
Does anyone have any idea on how should I overcome this problem. I would not want the option to just ignore all the dependencies. But somehow, if it detects the installed opencv version, that would be awesome.
Any help is appreciated.
Thanks!
I am working on Jetson Tx1 , and have problem installing opencv 3.3 in virtual environment onto it due to space issues. I tried to compile the build file from external sd card and make from there. Then Sym-link (cv2.so) file to appropriate path. Can you tell me how you were able to install opencv3.3 ??

How To Install GCC 7.1 and GDB 7.12.1 Ubuntu 16.04 from sources?

Since I know these versions doesn't come installed on Ubuntu 16.04, I've got the packages from their website. How can I install it? I've tried a bunch of online tutorials and none of them seem to work.

Resources