(3127B85) Nightly broken on Windows 8.1

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
Locked
Biont
Posts: 11
Joined: 03 Jan 2014, 22:49

(3127B85) Nightly broken on Windows 8.1

Post by Biont »

Hey everyone,

I just tried to launch the latest nightly on windows. The launcher does not start at all and openmw.exe throws the following error:
Could not initialize SDL! Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function?

I tried 0.28.0RC1 as well as the previous nightly and both work fine.

I just thought I'd let you know since I haven't found the error being reported yet


EDIT: Yeah, 64 bit here as well. To make sure, I also tested the 32bit version which behaves the same
Last edited by Biont on 09 Jan 2014, 11:38, edited 1 time in total.
User avatar
Lazaroth
Posts: 220
Joined: 30 May 2012, 05:04

Re: (3127B85) Nightly broken on Windows 8.1

Post by Lazaroth »

Confirmed; win 8.1 64-bit.
User avatar
Amenophis
Posts: 320
Joined: 30 Oct 2011, 04:34
Location: Fortaleza - Ceará - Brasil

Re: (3127B85) Nightly broken on Windows 8.1

Post by Amenophis »

Me too. Win 7 64 bits
User avatar
Ace (SWE)
Posts: 887
Joined: 15 Aug 2011, 14:56

Re: (3127B85) Nightly broken on Windows 8.1

Post by Ace (SWE) »

Yeah, this is because I think endorph disabled the WinMain from SDL, so it fails to initialize properly. It shouldn't be too hard to move some of the pre-init code over from SDLs WinMain, but it's not something I can do until saturday at soonest.
Until then the nightlies will probably not work at all...
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: (3127B85) Nightly broken on Windows 8.1

Post by scrawl »

According to Sam Lantinga:
If you don't want SDL to redefine your main function, just
define SDL_MAIN_HANDLED before you include SDL.h, and then
call SDL_SetMainReady() before you call SDL_Init().
http://lists.libsdl.org/pipermail/sdl-l ... 88747.html

It looks like we're doing SDL_MAIN_HANDLED, but not SDL_SetMainReady.
User avatar
Ace (SWE)
Posts: 887
Joined: 15 Aug 2011, 14:56

Re: (3127B85) Nightly broken on Windows 8.1

Post by Ace (SWE) »

Well, I'm still not in a position to try these things, but if that's the case then it shouldn't be hard to fix once I get back to my computer.
endorph
Posts: 20
Joined: 27 Feb 2012, 22:48

Re: (3127B85) Nightly broken on Windows 8.1

Post by endorph »

Oops.. Looks like my fault. -(
I can test with SDL_SetMainReady(), but at evening.
Btw, 32bit configuration is ok?
User avatar
Ace (SWE)
Posts: 887
Joined: 15 Aug 2011, 14:56

Re: (3127B85) Nightly broken on Windows 8.1

Post by Ace (SWE) »

The latest nightlies are working again, gus managed to fix it before I got back home to my computer.
User avatar
Amenophis
Posts: 320
Joined: 30 Oct 2011, 04:34
Location: Fortaleza - Ceará - Brasil

Re: (3127B85) Nightly broken on Windows 8.1

Post by Amenophis »

Thanks, Ace and Gus. Must Appreciated.
User avatar
gus
Posts: 390
Joined: 11 Aug 2011, 15:41

Re: (3127B85) Nightly broken on Windows 8.1

Post by gus »

Np. Actually, the fix was given to me by Ace/pvdk
Locked