-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
terminate called after throwing an instance of 'std::bad_array_new_length' #9
Comments
Just realise that the error is due to my change the type size to 64 bit in the benchmark.h file. Not sure why it doesn't work for 64 bit though. |
Thank you for reporting this! It would be great to improve support for 64-bit IDs. How much memory does your system have? Running out of memory seems like the most probable cause (http://en.cppreference.com/w/cpp/memory/new/bad_array_new_length). |
Hi sbeamer, |
I just built converter with NodeID set to int64_t, and I was unable to reproduce this error when converting twitter. My console output:
The program will (correctly) exit and not write out the .sg file since the binary encoding expects the 32-bit word width, but it will read the edge list in and build the graph before the exception. Looking at the code more, I'm not sure if I could imagine how the error could occur within Did you change anything other than NodeID and WeightT? |
Nothing was changed expect NodeID and WeightT. I think I found out the reason for the error: in my file there is an graph vertex of 4099117456045389565.
This will cause issue with FindMaxNodeID in builder.h . The max_seen value will be 4099117456045389565, causing my error. |
Thank you for debugging this further! I don't seem to have that line in the If somehow your hashes do match, can you re-run grep with |
@wfang Did you get a chance to check on this? |
Don't know if it's related, but I had trouble downloading the twitter graph correctly as well. |
Thanks for the suggestion @michaelsutton! On my system, |
Hi sbeamer, Sorry for the delay in reply. Both the two files are having the same size: 6475352982. I think this is un-related to the software itself. |
Hi sbeamer:
I tried to compile and run the gapbs benchmark. I get the error of std::bad_array_new_length
The steps to reproduce:
ls benchmark/graphs/raw/ -l
total 31882424
lrwxrwxrwx 1 14 Sep 6 10:37 twitter.el -> twitter_rv.net
-rw-r----- 1 26172210176 Sep 5 18:27 twitter_rv.net
-rw-r----- 1 6475352982 Feb 17 2010 twitter_rv.tar.gz
The text was updated successfully, but these errors were encountered: