computer-graphics-raster-images icon indicating copy to clipboard operation
computer-graphics-raster-images copied to clipboard

segfault at write_ppm.cpp

Open zero-coole opened this issue 4 years ago • 3 comments

what can i try besides fiddling with i, j, height, width?

zero-coole avatar Jan 19 '21 13:01 zero-coole

@zero-coole Segfaults mean your'e writing to / reading from a location of memory that the computer thinks you shouldn't be accessing. See if your trying to read from a bad index of data

BenWeisz avatar Jan 19 '21 21:01 BenWeisz

weird, my i went back to 0 after the loop's final iteration and then kept going until segfault Screen Shot 2021-01-19 at 5 38 15 PM

zero-coole avatar Jan 19 '21 22:01 zero-coole

That would most likely be because its writing multiple files so it happens multiple times. But its hard to tell.

BenWeisz avatar Jan 20 '21 01:01 BenWeisz