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.

Segmentation fault (core dumped)

See original GitHub issue

When running single_gradient.py, the entire process crashes with a Segmentation fault (core dumped) error.

~/diffvg/apps$ CUDA_VISIBLE_DEVICES=1 python single_gradient.py 
Segmentation fault (core dumped)

I tried to remove some part of the code and found the error was triggered by the following call to render:

render = pydiffvg.RenderFunction.apply
img = render(256, # width
             256, # height
             2,   # num_samples_x
             2,   # num_samples_y
             0,   # seed
             None, # background_image
             *scene_args)

I am using Python 3.7.9 [GCC 7.3.0] :: Anaconda, on Mac, my torch version is 1.6.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
BachiLicommented, Dec 5, 2020

@fuyunfei @oeway Should be fixed now. Let me know if there’s any issue.

0reactions
BachiLicommented, Dec 11, 2020

Closing as I’m pretty sure it’s fixed. Feel free to reopen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

what is Segmentation fault (core dumped)? - Stack Overflow
"Segmentation fault" means that you tried to access memory that you do not have access to. The first problem is with your arguments...
Read more >
Error :- Segmentation fault(Core Dumped) - CodeChef Discuss
A segmentation fault ( SEGFAULT ) occurs when you are trying to access memory which you should not be trying to access (...
Read more >
Identify what's causing segmentation faults (segfaults)
A segmentation fault (aka segfault) is a common condition that causes programs to crash; they are often associated with a file named core...
Read more >
Resolving Segmentation Fault (“Core dumped”) in Ubuntu - Blog
Segmentation fault is when your system tries to access a page of memory that doesn't exist. Core dumped means when a part of...
Read more >
When I get a 'segmentation fault (core dumped)' error ... - Quora
A segmentation fault occurs when a process attempts to access memory in a way that the operating system and processor cannot or will...
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