Author

Topic: Self-compiled QT win32 wallet crashes with "unable to allocate memory for mutex" (Read 1422 times)

legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
Solved this on my own. If anybody else is having the same issue, try using Berkeley DB version 5.0.32. Worked for me.

Congrats! Which version of gcc did you use?

Originally 4.4, but then later 4.6.2... both work though with the newer DB version.
Why don't you use a newer one? 4.6.2 is very old.
newbie
Activity: 28
Merit: 0
Solved this on my own. If anybody else is having the same issue, try using Berkeley DB version 5.0.32. Worked for me.

Congrats! Which version of gcc did you use?

Originally 4.4, but then later 4.6.2... both work though with the newer DB version.
sr. member
Activity: 392
Merit: 250
Solved this on my own. If anybody else is having the same issue, try using Berkeley DB version 5.0.32. Worked for me.

Congrats! Which version of gcc did you use?
newbie
Activity: 28
Merit: 0
Solved this on my own. If anybody else is having the same issue, try using Berkeley DB version 5.0.32. Worked for me.
newbie
Activity: 28
Merit: 0
If it helps, I'm using DB 4.8.30, QT 4.8.4 and GCC 4.4.

What version of windows do you build with?  Win 7 x64?

Thanks for the reply. I tried it on two machines. One was Win 7 x64 and the other was Win 8 x64, but I'm using the 32-bit MinGW/GCC. I want a 32-bit wallet for maximum compatibility. Would it be less hassle to cross-compile from a Debian box? Something tells me no...
sr. member
Activity: 392
Merit: 250
If it helps, I'm using DB 4.8.30, QT 4.8.4 and GCC 4.4.

What version of windows do you build with?  Win 7 x64?
newbie
Activity: 28
Merit: 0
If it helps, I'm using DB 4.8.30, QT 4.8.4 and GCC 4.4.
newbie
Activity: 28
Merit: 0
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!
Jump to: