Post
Topic
Board Development & Technical Discussion
Topic OP
Self-compiled QT win32 wallet crashes with "unable to allocate memory for mutex"
by
topshibedoge
on 01/01/2014, 20:00:23 UTC
I've been struggling for over a day with this. I need to be able to compile a working Litecoin QT wallet for Windows from source, because I'm with a group that's launching a new scrypt altcoin soon. I've got the wallet compiling to an EXE, but when it runs it shows the splash screen but then crashes and I get this error in db.log:

Quote
unable to allocate memory for mutex; resize mutex region
Unable to acquire/release a mutex; check configuration
PANIC: Operation not permitted
process-private: unable to find environment

Same thing happens when compiling multiple wallet sources including Litecoin, Dogecoin, Mooncoin, and more. It's a problem with the maximum mutexes setting of the DB library apparently, and manually configuring a max in a DB_CONFIG file seems to work for everybody according to Google searches, but not for me. Something seems to be hosed in my DB dependency. Does anybody have a working DB dependency for MinGW32 that's able to compile these wallets correctly that they can share with me? Or even the entire deps+MinGW system?

Or alternately, does anybody know how I can just fix the error I'm getting? Thanks!