steemit / steem

The blockchain for Smart Media Tokens (SMTs) and decentralized applications.
https://steem.com
Other
1.95k stars 790 forks source link

Error when pushing block for bad_alloc #215

Closed cryptid11 closed 8 years ago

cryptid11 commented 8 years ago

in version 12.2 and 12.1 after a while using suggested nodes:

seed-node = 46.252.27.1:1337
seed-node = 52.62.24.225:2001
seed-node = 192.99.4.226:2001
seed-node = 45.55.217.111:2001
seed-node = 81.89.101.133:2001
seed-node = 52.4.250.181:39705
seed-node = 104.199.157.70:2001
seed-node = 104.236.82.250:2001
seed-node = 212.47.249.84:40696
seed-node = 162.213.199.171:34191
seed-node = steem.kushed.com:2001
seed-node = steemd.pharesim.me:2001
seed-node = seed.steemed.net:2001
seed-node = steem.clawmap.com:2001
seed-node = seed.steemnodes.com:2001
seed-node = seed.steemwitness.com:2001
seed-node = steem-seed1.abit-more.com:2001
3153986ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3290000 time: 2016-07-18T01:59:06
3175810ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3300000 time: 2016-07-18T10:21:51
3202219ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3310000 time: 2016-07-18T18:45:33
3225987ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3320000 time: 2016-07-19T03:08:54
3247162ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3330000 time: 2016-07-19T11:32:48
3273691ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3340000 time: 2016-07-19T19:56:03
3300937ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3350000 time: 2016-07-20T04:20:48
3328214ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3360000 time: 2016-07-20T12:45:48
3335666ms th_a       application.cpp:448           handle_block         ] Error when pushing block:
13 St9bad_alloc: std::bad_alloc
std::bad_alloc: 
    {"new_block":{"previous":"00334cd162c2e0f4da13ad2396ed78b3fc547c53","timestamp":"2016-07-20T14:27:12","witness":"complexring","transaction_merkle_root":"8947f7cb481c278c4471941d04eae5ed89ed3be9","extensions":[],"witness_signature":"2048d076e6e86c9275355488268b662e73f1b5f0ee88d7aa640c0a4a50c8ac630e670036ef1c2d603c1b09d0dd892c089ae8226753095de8e9dc720c00a1cfb366","transactions":[{"ref_block_num":19601,"ref_block_prefix":1580325562,"expiration":"2016-07-20T14:27:21","operations":[["comment",{"parent_author":"julianoca","parent_permlink":"someone-can-explain-why-some-posts-have-so-many-usd-and-others-nothing","author":"ntomaino","permlink":"re-julianoca-someone-can-explain-why-some-posts-have-so-many-usd-and-others-nothing-20160720t142707844z","title":"","body":"Post quality content that others value and you will be rewarded. Maybe not right away, but the community generally does a great job of rewarding good content.","json_metadata":"{\"tags\":[\"post\"]}"}]],"extensions":[],"signatures":["207544c44395b7b61ff96c47b3b4c7bc3bc7d53cfbceab58be887607bf0eae89b83f795db6c11702876bea3039e891e237545a307eb7f3bbe1aca3b87590e59c53"]},{"ref_block_num":19648,"ref_block_prefix":3336386782,"expiration":"2016-07-20T14:27:21","operations":[["comment",{"parent_author":"mauricemikkers","parent_permlink":"steemdollar-com-v2-big-updates-best-price-index-steem-dollar-steem-and-vest-ticker-and-conversion","author":"geronimo","permlink":"re-mauricemikkers-steemdollar-com-v2-big-updates-best-price-index-steem-dollar-steem-and-vest-ticker-and-conversion-20160720t142707807z","title":"","body":"Wow, I need to say ... the Site looks awesome. Good job to the creator. Very useful","json_metadata":"{\"tags\":[\"steemit\"]}"}]],"extensions":[],"signatures":["1f6ca09649f8f90513747679d0c1f31a56e006132c20bd7eb43d5fac6686324b276385269963c549deaba2c908dc62b4babde20ea19595422bdf6b3a23fbb6a079"]},{"ref_block_num":19640,"ref_block_prefix":518675157,"expiration":"2016-07-20T14:27:21","operations":[["vote",{"voter":"blackjincrypto","author":"blackjincrypto","permlink":"re-hendrarudy-hendra-rudy-bitcoinhunt3r-20160708t133050763z","weight":10000}]],"extensions":[],"signatures":["205957af1e94a644b8b298ebb717c6850b256158930b3eb74b377b11bdc41b74f902fcde59577787dc13eb8f2cd25e2284facde835cdc3c101db8410e705bc0136"]},{"ref_block_num":18212,"ref_block_prefix":3797509239,"expiration":"2016-07-20T14:27:24","operations":[["vote",{"voter":"zebbra2014","author":"cryptotony","permlink":"re-iamwne-re-cryptotony-steem-click-steem-pink-steem-pro-free-giveaway-for-most-interesting-ideas-and-posts-20160719t210926494z","weight":10000}]],"extensions":[],"signatures":["1f582fdb30fc9d04501b84bf73c16e2e263eaf4958ef4b21564cc0da09de1445a0038e6de801846faffb404b365316ea3f037d9f012e190f27b040ac29b3195f1c"]},{"ref_block_num":19665,"ref_block_prefix":4108370530,"expiration":"2016-07-20T14:27:39","operations":[["limit_order_create",{"owner":"taker","orderid":1469021563,"amount_to_sell":"7.770 STEEM","min_to_receive":"24.996 SBD","fill_or_kill":false,"expiration":"2016-07-20T16:27:55"}]],"extensions":[],"signatures":["2049e54642a331bae34639f7bdeb399b377778c719c5d318ef90891a11bdb297d771c66f1e871a1cbf40b8fd6c3190b3b10313ed01203b04a47ab545fa61fe2b94"]},{"ref_block_num":19662,"ref_block_prefix":3734598160,"expiration":"2016-07-20T14:27:24","operations":[["vote",{"voter":"yanulyarus","author":"mctiller","permlink":"that-moment-you-tell-your-wife-about-the-money-you-ve-made-on-steemit","weight":10000}]],"extensions":[],"signatures":["205da7a5faa0dae9c009b743f382df799d88ae9518cc8b7cded490442b86379f113adb5134b93aed3bfb11d485b07d1b9801abaf2c5330200927e42d0f1056b512"]}]},"what":"std::bad_alloc"}
    th_a  database.cpp:544 operator()
3335694ms th_a       database.cpp:2637             _apply_block         ] 13 St9bad_alloc: std::bad_alloc
std::bad_alloc: 
    {"to_account.name":"complexring","steem":"1.000 STEEM","what":"std::bad_alloc"}
    th_a  database.cpp:1005 create_vesting
3335701ms th_a       application.cpp:448           handle_block         ] Error when pushing block:
13 St9bad_alloc: std::bad_alloc
std::bad_alloc: 
    {"to_account.name":"complexring","steem":"1.000 STEEM","what":"std::bad_alloc"}
    th_a  database.cpp:1005 create_vesting
rethrow
    {}
    th_a  database.cpp:2637 _apply_block

    {"new_block":{"previous":"00334cd2a3e925c939e667371c2cedd3c31b9a1d","timestamp":"2016-07-20T14:27:15","witness":"blocktrades","transaction_merkle_root":"9621e10ee392563e6d3da542552dd17405b6367a","extensions":[],"witness_signature":"2020e6e845d4ff42a9d3948227006ee2fe3817bec70cdeb13ec80e142a0e19ac532334dc2df51a3fbf47e490a8ff2c674903d1f8efc34d6da2854c55ab31e30e7f","transactions":[{"ref_block_num":19661,"ref_block_prefix":2351293832,"expiration":"2016-07-20T14:27:24","operations":[["vote",{"voter":"bitlord","author":"derder","permlink":"hi-steemit-from-malaysia","weight":10000}]],"extensions":[],"signatures":["203f28fe3bf535990ac1d6084a228c9562473179fc283346da46d3b5f38859b5ac22f7836e0e5bd0f78c36c1ca1aef2b51c334e0ed3704f50a4842c2b5b5d810cc"]},{"ref_block_num":19666,"ref_block_prefix":3374705059,"expiration":"2016-07-20T14:27:42","operations":[["limit_order_create",{"owner":"taker","orderid":1469021565,"amount_to_sell":"7.770 STEEM","min_to_receive":"23.490 SBD","fill_or_kill":false,"expiration":"2016-07-20T15:27:56"}]],"extensions":[],"signatures":["1f1de0216c3b559397b389bc07fc6fe639e8c3fa1feefc8cc51aa0c3b24939321a7970c49e0d4fea34394a73ce47c43b1c2cdeb5348c15b37993a0aae683620939"]},{"ref_block_num":18212,"ref_block_prefix":3797509239,"expiration":"2016-07-20T14:27:27","operations":[["vote",{"voter":"zebbra2014","author":"thecryptofiend","permlink":"re-cryptotony-steem-click-steem-pink-steem-pro-free-giveaway-for-most-interesting-ideas-and-posts-20160719t201221765z","weight":10000}]],"extensions":[],"signatures":["207b4119e376701f1e7c0b016890cd446cd079ed75fe6e04d59e2ab9ff2fcd3ebe14761020fdc004b363f526ff713e40e37c720c4bfbb9700a72c4b064e7ecb07a"]},{"ref_block_num":19662,"ref_block_prefix":3734598160,"expiration":"2016-07-20T14:27:27","operations":[["comment",{"parent_author":"","parent_permlink":"security","author":"dev00100000","permlink":"the-hacker-used-my-account-to-spread-hate-and-now-it-is-forever-embedded-into-steemit","title":"The hacker used my account to spread hate and racism, and now it is forever embedded into Steemit :(","body":"Many of us were hacked the past couple days, and I was one of them. Barely one day after I had posted my #introduceyourself post (which you can see [here](https://steemit.com/introduceyourself/@dev00100000/hello-steemit-i-am-a-27-year-old-college-student-aspiring-to-become-a-computer-game-developer) if you'd like to know a little bit about me) I had tried to log in early yesterday morning when my account kept telling me that my password was wrong. Naturally, I checked caps lock, slowly typed out my password, and even typed it into a notepad to make sure that I was without-a-doubt entering the correct one. Each attempt made, the sinking feeling in my stomach got worse and worse.\n\n![](http://body-stress.com/wp-content/uploads/2013/08/ComputerStressPhoto.jpg)\n\nOf course, the hacker took the pennies I had in [my account](https://steemit.com/@dev00100000/transfers), which basically confirmed to me that I was hacked and locked out of my account. But, that didn't really matter to me, since I only had a few pennies accumulated since I've been on #steemit. My #introduceyourself post did better than I expected, accumulating 72 upvotes (EDIT: 73 upvotes), so I figured since I was on Steemit to begin with, I might as well check on my other posts.\n\n<h2>That's when I saw that the hacker had used my account to comment on another Steemian's post. </h2>I would take a screenshot of the post, but I want nothing to do with it and hope that it can be removed if this gets the attention of @dan and @ned, if it can even be done. If you want to see it, you can check out the hackers [post here](https://steemit.com/introduceyourself/@kim-dahae/annyong-steemit-let-me-introduce-my-self-trader-lady-from-korea#@dev00100000/re-kim-dahae-re-wang-re-kim-dahae-annyong-steemit-let-me-introduce-my-self-trader-lady-from-korea-20160718t105807600z). I felt, and still feel, sick to my stomach. Especially knowing I couldn't even log in, delete the comment and apologize to poor @kim-dahae, who understandably made a post of [her own labeling me as a racist](https://steemit.com/steemit/@kim-dahae/racist-treatment-are-allowed-here). It was a long day trying to get in contact with someone to remedy the issue, and every time I checked on Steemit, that post was burning into my retina, knowing it will forever be part of my account. \n\nI eventually came into contact with the creator of Steemit's Facebook page, @cryptoctopus, who was a tremendous help in pointing me in the right direction and I thank them for their efforts. They pointed me out to the contact e-mail for Steemit (contact@steemit.com), and also created a post on [GitHub](https://github.com/steemit/steemit.com/issues/54#issuecomment-233401257) to get attention. Nevertheless, the 24 hour countdown was still ticking, which I believe after 24 hours, your posts are burned into Steemit forever and cannot be removed or edited.\n\nNow that I finally have my account back,  the first thing I did was try and edit that post, but of course I can't delete or edit it anymore. It has been over 24 hours. \n\nThe error I receive is: Transaction failed: comment.last_payout == fc::time_point_sec::min():\n\nTo me, that sounds as if each post is locked into the blockchain after 24 hours. I have no issues editing fresh posts under 24 hours. I've understood that you cannot delete a post after it has been upvoted, or replied to, so editing was the next best choice. But, I couldn't.\n\nMy face, my account, my life is now tied with this racist post made by a hacker on the internet. This is one reason why I never participated in social media in the past, the fear of being associated with something I am not, the fear of negative public exposure when I prefer a quiet more private and positive life. But, Steem is cool, embraces the positive, and the community made me feel comfortable, so I tried it.\n\nAlthough I feel my reputation is tainted, I also think that posting this helps as some form of therapy, maybe some sort of redemption—even though I did no wrong, I still feel that post breathing down my neck. I don't know if anything can be done to erase what happened, but I had to at least find a way to try and move forward. Believe it or not, my heart is still pounding over this and the pit in my stomach is still churning, but maybe someone can help out in the comments.\n\nIf you haven't secured your account, do what I failed to do and listen to @wang! Wangs first bullet point is there for a reason! If you see someone using hate and racism in your comments, its possible that they have been a victim of attack, we must find a solution to this as a community.\n\n![wang](https://www.steemimg.com/images/2016/07/19/Screenshotfrom2016-07-191640459f938.png)","json_metadata":"{\"tags\":[\"security\",\"help\",\"blog\",\"hatepost\",\"steem\",\"steemhelp\",\"steemit\",\"life\",\"the-hack\",\"introduceyourself\"],\"users\":[\"dan\",\"ned\",\"kim-dahae\",\"cryptoctopus\",\"wang\"],\"links\":[\"https://steemit.com/introduceyourself/@kim-dahae/annyong-steemit-let-me-introduce-my-self-trader-lady-from-korea#@dev00100000/re-kim-dahae-re-wang-re-kim-dahae-annyong-steemit-let-me-introduce-my-self-trader-lady-from-korea-20160718t105807600z\"]}"}]],"extensions":[],"signatures":["2047dd2c4d05182e8f4fe4fecca575f22b27411478313dcc168810fb0aa7eddbf01b32b78c0afcc398b0947b49e24c2d1f5e69ca84f54f8bad66916074abf77486"]},{"ref_block_num":19647,"ref_block_prefix":2372818847,"expiration":"2016-07-20T14:27:27","operations":[["comment",{"parent_author":"trevorjenglish","parent_permlink":"re-angie-hood-need-steemit-s-help-to-publish-book-please-vote-on-my-post-please-20160720t142138863z","author":"angie-hood","permlink":"re-trevorjenglish-re-angie-hood-need-steemit-s-help-to-publish-book-please-vote-on-my-post-please-20160720t142707580z","title":"","body":"Nawww, thanks. It is opening up the door and allowing opportunities for so many people who would not normally get them which is fantastic :) xx","json_metadata":"{\"tags\":[\"money\"]}"}]],"extensions":[],"signatures":["1f028b3b137479f3950867fcc84e275cea62177cb37922fd75550389c8b86e308658c1d1eb0406815145bf0b470daa7403d28163d057028f3afcdc0e98b77631d3"]},{"ref_block_num":19643,"ref_block_prefix":1892544877,"expiration":"2016-07-20T14:27:27","operations":[["comment",{"parent_author":"bdavid","parent_permlink":"re-stan-re-bdavid-re-stan-re-bdavid-atheists-20160720t110600474z","author":"stan","permlink":"re-bdavid-re-stan-re-bdavid-re-stan-re-bdavid-atheists-20160720t124450235z","title":"","body":"@@ -264,18 +264,30 @@\n  to \n-fall there\n+_choose it by default_\n  if \n","json_metadata":"{\"tags\":[\"life\"],\"image\":[\"https://img0.steemit.com/0x0/https://i.gyazo.com/f91f5c0e15f7f6685ce047fd46fc85a3.gif\"]}"}]],"extensions":[],"signatures":["200e26504370cf90be356b3f1b6eff33e788d04869e83a3505de623f1021d603eb5f4ea430ce1272a47f59142ca50df657eba6601e9bf465ae44f902347f7e3865"]}]}}
    th_a  database.cpp:544 operator()
3335702ms th_a       fork_database.cpp:41          push_block           ] Pushing block to fork database that failed to link: 00334cd489c6b61fa63c67b5ee61fb946847629c, 3362004
3335702ms th_a       fork_database.cpp:42          push_block           ] Head: 3362000, 00334cd056bcf26f0ffc7f449815d2789520c9d3
3335709ms th_a       fork_database.cpp:41          push_block           ] Pushing block to fork database that failed to link: 00334cd5331994ed67c2972cacb001cae986fa9b, 3362005
3335710ms th_a       fork_database.cpp:42          push_block           ] Head: 3362000, 00334cd056bcf26f0ffc7f449815d2789520c9d3
3335715ms th_a       fork_database.cpp:41          push_block           ] Pushing block to fork database that failed to link: 00334cd6f13f0e89db05ac42675b76c6cbc6b194, 3362006
3335716ms th_a       fork_database.cpp:42          push_block           ] Head: 3362000, 00334cd056bcf26f0ffc7f449815d2789520c9d3
3335755ms th_a       fork_database.cpp:41          push_block           ] Pushing block to fork database that failed to link: 00334cd7c26ced17bf4b9d4385eb7183f4243243, 3362007
3335755ms th_a       fork_database.cpp:42          push_block           ] Head: 3362000, 00334cd056bcf26f0ffc7f449815d2789520c9d3
3335759ms th_a       application.cpp:445           handle_block         ] Error when pushing block:
3080000 unlinkable_block_exception: unlinkable block
block does not link to known chain
    {}
    th_a  fork_database.cpp:62 _push_block

(I cut output, it goes on and on I set [logger.default] on level=info)

cryptid11 commented 8 years ago

I try another time at least this time it's more clear the problem:

2407383ms th_a       database.cpp:3525             apply_hardfork       ] HARDFORK 11
2413980ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3280000 time: 2016-07-17T17:37:03
2435661ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3290000 time: 2016-07-18T01:59:06
2455280ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3300000 time: 2016-07-18T10:21:51
2476904ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3310000 time: 2016-07-18T18:45:33
2498863ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3320000 time: 2016-07-19T03:08:54
2519108ms th_a       application.cpp:419           handle_block         ] Syncing Blockchain --- Got block: #3330000 time: 2016-07-19T11:32:48
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted

Seems you can't update the blockchain with 4 GB of ram, hope this will change, if you confirm please write it in clear so people don't try this.

mvandeberg commented 8 years ago

What plugins are you running?

Try building with low memory enabled.

cmake -D LOW_MEMORY_NODE=ON .

cryptid11 commented 8 years ago

Uh, so that not about the building process for low memory but about building a bin for slow memory! I think the opposite before, I just try and give exact same error...:(

theoreticalbts commented 8 years ago

If you want to run with little memory, use LOW_MEMORY_NODE=ON. We're constantly updating things, so memory requirements are going to be constantly changing -- we don't want to publish any advice about memory requirements because it will probably quickly become outdated.