Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out of memory #9

Open
4e554c4c opened this issue Mar 12, 2023 · 5 comments
Open

out of memory #9

4e554c4c opened this issue Mar 12, 2023 · 5 comments

Comments

@4e554c4c
Copy link

logs

$ docker run --rm georift/install-jellyfin-tizen 192.168.1.203


	Thanks to https://github.com/jeppevinkel for providing the pre-packaged jellyfin-tizen builds!
	These builds can be found at https://github.com/jeppevinkel/jellyfin-tizen-builds


Attempting to connect to Samsung TV at IP address 192.168.1.203
* Server is not running. Start it now on port 26099 *
* Server has started successfully *
connecting to 192.168.1.203:26101 ...
connected to 192.168.1.203:26101
Attempting to get the TV name...
Found TV name: QN55Q60TAFXZA
Attempting to install jellyfin-tizen-builds version:
https://github.com/jeppevinkel/jellyfin-tizen-builds/releases/tag/2023-02-19

     0K .......... .......... .......... .......... ..........  0% 4.16M 2s
    50K .......... .......... .......... .......... ..........  1% 6.72M 2s
   100K .......... .......... .......... .......... ..........  1% 10.4M 1s
   150K .......... .......... .......... .......... ..........  2% 22.0M 1s
   200K .......... .......... .......... .......... ..........  2% 20.2M 1s
   250K .......... .......... .......... .......... ..........  3% 8.44M 1s
   300K .......... .......... .......... .......... ..........  3% 33.1M 1s
   350K .......... .......... .......... .......... ..........  4% 11.5M 1s
   400K .......... .......... .......... .......... ..........  4% 34.9M 1s
   450K .......... .......... .......... .......... ..........  5% 56.8M 1s
   500K .......... .......... .......... .......... ..........  5%  115M 1s
   550K .......... .......... .......... .......... ..........  6% 18.3M 1s
   600K .......... .......... .......... .......... ..........  6% 75.1M 1s
   650K .......... .......... .......... .......... ..........  7% 21.1M 1s
   700K .......... .......... .......... .......... ..........  8% 28.8M 1s
   750K .......... .......... .......... .......... ..........  8%  108M 1s
   800K .......... .......... .......... .......... ..........  9% 8.65M 1s
   850K .......... .......... .......... .......... ..........  9% 95.9M 1s
   900K .......... .......... .......... .......... .......... 10% 54.9M 1s
   950K .......... .......... .......... .......... .......... 10% 46.2M 0s
  1000K .......... .......... .......... .......... .......... 11% 30.2M 0s
  1050K .......... .......... .......... .......... .......... 11% 16.3M 0s
  1100K .......... .......... .......... .......... .......... 12%  131M 0s
  1150K .......... .......... .......... .......... .......... 12% 50.4M 0s
  1200K .......... .......... .......... .......... .......... 13%  117M 0s
  1250K .......... .......... .......... .......... .......... 13% 46.9M 0s
  1300K .......... .......... .......... .......... .......... 14% 32.7M 0s
  1350K .......... .......... .......... .......... .......... 14% 28.8M 0s
  1400K .......... .......... .......... .......... .......... 15% 22.3M 0s
  1450K .......... .......... .......... .......... .......... 16% 37.2M 0s
  1500K .......... .......... .......... .......... .......... 16% 40.7M 0s
  1550K .......... .......... .......... .......... .......... 17%  117M 0s
  1600K .......... .......... .......... .......... .......... 17% 24.5M 0s
  1650K .......... .......... .......... .......... .......... 18%  109M 0s
  1700K .......... .......... .......... .......... .......... 18% 27.0M 0s
  1750K .......... .......... .......... .......... .......... 19% 87.3M 0s
  1800K .......... .......... .......... .......... .......... 19% 32.1M 0s
  1850K .......... .......... .......... .......... .......... 20% 20.3M 0s
  1900K .......... .......... .......... .......... .......... 20% 36.4M 0s
  1950K .......... .......... .......... .......... .......... 21%  117M 0s
  2000K .......... .......... .......... .......... .......... 21% 9.28M 0s
  2050K .......... .......... .......... .......... .......... 22% 88.6M 0s
  2100K .......... .......... .......... .......... .......... 22% 93.1M 0s
  2150K .......... .......... .......... .......... .......... 23% 40.4M 0s
  2200K .......... .......... .......... .......... .......... 24% 86.0M 0s
  2250K .......... .......... .......... .......... .......... 24% 58.9M 0s
  2300K .......... .......... .......... .......... .......... 25%  117M 0s
  2350K .......... .......... .......... .......... .......... 25% 43.7M 0s
  2400K .......... .......... .......... .......... .......... 26% 64.1M 0s
  2450K .......... .......... .......... .......... .......... 26% 97.6M 0s
  2500K .......... .......... .......... .......... .......... 27% 38.2M 0s
  2550K .......... .......... .......... .......... .......... 27% 33.7M 0s
  2600K .......... .......... .......... .......... .......... 28% 38.7M 0s
  2650K .......... .......... .......... .......... .......... 28% 11.9M 0s
  2700K .......... .......... .......... .......... .......... 29% 37.6M 0s
  2750K .......... .......... .......... .......... .......... 29% 90.1M 0s
  2800K .......... .......... .......... .......... .......... 30% 30.0M 0s
  2850K .......... .......... .......... .......... .......... 30% 78.3M 0s
  2900K .......... .......... .......... .......... .......... 31% 24.5M 0s
  2950K .......... .......... .......... .......... .......... 32%  118M 0s
  3000K .......... .......... .......... .......... .......... 32% 99.1M 0s
  3050K .......... .......... .......... .......... .......... 33% 7.16M 0s
  3100K .......... .......... .......... .......... .......... 33%  117M 0s
  3150K .......... .......... .......... .......... .......... 34%  117M 0s
  3200K .......... .......... .......... .......... .......... 34%  114M 0s
  3250K .......... .......... .......... .......... .......... 35%  117M 0s
  3300K .......... .......... .......... .......... .......... 35% 30.9M 0s
  3350K .......... .......... .......... .......... .......... 36%  117M 0s
  3400K .......... .......... .......... .......... .......... 36% 88.4M 0s
  3450K .......... .......... .......... .......... .......... 37%  117M 0s
  3500K .......... .......... .......... .......... .......... 37%  117M 0s
  3550K .......... .......... .......... .......... .......... 38%  133M 0s
  3600K .......... .......... .......... .......... .......... 38% 91.0M 0s
  3650K .......... .......... .......... .......... .......... 39% 8.99M 0s
  3700K .......... .......... .......... .......... .......... 40% 54.5M 0s
  3750K .......... .......... .......... .......... .......... 40% 37.6M 0s
  3800K .......... .......... .......... .......... .......... 41%  117M 0s
  3850K .......... .......... .......... .......... .......... 41% 72.4M 0s
  3900K .......... .......... .......... .......... .......... 42% 8.83M 0s
  3950K .......... .......... .......... .......... .......... 42% 99.8M 0s
  4000K .......... .......... .......... .......... .......... 43%  117M 0s
  4050K .......... .......... .......... .......... .......... 43%  133M 0s
  4100K .......... .......... .......... .......... .......... 44%  114M 0s
  4150K .......... .......... .......... .......... .......... 44% 71.2M 0s
  4200K .......... .......... .......... .......... .......... 45% 51.0M 0s
  4250K .......... .......... .......... .......... .......... 45% 91.1M 0s
  4300K .......... .......... .......... .......... .......... 46%  117M 0s
  4350K .......... .......... .......... .......... .......... 46% 53.5M 0s
  4400K .......... .......... .......... .......... .......... 47% 44.2M 0s
  4450K .......... .......... .......... .......... .......... 48% 39.3M 0s
  4500K .......... .......... .......... .......... .......... 48%  110M 0s
  4550K .......... .......... .......... .......... .......... 49% 67.9M 0s
  4600K .......... .......... .......... .......... .......... 49% 12.4M 0s
  4650K .......... .......... .......... .......... .......... 50% 27.0M 0s
  4700K .......... .......... .......... .......... .......... 50%  109M 0s
  4750K .......... .......... .......... .......... .......... 51% 57.5M 0s
  4800K .......... .......... .......... .......... .......... 51% 26.0M 0s
  4850K .......... .......... .......... .......... .......... 52% 52.0M 0s
  4900K .......... .......... .......... .......... .......... 52%  117M 0s
  4950K .......... .......... .......... .......... .......... 53% 30.4M 0s
  5000K .......... .......... .......... .......... .......... 53%  117M 0s
  5050K .......... .......... .......... .......... .......... 54% 73.3M 0s
  5100K .......... .......... .......... .......... .......... 54% 62.8M 0s
  5150K .......... .......... .......... .......... .......... 55% 67.1M 0s
  5200K .......... .......... .......... .......... .......... 56%  107M 0s
  5250K .......... .......... .......... .......... .......... 56% 90.3M 0s
  5300K .......... .......... .......... .......... .......... 57% 72.2M 0s
  5350K .......... .......... .......... .......... .......... 57% 35.3M 0s
  5400K .......... .......... .......... .......... .......... 58% 30.7M 0s
  5450K .......... .......... .......... .......... .......... 58% 60.2M 0s
  5500K .......... .......... .......... .......... .......... 59% 38.8M 0s
  5550K .......... .......... .......... .......... .......... 59% 87.6M 0s
  5600K .......... .......... .......... .......... .......... 60%  109M 0s
  5650K .......... .......... .......... .......... .......... 60% 23.3M 0s
  5700K .......... .......... .......... .......... .......... 61%  153M 0s
  5750K .......... .......... .......... .......... .......... 61% 47.7M 0s
  5800K .......... .......... .......... .......... .......... 62%  111M 0s
  5850K .......... .......... .......... .......... .......... 62% 53.2M 0s
  5900K .......... .......... .......... .......... .......... 63%  102M 0s
  5950K .......... .......... .......... .......... .......... 64% 73.2M 0s
  6000K .......... .......... .......... .......... .......... 64% 57.9M 0s
  6050K .......... .......... .......... .......... .......... 65% 43.4M 0s
  6100K .......... .......... .......... .......... .......... 65%  118M 0s
  6150K .......... .......... .......... .......... .......... 66% 96.8M 0s
  6200K .......... .......... .......... .......... .......... 66% 46.0M 0s
  6250K .......... .......... .......... .......... .......... 67% 42.8M 0s
  6300K .......... .......... .......... .......... .......... 67% 38.2M 0s
  6350K .......... .......... .......... .......... .......... 68%  117M 0s
  6400K .......... .......... .......... .......... .......... 68% 72.7M 0s
  6450K .......... .......... .......... .......... .......... 69%  107M 0s
  6500K .......... .......... .......... .......... .......... 69% 40.0M 0s
  6550K .......... .......... .......... .......... .......... 70%  117M 0s
  6600K .......... .......... .......... .......... .......... 70% 77.7M 0s
  6650K .......... .......... .......... .......... .......... 71%  108M 0s
  6700K .......... .......... .......... .......... .......... 72% 82.0M 0s
  6750K .......... .......... .......... .......... .......... 72%  117M 0s
  6800K .......... .......... .......... .......... .......... 73% 24.3M 0s
  6850K .......... .......... .......... .......... .......... 73% 87.7M 0s
  6900K .......... .......... .......... .......... .......... 74%  114M 0s
  6950K .......... .......... .......... .......... .......... 74%  117M 0s
  7000K .......... .......... .......... .......... .......... 75% 73.7M 0s
  7050K .......... .......... .......... .......... .......... 75% 6.16M 0s
  7100K .......... .......... .......... .......... .......... 76%  113M 0s
  7150K .......... .......... .......... .......... .......... 76%  113M 0s
  7200K .......... .......... .......... .......... .......... 77% 89.8M 0s
  7250K .......... .......... .......... .......... .......... 77%  118M 0s
  7300K .......... .......... .......... .......... .......... 78% 53.8M 0s
  7350K .......... .......... .......... .......... .......... 78%  117M 0s
  7400K .......... .......... .......... .......... .......... 79%  114M 0s
  7450K .......... .......... .......... .......... .......... 80%  117M 0s
  7500K .......... .......... .......... .......... .......... 80%  118M 0s
  7550K .......... .......... .......... .......... .......... 81%  114M 0s
  7600K .......... .......... .......... .......... .......... 81% 90.1M 0s
  7650K .......... .......... .......... .......... .......... 82%  117M 0s
  7700K .......... .......... .......... .......... .......... 82%  117M 0s
  7750K .......... .......... .......... .......... .......... 83%  117M 0s
  7800K .......... .......... .......... .......... .......... 83% 6.71M 0s
  7850K .......... .......... .......... .......... .......... 84%  102M 0s
  7900K .......... .......... .......... .......... .......... 84%  114M 0s
  7950K .......... .......... .......... .......... .......... 85% 50.4M 0s
  8000K .......... .......... .......... .......... .......... 85% 96.8M 0s
  8050K .......... .......... .......... .......... .......... 86% 55.7M 0s
  8100K .......... .......... .......... .......... .......... 86% 58.1M 0s
  8150K .......... .......... .......... .......... .......... 87% 49.2M 0s
  8200K .......... .......... .......... .......... .......... 88% 51.2M 0s
  8250K .......... .......... .......... .......... .......... 88% 50.0M 0s
  8300K .......... .......... .......... .......... .......... 89%  117M 0s
  8350K .......... .......... .......... .......... .......... 89% 58.0M 0s
  8400K .......... .......... .......... .......... .......... 90%  117M 0s
  8450K .......... .......... .......... .......... .......... 90% 51.8M 0s
  8500K .......... .......... .......... .......... .......... 91% 34.0M 0s
  8550K .......... .......... .......... .......... .......... 91% 48.5M 0s
  8600K .......... .......... .......... .......... .......... 92%  107M 0s
  8650K .......... .......... .......... .......... .......... 92% 35.7M 0s
  8700K .......... .......... .......... .......... .......... 93%  118M 0s
  8750K .......... .......... .......... .......... .......... 93% 68.0M 0s
  8800K .......... .......... .......... .......... .......... 94% 91.3M 0s
  8850K .......... .......... .......... .......... .......... 94% 77.5M 0s
  8900K .......... .......... .......... .......... .......... 95% 17.6M 0s
  8950K .......... .......... .......... .......... .......... 96%  107M 0s
  9000K .......... .......... .......... .......... .......... 96% 47.1M 0s
  9050K .......... .......... .......... .......... .......... 97% 97.9M 0s
  9100K .......... .......... .......... .......... .......... 97% 58.8M 0s
  9150K .......... .......... .......... .......... .......... 98%  117M 0s
  9200K .......... .......... .......... .......... .......... 98% 41.0M 0s
  9250K .......... .......... .......... .......... .......... 99%  114M 0s
  9300K .......... .......... .......... .......... .......... 99%  102M 0s
  9350K .......... .........                                  100%  200M=0.2slibrary initialization failed - unable to allocate file descriptor table - out of memory/tizen-studio/tools/ide/bin/tizen.sh: line 143:    44 Aborted                 (core dumped) "/tizen-studio/tools/ide/bin/../../../jdk/bin/java" -Dlog4j.configuration=log4j-progress.xml -Djava.library.path=../lib-ncli/spawner -cp ../conf-ncli::../lib-ncli:../lib-ncli/KeyCertGeneratorApi.jar:../lib-ncli/README:../lib-ncli/ant.jar:../lib-ncli/args4j-2.32.jar:../lib-ncli/bcpkix-jdk15on-147.jar:../lib-ncli/bcprov-jdk15on-147.jar:../lib-ncli/com.ibm.icu_50.1.1.v201304230130.jar:../lib-ncli/com.ibm.icu_58.2.0.v20170418-1837.jar:../lib-ncli/com.lowagie.text_2.1.7.v201004222200.jar:../lib-ncli/commons-cli-1.2.jar:../lib-ncli/commons-codec-1.4.jar:../lib-ncli/commons-codec-1.7.jar:../lib-ncli/commons-collections-3.2.1.jar:../lib-ncli/commons-compress-1.8.1.jar:../lib-ncli/commons-io-2.4.jar:../lib-ncli/commons-lang3-3.1.jar:../lib-ncli/commons-logging-1.1.1.jar:../lib-ncli/commons-pool-1.6.jar:../lib-ncli/commons-ssl.jar:../lib-ncli/dom4j-1.6.1.jar:../lib-ncli/freemarker.jar:../lib-ncli/gputil.jar:../lib-ncli/gson-2.7.jar:../lib-ncli/htmlcompressor-1.5.3.jar:../lib-ncli/httpclient-4.1.2.jar:../lib-ncli/httpclient-cache-4.1.2.jar:../lib-ncli/httpcore-4.1.2.jar:../lib-ncli/httpmime-4.1.2.jar:../lib-ncli/image4j.jar:../lib-ncli/jackson-core-asl-1.9.13.jar:../lib-ncli/jackson-mapper-asl-1.9.13.jar:../lib-ncli/jaxb-impl.jar:../lib-ncli/jetty-all-8.1.7.v20120910.jar:../lib-ncli/jgrapht-jdk1.6.jar:../lib-ncli/jsoup-1.6.3.jar:../lib-ncli/lib:../lib-ncli/libraries:../lib-ncli/log4j-1.2.17.jar:../lib-ncli/org.apache.commons.httpclient.jar:../lib-ncli/org.eclipse.core.jobs_3.9.1.v20170714-0547.jar:../lib-ncli/org.eclipse.core.resources_3.12.0.v20170417-1558.jar:../lib-ncli/org.eclipse.equinox.common_3.9.0.v20170207-1454.jar:../lib-ncli/org.eclipse.osgi_3.12.50.v20170928-1321.jar:../lib-ncli/org.eclipse.ui.console_3.7.1.v20170728-0806.jar:../lib-ncli/org.tizen.common.builder_2.0.0.202011061228.jar:../lib-ncli/org.tizen.common.project_2.0.0.202011061228.jar:../lib-ncli/org.tizen.common.sdblib_2.0.0.202011061228.jar:../lib-ncli/org.tizen.common.sign_2.0.0.202010061403.jar:../lib-ncli/org.tizen.common.verrari.realm_2.0.0.202011061228.jar:../lib-ncli/org.tizen.common.verrari_2.0.0.202011061228.jar:../lib-ncli/org.tizen.common_2.0.0.202010061403.jar:../lib-ncli/org.tizen.web.builder_2.0.0.202009010621.jar:../lib-ncli/org.tizen.web.common_2.0.0.202009010621.jar:../lib-ncli/org.tizen.web.compressor.minifier.core_2.0.0.202009010621.jar:../lib-ncli/org.tizen.web.editor.configuration_2.0.0.202009010621.jar:../lib-ncli/org.tizen.web.project.wizard_2.0.0.202009010621.jar:../lib-ncli/org.tizen.web.project_2.0.0.202009010621.jar:../lib-ncli/org.tizen.web.zimlaunch_2.0.0.202009010621.jar:../lib-ncli/pngtastic-0.4.0.jar:../lib-ncli/res-cutter.jar:../lib-ncli/sbilib.jar:../lib-ncli/sdk-utils-core.jar:../lib-ncli/sdk-utils.jar:../lib-ncli/servlet-api-3.0.jar:../lib-ncli/slf4j-api-1.6.4.jar:../lib-ncli/slf4j-log4j12-1.6.4.jar:../lib-ncli/spawner:../lib-ncli/ssilib.jar:../lib-ncli/svgSalamander-tiny.jar:../lib-ncli/tizen-config-model.jar:../lib-ncli/tizen-new-cli.jar:../lib-ncli/tizen-web-model.jar:../lib-ncli/tpklib.jar:../lib-ncli/xmlsec-1.5.3.jar:../lib-ncli/yuicompressor-2.4.7.jar:/tizen-studio/tools/ide/bin/../../../library/sdk-utils-core.jar org.tizen.ncli.ide.shell.Main 'install' '-n' 'Jellyfin.wgt' '-t' 'QN55Q60TAFXZA' --current-workspace-path '/home/developer'

@4e554c4c
Copy link
Author

I was able to manually install the jellyfin app by following the instructions at https://github.com/jeppevinkel/jellyfin-tizen-builds, so this is probably an issue with this docker image.

@joaofl
Copy link

joaofl commented Apr 3, 2023

By running the container with

docker run -it --ulimit nofile=122880:122880 -m 3G --rm jellyfin 10.0.0.179

did the job for me.

@Georift
Copy link
Owner

Georift commented Jun 3, 2023

Thanks for the report, strange I haven't encountered this before. @joaofl appreciate the work around!

Can you share the specs of your machine @4e554c4c ? I might have to play around in a VM see how I can reproduce this.

@ThorpeJosh
Copy link

ThorpeJosh commented Oct 17, 2023

I also encountered this issue. Setting --ulimit nofile=122880:122880 resolved the issue.

I'm running linux with 64GB ram so memory is not an issue. On linux the docker daemon imposes no memory or ulimits for the number of files (nofile). So it seems the Tizen software is a hog and starts too many processes/files and then crashes. With a ulimit set, Tizen doesn't create so many processes/files and this prevents it from crashing.

I suspect you won't encounter this issue with docker desktop as it imposes many resource restriction on containers.

For those interested in knowing what --ulimit nofile=122880:122880 actually changes inside the container:

docker run --rm -it --entrypoint=bash georift/install-jellyfin-tizen
root@5ec314c4721c:~# ulimit -n
1073741816
docker run --rm -it --entrypoint=bash --ulimit nofile=122880:122880 georift/install-jellyfin-tizen
root@5ec314c4721c:~# ulimit -n
122880

@DerrikMilligan
Copy link

Yeah this ended up doing it for me:

sudo docker run --ulimit nofile=122880:122880 -m 3G --rm georift/install-jellyfin-tizen 10.0.0.176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants