Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#19997] Duplicating window results in graphics corruption in UI

Date:
2009-11-25 01:08
Priority:
3
State:
Closed
Submitted by:
Micael Dias (mdias)
Assigned to:
Nathan Letwory (jesterking)
Category:
OS related: Windows
Status:
Fixed / Closed
Relates to:
Duplicates:
[#24880] [#24512] [#24203] [#24049] [#23905] [#22604] [#21829] [#19968] [#20210] [#21131] [#20865]
Patches:
 
Summary:
Duplicating window results in graphics corruption in UI
Detailed description
Steps to reproduce:
1) Open blender
2) Duplicate window
3) Close original window
4) Create another duplicate window from the remaining window

I have attached a screenshot of what the corruption looks like.

Followup

Message
  • Date: 2009-11-26 12:08
  • Sender: Brecht Van Lommel
  • Please specify operating system and graphics card, as mentioned on the bug submission page.
  • Date: 2009-11-26 12:20
  • Sender: Micael Dias
  • system specs:

    Windows 7 Ultimate x64
    Blender 2.50 Alpha 0 x64
    ATI Radeon 3870 512 MB
    4GB RAM
  • Date: 2010-01-08 18:08
  • Sender: Brecht Van Lommel
  • 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.
  • Date: 2010-02-22 01:07
  • Sender: Elia Sarti
  • Should this happen regardless of graphics card? I cannot reproduce the issue.

    My specs:
    Ubuntu 9.04 x64 (kernel 2.6.28-17 generic) with latest NVIDA drivers
    NVIDIA GeForce 9600M GS
  • Date: 2010-02-22 22:44
  • Sender: Micael Dias
  • I can't tell if this is reproducible with any gfx card, but as of build 27081 it's still easily reproducible on my machine.
    Perhaps it's a Windows specific problem?
  • Date: 2010-03-10 18:53
  • Sender: Hans Erickson
  • 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





  • Date: 2010-03-10 19:04
  • Sender: Hans Erickson
  • 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





  • Date: 2010-06-01 06:34
  • Sender: Nathan Letwory
  • I don't get the error message Hans pasted, but instead, I have:

    GL ERROR - Function glBindTexture(GL_TEXTURE_2D,1) generated error GL_INVALID_OPERATION
  • Date: 2010-06-22 19:56
  • Sender: Brecht Van Lommel
  • Indeed another duplicate, closed that one as well.
  • Date: 2010-07-14 21:30
  • Sender: Remigiusz Marcinkiewicz
  • 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?
  • Date: 2010-07-22 19:59
  • Sender: Luca Bonavita
  • 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
  • Date: 2010-09-07 15:04
  • Sender: dan grauer
  • i also have this bug when i close the main window and a console window is open and pull a new one out of it.

    blender: r31807
    system: windows 7 pro 64bit
    GPU: NVIDIA GTX470 (258.96)
  • Date: 2011-02-04 14:25
  • Sender: Nathan Letwory
  • Reopening so I can close in a moment, fix found!
  • Date: 2011-02-04 14:26
  • Sender: Nathan Letwory
  • Ok, fixed and committed in r34641. Yay.
 

Attached Files:

Name Date Download
blender250_garbage.png 2009-11-25 01:08 Download
04.jpeg 2010-07-22 19:59 Download
04_milano_centrale2.zip 2010-07-22 19:59 Download

Changes:

Field Old Value Date By
status_idOpen2011-02-04 14:34jesterking
close_dateNone2011-02-04 14:34jesterking
StatusReopened2011-02-04 14:34jesterking
status_idClosed2011-02-04 14:25jesterking
close_date2010-11-24 11:242011-02-04 14:25jesterking
StatusClosed2011-02-04 14:25jesterking
close_date2010-11-24 11:242010-11-24 11:24jesterking
close_date2010-11-04 09:442010-11-04 09:44jesterking
close_date2010-10-10 00:232010-10-10 00:23jesterking
close_date2010-09-29 07:212010-09-29 07:21jesterking
close_date2010-09-19 21:482010-09-19 21:48jesterking
ResolutionInvestigate2010-09-03 07:41jesterking
close_date2010-09-03 07:412010-09-03 07:41jesterking
status_idOpen2010-09-03 07:41jesterking
File Added11823: 04_milano_centrale2.zip2010-07-22 19:59mindrones
File Added11822: 04.jpeg2010-07-22 19:59mindrones
assigned_tonone2010-05-30 17:15jesterking
ResolutionNone2010-03-22 11:19broken
CategoryOpengl / Gfx2010-02-13 13:25blendix
CategoryInterface2010-01-08 18:08blendix
File Added9055: blender250_garbage.png2009-11-25 01:08mdias

Changes:

Blender 2.x BF release: Blender 2.6 Bug Tracker
   [#25779] user perference window text gets messed up (Relation: Duplicates)