| Summary: | SDL_BlitCopy crashes on mac OS 10.14 with specific file | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Tobbi <tobbi.bugs> |
| Component: | render | Assignee: | Sylvain <sylvain.becker> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | critical | ||
| Priority: | P2 | ||
| Version: | 2.0.12 | ||
| Hardware: | x86_64 | ||
| OS: | macOS 10.14 | ||
| Attachments: |
icechunk.png - the file causing the crash
full backtrace (with debug symbols) attempt of test-case |
||
|
Description
Tobbi
2020-06-11 19:54:33 UTC
Created attachment 4381 [details]
full backtrace (with debug symbols)
Hey Sylvain, this isn't a Mac issue, it's a format conversion issue. Can you take a look? Created attachment 4388 [details]
attempt of test-case
Hey,
I can't reproduce your issue Tobbi, see the test-case while converting to 4 rgba format. (tried with latest hg sources).
The image file is quite standard: SDL_PIXELFORMAT_ABGR8888, 128 x 128, pitch=512
so it's strange to have an issue with this.
You code seems also correct.
But the commit you point is totally unrelated, so maybe it would be good to run you code with valgrind or something.
By pure coincidence, the bug is fixed with the latest master version of SuperTux. I identified the commit that fixed the bug as 7d3f96ad890a35a2e2c6b36c24441de49d9e2d66 In particular, the lines that fixed this are https://github.com/SuperTux/supertux/commit/7d3f96ad890a35a2e2c6b36c24441de49d9e2d66#diff-f4868f0781e6c34b4ef6d2f0ce13a5e3R5357-R5373 The supertux tile format splits a particular image into squares of dimension 32x32 and calculates the size of the image that way. I will have to find out how we pass the calculated size of that to SDL. ok, so I marked this as invalid. The reason looks suspicious and I would run the app with valgrind if I were you. marked as invalid |