Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why does this crash?
#15
(09-19-2023, 12:47 AM)DSMan195276 Wrote:
(09-19-2023, 12:42 AM)SMcNeill Wrote: Why's it crash?

Simple answer:  You're running out of memory to store it all in, and getting a seg fault.  (Linux is fairly good at popping up a message that says, "Error -- segment fault at 123456", while Windows tends to just close and pretend it never ran such an uncouth program on its OS in its entire history!)
You should read my comment, that's actually not his problem Tongue When I applied a workaround for the issue the program works and "only" uses around 400MB of memory (a lot, but not enough to run out).

Try that with a 256 color image, where you also have to store 256 color values in each palette...  It might work in this one particular instance, but I wouldn't call it something reliable that you'd be able to say would fix the problem with any certainty.   Tongue
Reply


Messages In This Thread
Why does this crash? - by TerryRitchie - 09-18-2023, 09:43 PM
RE: Why does this crash? - by GareBear - 09-18-2023, 10:01 PM
RE: Why does this crash? - by Dav - 09-18-2023, 10:08 PM
RE: Why does this crash? - by TerryRitchie - 09-18-2023, 10:33 PM
RE: Why does this crash? - by TerryRitchie - 09-18-2023, 10:42 PM
RE: Why does this crash? - by TerryRitchie - 09-18-2023, 10:50 PM
RE: Why does this crash? - by mnrvovrfc - 09-18-2023, 11:01 PM
RE: Why does this crash? - by Dav - 09-18-2023, 11:04 PM
RE: Why does this crash? - by mnrvovrfc - 09-18-2023, 11:12 PM
RE: Why does this crash? - by DSMan195276 - 09-19-2023, 12:22 AM
RE: Why does this crash? - by SMcNeill - 09-19-2023, 12:42 AM
RE: Why does this crash? - by bplus - 09-19-2023, 12:43 AM
RE: Why does this crash? - by DSMan195276 - 09-19-2023, 12:47 AM
RE: Why does this crash? - by SMcNeill - 09-19-2023, 12:56 AM
RE: Why does this crash? - by SMcNeill - 09-19-2023, 12:53 AM
RE: Why does this crash? - by DSMan195276 - 09-19-2023, 02:23 AM
RE: Why does this crash? - by TerryRitchie - 09-19-2023, 03:22 AM
RE: Why does this crash? - by bplus - 09-20-2023, 10:09 AM
RE: Why does this crash? - by TerryRitchie - 09-20-2023, 02:21 PM
RE: Why does this crash? - by TerryRitchie - 09-20-2023, 02:44 AM
RE: Why does this crash? - by bplus - 09-20-2023, 02:37 PM
RE: Why does this crash? - by TerryRitchie - 09-20-2023, 05:17 PM



Users browsing this thread: 1 Guest(s)