VOGONS


First post, by mirekluza

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

I found out yesterday that the current CVS crashed for me when DOSBOX was compiled *without* debugger support and I run Ultima 8 there. The version compiled with debugger worked ok.
By "debugger" I mean the DOSBOX debugger, not debug mode in compiler (in both cases I compiled it as release in MSVC).

I used unpatched Ultima 8, no sound, no music, 5000 cycles, normal core.
The issue appeared after some changes in CVS about 2 days ago, but it seems that people compiling with MINGW were not able to reproduce it....

Could somebody with MS Visual Studio Net 2003 confirm or disprove it (using the current CVS)?

Mirek

Reply 1 of 3, by zeromus

User metadata
Rank Newbie
Rank
Newbie

I've seen this error. I posted a note regarding its cause in #dosbox but i dunno if anyone noticed. I suppose I should post to the forum instead. So I shall:

[20:45:08] <zeromus> line 338 in sdl_mapper.cpp: assert(sdl_joystick=SDL_JoystickOpen(stick));
[20:45:22] <zeromus> if you compile with debug flags then SDL_JoystickOpen() does not get called

But actually i misspoke and its when you compile WITHOUT debug flags that the assert() will be ignored and that function will not be called.

I have no idea why other compilers do not get that error. Maybe its another error. Check that out and see if it is the culprit.

Reply 2 of 3, by mirekluza

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Thanks. Although this will be probably a different problem. Fortunately the one I was referring to was fixed by QBIX (the problem was in not allocating enough space for some strings and then copying strings there - basically corrupting heap in the process). This was fixed in CVS. Ultima 8 now works ok in both debug and release in MSVC 2003 (and we got rid of one nasty bug).

Anyway: reports of any kinds of these errors are welcomed (mainly bugfix version 0.63 is being prepared at the moment).

Mirek

Reply 3 of 3, by mirekluza

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

@zeromus: Thank you very much for this report. , I confirmed that this bug exists, basically breaking joystick support at least in MSVC 2003 builds (the function should not be in assert - asserts are probably left out from release).
I put the information on beta board.

Good luck in further bughunting... 😀

Mirek