ubergeek77 / Docker-tizen-studio-ide

7 stars 2 forks source link

library initialization failed - unable to allocate file descriptor table - out of memory #1

Open mdouchement opened 5 years ago

mdouchement commented 5 years ago

Hello, I wanted to install jellyfin-samsungtv and I've found your Reddit post.

I wanted to start Tizen Studio with your Docker version but I'm getting the following error:

[desktop_scripts]>> docker run -d \
    --name tizen-studio-ide \
    -e DISPLAY=$DISPLAY \
    --net=host \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v $HOME/tizen/workspace:/home/tizen/workspace \
    -v $HOME/tizen/extensions:/home/tizen/extensions \
    -v $HOME/tizen/certificates:/home/tizen/certificates \
    ubergeek77/tizen-studio-ide:2.5
d768544f4c21ab15fa5275422fa848c4db535651a894ce418e49c08520f4815c
[desktop_scripts]>> docker exec -u tizen -it tizen-studio-ide /bin/bash
tizen@user-pc:/$ ~/tizen-studio/ide/TizenStudio.sh
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128M; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
library initialization failed - unable to allocate file descriptor table - out of memory

The container tizen-studio-ide is alive with less than 100MB of memory used. I'm running the container on a VM with 8GB RAM and 40GB of HDD.

Did you have encountered this error and do you know how to resolve it?

ubergeek77 commented 5 years ago

Oh wow, this is interesting.

Unfortunately no, I've never seen this before. I encountered zero Java errors when setting this up. Most of my issues were just with Tizen being stupid.

I'm really not sure if I can fix this, but what I can tell you is that I ran this for myself with Arch Linux.

What distro do you use? And is your Docker up to date?

MathiasPius commented 1 year ago

For any other DenverCoder9s out there who might stumble upon this issue after having hit the exact same issue, I resolved it by adding a --ulimit nofile=1024:1024 flag to my docker commands, both build and run.

I pulled 1024 out of my ass, so you might have to go higher if it doesn't work.

ubergeek77 commented 1 year ago

I gotta say I'm surprised people are still using this 😅

MathiasPius commented 1 year ago

Oh I wasn't using it directly, just stumbled upon it while doing something similar with Docker and Tizen, and stumbled upon this in my quest for answers. Figured I'd put the solution in case someone else ends up here 😄