question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Caught plotting error: std::bad_alloc

See original GitHub issue

Getting the below error in Debian 10 and Ubuntu 20 while creating plots

Computing table 2                                                                                                                                     
Caught plotting error: std::bad_alloc                                                                                                                 
Traceback (most recent call last):                                                                                                                    
  File "/root/chia-blockchain/venv/bin/chia", line 33, in <module>                                                                                    
    sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia')())                                                                        
  File "/root/chia-blockchain/src/cmds/chia.py", line 76, in main                                                                                     
    cli()  # pylint: disable=no-value-for-parameter
  File "/root/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs) 
  File "/root/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/root/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/root/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/root/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/root/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/root/chia-blockchain/venv/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/root/chia-blockchain/src/cmds/plots.py", line 134, in create_cmd
    create_plots(Params(), ctx.obj["root_path"])
  File "/root/chia-blockchain/src/plotting/create_plots.py", line 164, in create_plots
    plotter.create_plot_disk(
RuntimeError: std::exception

Command used to create plots is chia plots create -d /mnt/vol -t /mnt/vol The error occurs in computing table 2.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hoffmang9commented, Apr 9, 2021

A faulty software RAM configuration…

0reactions
harlay0728commented, Apr 19, 2021

@hoffmang9 I already solved the issue by myself

The problem was that I reduced the size of the pagefile.sys file too much. In Windows there is an option called “virtual RAM” that decides how big the pagefile.sys is. Once I changed the option again to “Managed by system” parallel plotting started working again. No faulty hardware, just a faulty software configuration.

Thanks, I solved this problem with your method. Obviously, it’s not the problem of hardware. ≧◔◡◔≦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Caught plotting error: bad allocation · Issue #3442 - GitHub
When I created pagefile the same size as RAM then new process started and tables are computed. But it is not normal because...
Read more >
Clang fails to throw a std::bad_alloc when allocating objects ...
The plot thickens when I compile the same program using gcc 4.8, using the exact same command line options. In that case, the...
Read more >
260 gnuplot is not working while plotting 6GB file size
I am able to plot 120MB file with gnuplot, but unable to do the same when file size becomes 6GB getting following error...
Read more >
Chia Plotting Error: Bad Allocation or Stuck at 1%, How to fix?
Hit bad allocation errors when I was doing high amounts of parallel plotting, but I got it fixed, hope this helps someone.00:00 Intro00:42 ......
Read more >
“Caught plotting error:bad allocation”,Please help me : r/chia
I use batch command to plotting(chia v1.1.1 & v1.05,12 processes at a time),some of processes stopped and said “Caught plotting error:bad…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found