BachiLi / diffvg

Differentiable Vector Graphics Rasterization
https://people.csail.mit.edu/tzumao/diffvg/
Apache License 2.0
923 stars 155 forks source link

Segmentation fault (core dumped) #4

Closed oeway closed 3 years ago

oeway commented 3 years ago

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

fuyunfei commented 3 years ago

Hi @oeway did you find the solution ?

The same thing happened to me too , the other scripts running well , just the single_gradient.py reports: Segmentation fault (core dumped)

oeway commented 3 years ago

no, I didn't find a solution.

BachiLi commented 3 years ago

Sorry, there must be a bug here. I need to check this. Give me a few days.

fuyunfei commented 3 years ago

@BachiLi Hi, Bachili, I still can't figure it out, did you find any solution ?

BachiLi commented 3 years ago

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

BachiLi commented 3 years ago

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