BitShares Forum

Other => Graveyard => LottoShares => Topic started by: jpark on August 28, 2014, 06:24:26 pm

Title: Problems compiling / running
Post by: jpark on August 28, 2014, 06:24:26 pm
I keep getting this message when trying to run ./lottoshares-qt
I pulled with git ,  ran qmake and make..

error:
bool InitBlockIndex(): Assertion `block.hashMerkleRoot == merklerootGenesisBlock' failed.
Aborted (core dumped)

In debug.log it says there is a bunch of text files (ie. bitcoin.txt dogecoin.txt) required for airdrop not found.

I'm compiling on linux mint 17 and I also tried on another computer with xubuntu 14.04 and get the same results.

Any ideas how to fix this?

Thanks.
Title: Re: Problems compiling / running
Post by: ionx on August 28, 2014, 06:34:18 pm
Copy the .txt files from the release directory to the top level of lottoshares and run it again.
Title: Re: Problems compiling / running
Post by: jpark on August 28, 2014, 11:36:09 pm
put them in ~/.lottoshares ?   or where lottoshares-qt resides?
Title: Re: Problems compiling / running
Post by: merockstar on August 29, 2014, 12:11:02 am
i copied mine /lottoshares/src, then compiled lottosharesd, then compiled qt, and it worked fine.

before i did that I was getting the same error.
Title: Re: Problems compiling / running
Post by: jpark on August 29, 2014, 02:23:22 pm
All I get now is "Segmentation Fault"  -  I'm now trying to compile with the .zip source file under releases.

And everything looks fine in debug.log.. 
but it just ends at "Initializing Databases..."

I tried copying those text files to all kinds of places, (./lottoshares ./lottoshares/src ./lottoshares/database and a bunch of folders when I compiled) seems to make no difference.

Edit: 

strace shows that it looks like its trying to open "bitcoin.txt"
then sigsegv pops up  {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0}
and  +++killed by SIGSEGV +++


Any other suggestions?

Thanks
Title: Re: Problems compiling / running
Post by: jpark on August 29, 2014, 03:22:54 pm
i copied mine /lottoshares/src, then compiled lottosharesd, then compiled qt, and it worked fine.

before i did that I was getting the same error.

1. Did you use the zip source file,  or did you git pull?
2. How do you compile just lottosharesd ? 
3. Why can't it just be written in the compilation instructions the correct way to do this or what needs to be done - its just that I don't have these type of problems compiling other clients :(


Title: Re: Problems compiling / running
Post by: FreeTrade on August 29, 2014, 03:28:44 pm
Sounds like you might be running into a memory problem - the genesis block is big . . maybe adding more memory would help.
Title: Re: Problems compiling / running
Post by: jpark on August 29, 2014, 03:33:11 pm
Sounds like you might be running into a memory problem - the genesis block is big . . maybe adding more memory would help.

That could be,  I have 2 GB though.  Other clients (dogecoin, litecoin, bitcoin) compile and run fine..
Maybe this requires more?

Edit: actually I have 2 GB..  thought I only had 1

Title: Re: Problems compiling / running
Post by: jpark on August 29, 2014, 03:55:34 pm
Hmm..  in strace it shows about bitcoin.txt being an html format.
When I saved it from git,  it's html somehow

I'll try using the actual text format files out of the zip source..

Sounds like maybe this is the problem.

Title: Re: Problems compiling / running
Post by: jpark on August 29, 2014, 05:03:33 pm
Copied the text files from source .zip to the unzipped folder where lottoshares-qt was built.
The don't have to be in the hidden ~/.lottoshares

Seems to be working now.. great.

Title: Re: Problems compiling / running
Post by: FreeTrade on August 29, 2014, 05:30:48 pm
Thanks for the report - any changes you'd recommend to the repo to avoid this problem for future users?
Title: Re: Problems compiling / running
Post by: merockstar on August 29, 2014, 09:46:29 pm
i copied mine /lottoshares/src, then compiled lottosharesd, then compiled qt, and it worked fine.

before i did that I was getting the same error.

1. Did you use the zip source file,  or did you git pull?
2. How do you compile just lottosharesd ? 
3. Why can't it just be written in the compilation instructions the correct way to do this or what needs to be done - its just that I don't have these type of problems compiling other clients :(

I git pulled.

You go into /src directory and type "make -f makefile.unix" then after that compile go to /lottoshares and "cmake" "make"

It is, but you have to dig for it, and the instructions are for litecoin. Idk.

Glad you got it to work.