4Winds freezes

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
jonypl
Level 1
Level 1
Posts: 9
Joined: Wed Dec 09, 2009 5:53 am

4Winds freezes

Post by jonypl »

I'm trying to run 4Winds (http://appdb.winehq.org/objectManager.p ... ngId=54861) on MacOS X. Game generally works but sometimes, when finishing the round main window freezes (only the playground, menu and buttons still works properly). I was trying to run wine in debug mode but found nothing.
jonypl
Level 1
Level 1
Posts: 9
Joined: Wed Dec 09, 2009 5:53 am

Post by jonypl »

I noticed a possible cause of the problem. When main window freezes and start new game without restarting X11 in terminal appears:

Code: Select all

wine client error:15: pipe: Too many open files
But don't know what to do with that.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

jonypl wrote:

Code: Select all

wine client error:15: pipe: Too many open files
But don't know what to do with that.
Run 'sudo ulimit -n 4096' in the same terminal before starting your program.
jonypl
Level 1
Level 1
Posts: 9
Joined: Wed Dec 09, 2009 5:53 am

Post by jonypl »

It didn't work. Window still freezes after few minutes of game.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

jonypl wrote:It didn't work. Window still freezes after few minutes of game.
Any terminal output?
jonypl
Level 1
Level 1
Posts: 9
Joined: Wed Dec 09, 2009 5:53 am

Post by jonypl »

Only "Too many open files". I can't say what is the reason.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

jonypl wrote:Only "Too many open files". I can't say what is the reason.
Then you not running ulimit properly. Make sure you ran it in the _same_ terminal you start your program from. Or you need to set higher limit.
jonypl
Level 1
Level 1
Posts: 9
Joined: Wed Dec 09, 2009 5:53 am

Post by jonypl »

When I run ulimit and then check present limit of opened files with ulimit -a the number is unchanged. I don't know if result of ulimit -a is content of config file or real, present limits.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

jonypl wrote:When I run ulimit and then check present limit of opened files with ulimit -a the number is unchanged. I don't know if result of ulimit -a is content of config file or real, present limits.
Should work with regular *NIX. I'm guessing you should ask Apple forum why it doesn't work for you.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

You can't use sudo to run ulimit like that. Instead, try

$ sudo bash
# ulimit -n 4096
# su jonypl
$ ulimit -a
(should show a raised limit on # of files)

This is an awesome pain in the rear end, though, so you
might want to find a way to raise this limit more permanently
(e.g. by doing ulimit -n 4096 in /etc/rc.common, and rebooting;
don't know if that works).
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

DanKegel wrote:You can't use sudo to run ulimit like that.
DOH, you right, forgot it's a builtin shell command.
jonypl
Level 1
Level 1
Posts: 9
Joined: Wed Dec 09, 2009 5:53 am

Post by jonypl »

It still doesn't work. Game freezes in random moment…
James McKenzie

4Winds freezes

Post by James McKenzie »

jonypl wrote:
It still doesn't work. Game freezes in random moment…

Did the number of files limit increase to 4096?

James McKenzie
Locked