Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 5
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 4248 times and has 4 replies Next Thread
Krakapuk
Newbie




Joined: Nov 23, 2024
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
SweetHome3D crash on start with Ubuntu 24.10 : library initialization failed - unable to allocate file descriptor table - out of memoryAbandon (core dumped)

Hi
After a fresh install of Ubuntu 24.10, and download and install of SweetHome3D-7.5-linux-x64, I got this error :
./SweetHome3D
library initialization failed - unable to allocate file descriptor table - out of memoryAbandon (core dumped)

The same problem occurs with the snap version of Sweethome3D 6.6 available in the Ubuntu app center:
sweethome3d-homedesign
Picked up _JAVA_OPTIONS: -Duser.home=/home/xxxxxxxx/snap/sweethome3d-homedesign/15
library initialization failed - unable to allocate file descriptor table - out of memoryAbandon (core dumped)

Searching for this kind of error on web, it appears related to ulimit of java and recent changes in linux default limit for the number of open files...
However I did not find a clean way to manage the problem with Sweet Home 3D.

Help welcome :)
[Nov 23, 2024, 3:44:32 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
ts101
Newbie




Joined: Dec 8, 2024
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
Re: SweetHome3D crash on start with Ubuntu 24.10 : library initialization failed - unable to allocate file descriptor table - out of memoryAbandon (core dumped)

In case anyone else stumbles upon this:

A workaround (?) for this problem is to manually set the "ulimit" to a number that works, e.g. open a shell run
ulimit -n 10000

and then start SH3D from this shell.

Now, I have absolutely no clue of java and have no idea if it does anything else, so use on your own risk.

That said, it seems to only affect the shell it is run in as in another shell, when I run
ulimit -n

it still returns "1024", as was the case in the shell I tried running SH3D from when it did give the error from the post above.
[Dec 8, 2024, 6:52:11 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Krakapuk
Newbie




Joined: Nov 23, 2024
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: SweetHome3D crash on start with Ubuntu 24.10 : library initialization failed - unable to allocate file descriptor table - out of memoryAbandon (core dumped)

Many Thanks ts101, it works ! cool

I confirm "ulimit -n 10000" seems to affect only the shell environment in which the command is run.
Indeed, closing the shell where Sweethome 3d was successfully launched, and reopening a new one without running "ulimit -n 10000", leads to the same error "library initialization failed..."
[Dec 9, 2024, 7:45:47 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
sjb007
Advanced Member




Joined: May 18, 2021
Post Count: 248
Status: Offline
Reply to this Post  Reply with Quote 
Re: SweetHome3D crash on start with Ubuntu 24.10 : library initialization failed - unable to allocate file descriptor table - out of memoryAbandon (core dumped)

Just add the ulimit command in your ~/.bashrc file, then it will apply for all shells.
[Dec 9, 2024, 10:12:43 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
dorin
Advanced Member
Member's Avatar

Romania
Joined: Apr 24, 2014
Post Count: 625
Status: Offline
Reply to this Post  Reply with Quote 
Re: SweetHome3D crash on start with Ubuntu 24.10 : library initialization failed - unable to allocate file descriptor table - out of memoryAbandon (core dumped)

New Year, new computer and a fresh debian install.
1. With first system installation (stable) I don't have Wi-Fi connection.
So, I've switch to sid (Still In Development) and the Wi-Fi connection is UP.
2. Try to run SH3D:
- with double-click => nothing
- run in terminal =>
library initialization failed - unable to allocate file descriptor table - out of memory

2.1 I've added to ~.bashrc file
ulimit -n 10000
with not remarkable effects.

2.2 I've added to every sh scripts SweetHome3D
#!/bin/sh
ulimit -n 10000
and solve the problem for SH3D to be launched in both situation.

3. Trying to launch from Eclipse as debug and I've receive again the error, this time in Eclipse console.

Solution (for me):
-run as root:
echo > /etc/security/limits.d/systemd.conf "* hard nofile 65536"

-then RESTART!
It seems to work for me.

PS: I suspect it's related to java 8.
----------------------------------------
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
----------------------------------------
[Edit 1 times, last edit by dorin at Jan 2, 2025, 5:32:19 PM]
[Jan 2, 2025, 5:26:47 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved