Description
Event Timeline
For anyone who wants to debug this: there was a similar problem on Linux. The problem was that the OpenGL context was associated with the first window, and got lost when closing it. Most likely the same thing happens on Windows, though I couldn't figure out from just looking at the code how to solve it.
Idk if this is helpfull but when i run a opengl debugg on the first window I get
wglSwapBuffers(0xb6011d4f)
----->wglGetPixelFormat(0xb6011d4f)=13
----->wglGetPixelFormat(0xb6011d4f)=13 =true
then
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Idk if this is helpfull but when i run a opengl debugg on the first window I get
wglSwapBuffers(0xb6011d4f)
----->wglGetPixelFormat(0xb6011d4f)=13
----->wglGetPixelFormat(0xb6011d4f)=13 =true
then
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
Function wglGetPixelFormat is being called on a thread that does not have the main context
I can to confirm this, too.
Blender 2.5 alpha 2 64bit
Windows 7 Professional 64bit
ATI Radeon HD 4650 1GB
Driver version 8.14.10.0761, the latest version available as of now
The effect is exactly identical, there's no point in attaching a new screenshot. Blender starts fine and opens new windows without problems, but acts up when I open a previously saved file.
Is there anything I can do to aid debugging?
Confirming in behalf of Gillian here http://www.kino3d.com/forum/viewtopic.php?p=91055#91055
- open the attached blend by double-clickin on the file (see 04_milano_centrale2.zip)
- it shows as attached 04.jpeg (this if it is not opened by blender itself)
- if one opens this file from within bleneder non problem
---blender ---
* blender version: 2.5 alpha 2
* build: graphic all r'30403'
---platform ---
* operating system: Windows
* bitness: 32
--- hardware ---
* RAM: 4 GB
* Graphic card: nvidia
* Motherboard: intel quad core
--- optional ---
* screenshot: http://www.pasteall.org/pic/4634, also attached (see 04.jpg)
* blend file: attached 04_milano_centrale2.zip
* backtrace: --
----------------------------------------------------------
this is how I discoered this bug report
<jesterKing> mindrones: is that from startup?
<jesterKing> mindrones: if not, then it is probably duplicated window
<jesterKing> mindrones: for duplicated windows -> remove mainwindow, there's still troubles with that on windows
<jesterKing> mindrones: haven't found fix for that yet
<jesterKing> mindrones: does the .blend have multiple windows?
<jesterKing> neXyon: it's opengl context switching trouble
<jesterKing> neXyon: but I haven't found where it happens yet - code looks sane
<jesterKing> mindrones: ok, so when loading the UI when opening .blend I see another window is opened
<jesterKing> mindrones: I think this is another window that was duplicated from the first window, then the first window got closed and this was saved
<jesterKing> mindrones: opengl context gets somehow corrupted, but it is not clear how and where this happens
<jesterKing> mindrones: I notice that when I save again, the filesize drops from 1.5MB to 0.5MB
<jesterKing> mindrones: anyway, the way to fix is: open once without loading the UI
<jesterKing> mindrones: recreate the layout there was (but don't duplicate window and destroy main window)
<jesterKing> mindrones: then save
<jesterKing> mindrones: https://projects.blender.org/tracker/?func=detail&aid=19997&group_id=9&atid=498