View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0002065 | OpenClonk | Engine - Graphics | public | 2019-04-28 10:57 | 2019-04-29 22:00 | ||||
Reporter | Foaly | ||||||||
Assigned To | Clonkonaut | ||||||||
Priority | normal | Severity | crash | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | OS | Windows / Linux | OS Version | ||||||
Product Version | |||||||||
Target Version | Fixed in Version | git master | |||||||
Summary | 0002065: Wrong OpenGL context set, some of the time. | ||||||||
Description | Latest Snapshot. 6593d9b6216d44fdf9182a111493e3a6ee1cb93c Some of the time, the wrong OpenGL context is set, which can lead to crashes with some drivers (e. g. Windows 64 bit). On my Linux machine, it results in invisible objects and generally glitching graphics. Only observed so far in the Editor. It both causes OpenGL errors. Apitrace reports that some of the time no valid context is set. Additionally, objects (VAOs) from the wrong context appear to be used some of the time. | ||||||||
Steps To Reproduce | Run a scenario in the editor. LoadScenarioSection("main"); Add a torch via script and attach it to the wall. Wait for the player viewport to close. (Player elimination) Open a new viewport. Again: LoadScenarioSection("main"); Add a torch via script and attach it to the wall. | ||||||||
Additional Information | In C4FoW::~C4FoW(), the "main context" is selected, which is the wrong context sometimes. However, that had been introduced to fix some other bug. I'm not sure what the correct context to set here would be. Also, fixes only part of the problem: VAOs are not used by the wrong context anymore, but still GL errors and glitches occur. I assume that in some place a context switch is missing. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files |
|
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2019-04-28 10:57 | Foaly | New Issue | |
2019-04-29 19:01 | Foaly | Note Added: 0006234 | |
2019-04-29 22:00 | Clonkonaut | Assigned To | => Clonkonaut |
2019-04-29 22:00 | Clonkonaut | Status | new => resolved |
2019-04-29 22:00 | Clonkonaut | Resolution | open => fixed |
2019-04-29 22:00 | Clonkonaut | Fixed in Version | => git master |