eglaysher / rlvm

RealLive clone for Linux and OSX
http://rlvm.net
GNU General Public License v3.0
152 stars 26 forks source link

OpenGL Error: invalid operation when trying to load/save. rlvm 0.13(OSX) #50

Closed sh1ku closed 10 years ago

sh1ku commented 10 years ago

After updating rlvm to v0.13 on OSX Mavericks (10.9), I can't load/save on any game I have (tried Tomoyo After, Little Busters and Little Busters EX). All this games have an english patch applied.

When I'm going to save or load a savedata, rlvm crashes, showing a dialog with title "Fatal local system error" that says "OpenGL Error: invalid operation".

rlvm 0.12 works fine, and the savedata doesn't seem corrupt. Anyway, I tried with a fresh install of Little Busters, and it still crashes.

Unfortunately, I can't test it on OSX Mountain Lion (10.8), so I can't tell if it's Mavericks related.

Log generated by OS X: http://pastebin.com/6jPdQqyf

Sorry about my english, I'm Spanish.

eglaysher commented 10 years ago

So, this appears to be crashing in SDL, the cross-platform display library I use to target Linux and OSX. This crash is probably not related to your savedata since it's happening before we read even the game script. My Macbook is still on Mountain Lion, and I haven't updated to Mavericks yet.

(Copying the relevant data out of pastebin:)

Thread 0:: Dispatch queue: com.apple.main-thread
0   org.elliotglaysher.rlvm             0x000000010399633c -[SDL_QuartzWindow display] + 33
1   com.apple.AppKit                    0x00007fff8ffc6681 __67-[NSWindow _updateSettingsSendingScreenChangeNotificationIfNeeded:]_block_invoke + 237
2   com.apple.AppKit                    0x00007fff8ffc6548 NSPerformWithScreenUpdatesDisabled + 65
3   com.apple.AppKit                    0x00007fff8ffc64f7 -[NSWindow _updateSettingsSendingScreenChangeNotificationIfNeeded:] + 197
4   com.apple.AppKit                    0x00007fff8ffbe7e1 -[NSWindow _setFrame:updateBorderViewSize:] + 914
5   com.apple.AppKit                    0x00007fff8ffbdd5e -[NSWindow _oldPlaceWindow:] + 652
6   com.apple.AppKit                    0x00007fff8ffbd18c -[NSWindow _setFrameCommon:display:stashSize:] + 1633
7   com.apple.AppKit                    0x00007fff8ffd15bc -[NSWindow setFrameOrigin:] + 369
8   com.apple.AppKit                    0x00007fff901f9561 -[NSWindow center] + 278
9   org.elliotglaysher.rlvm             0x00000001039942fb QZ_SetVideoMode + 1649
10  org.elliotglaysher.rlvm             0x000000010398deb9 SDL_SetVideoMode + 907
11  org.elliotglaysher.rlvm             0x00000001037ecbfc SDLGraphicsSystem::setupVideo() + 282
12  org.elliotglaysher.rlvm             0x00000001037ed196 SDLGraphicsSystem::SDLGraphicsSystem(System&, Gameexe&) + 630
13  org.elliotglaysher.rlvm             0x00000001037f6da4 SDLSystem::SDLSystem(Gameexe&) + 270
14  org.elliotglaysher.rlvm             0x00000001037d6605 RLVMInstance::Run(boost::filesystem::path const&) + 1065
15  org.elliotglaysher.rlvm             0x00000001037dc058 -[SDLMain applicationDidFinishLaunching:] + 85
eglaysher commented 10 years ago

I just switched to Mavericks and I can now reproduce this.

eglaysher commented 10 years ago

After doing some debugging on this, it looks like it's failing to upload a texture to the video card...because the source image is empty. This image is being generated by the text system, but that's all I've figured out so far.