Game Development

Game development and other polite discussion. Game development...
Mar 6, 2014 19:28
But it's being used elsehwere with no issues. That's so weird.
Mar 6, 2014 19:26
It's only when I use the version imported from the library that it crashes. Like the symbol is being imported wrong
Mar 6, 2014 19:26
Or if I copy SDL_memset locally, it's fine
Mar 6, 2014 19:25
And if I replace SDL_memset with memset(), it's fine
Mar 6, 2014 19:25
That's what I thought, but everything is totally valid
Mar 6, 2014 19:20
oh weird. If I copy SDL_memset locally, the crash goes away. It must be the way it's being pulled in, then
Mar 6, 2014 19:17
Yup. The violation is at SDL_memset in that function. Working on why. The pointer and values being passed in all look good
Mar 6, 2014 19:09
Copied the SDL_FillRect1SSE() over
Mar 6, 2014 19:09
Ah hah! Found it
Mar 6, 2014 18:47
I can't believe I'm the only one who's come across this on the whole internet
Mar 6, 2014 18:47
Thanks for the help, anyway
Mar 6, 2014 18:47
yup
Mar 6, 2014 18:46
And that does not crash! Fascinating.
Mar 6, 2014 18:44
It doesn't do anything special
Mar 6, 2014 18:44
I'm going to just cut n' paste SDL_FillRect1 and define it locally
Mar 6, 2014 18:43
But that doesn't seem to be it. A width of 64, 65, 66, 67 all work. 49, 50, 51 all crash
Mar 6, 2014 18:42
I thought maybe it was the way they align the memset so they can do 4-bye copies
Mar 6, 2014 18:33
The call stack goes from SDL_FillRect() to SDL_memset()
Mar 6, 2014 18:33
Somewhat. I've got it narrowed down to SDL_memset(), but there's a step missing.
Mar 6, 2014 18:13
Agreed, that's where I'm looking right now
Mar 6, 2014 18:10
And only with palletized surfaces
Mar 6, 2014 18:10
Which should be entirely valid
Mar 6, 2014 18:10
SDL_FillRect() is crashing only on specific in puts
Mar 6, 2014 18:10
We're discussing this question: gamedev.stackexchange.com/questions/71466/…
Mar 6, 2014 18:09
Is what a function, @ShotgunNinja?
Mar 6, 2014 18:09
It works fine and fills the entire surface
Mar 6, 2014 18:09
10, 10, 50, 100 does crash
Mar 6, 2014 18:08
E.g. 10, 10, 100, 100 does not crash
Mar 6, 2014 18:08
Correct
Mar 6, 2014 18:08
Yes
Mar 6, 2014 18:08
Right. I was thinking I could restrict it to software rendering to narrow things down
Mar 6, 2014 18:07
Serious weak sauce.
Mar 6, 2014 18:06
Yeah, I'll have to do that at home when I can install the directx sdk. It doesn't build without it
Mar 6, 2014 18:06
No, just .lib and .dll
Mar 6, 2014 18:05
wow those are a lot of macros
Mar 6, 2014 18:04
I've been looking around for a binary with debug symbols, but haven't yet. I was hoping Gamedev would have some advice. I searched other posts before asking, and it seemed like there were similar posts already.
Mar 6, 2014 18:00
I did notice that. I tried building SDL from source, but I can't install directX here
Mar 6, 2014 18:00
Right, especially since it passes if the rect is a different size.
Mar 6, 2014 17:59
When I break on SDL_FillRect(), I looked into pSurf and it's fine. When I step over/step into, access violation.
Mar 6, 2014 17:59
Yes, that's exactly what I've done
Mar 6, 2014 17:58
It does seem that way. I'm linking with the development version of the SDL libs, but the symbols aren't there
Mar 6, 2014 17:57
Good afternoon
 

 Home Improvement

General discussion for diy.stackexchange.com
Feb 2, 2012 22:02
Time to head home. Night, Putters
Feb 2, 2012 21:27
huh
Feb 2, 2012 21:10
Yeah. I was quite proud of the little 2wd 4-banger :)
Feb 2, 2012 21:10
Going to the dump
Feb 2, 2012 21:10
I remember one load of plaster+lath+tile was around 1200lbs in my poor little Tacoma.
Feb 2, 2012 21:10
heh no. I was stuck finishing it myself.
Feb 2, 2012 21:09
In good news, we got almost 3" extra of bathroom width after taking out the 1" thick plaster plus 1/2" of tile :)
Feb 2, 2012 21:08
hahahaha