-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multisamples causing GL error #3576
Comments
I have the same issue with 1.9.1-dev :
and 1.9.0
|
As I understand it - for determining the version of opengl responsible kivy.graphics. I'm assuming commit history here https://github.com/kivy/kivy/commits/master/kivy/graphics?page=1 i found that since 3eb5b48 all works, and since f15283f error exists. So either this error because of a commit or error corrections for some is the above-mentioned package. |
Error in this commit fd54e81 |
I dont succeed( Error on these lines - fd54e81#diff-b91d9923ff01305495e47990f1ac7951R85
If you set any values to these attributes - error exists. Why - i dont know. I'm looking for a solution, but so far without results. |
OK, maybe it will help, I'll read it and think about it. There is one way that circumvents the problem but not solve it. Just remove the 124 and 125 lines in https://github.com/kivy/kivy/blob/master/kivy/core/window/_window_sdl2.pyx. |
Commenting lines 124+125 did not solve the issue.
it did work. Thank you for your help ! |
This is a show stopper bug we need to either find a solution or revert fd54e81 before 1.9.1 |
About fix the problem - for support SDL_GL_MULTISAMPLEBUFFERS requires the GL_ARB_multisample extension(according this sdl.beuc.net/sdl.wiki/SDL_GLattr) , and i don`t have it. Perhaps there is another solution, the information here link_to_SO_1 link_to_SO_2 link_to_SO_3 can help to find it, or make sure that it is not (I had not understand due to poor knowledge of English and even less knowledge in SDL and opengl) |
LaTeX-Python confirmed on irc that it seems to happen with integrated GPUs, he uses this processor and was running a packaged app. His code runs without problems on machines with a dedicated graphics card.
Could you check if running the source code shows the same issue, or does it crash only with a packaged app? What is your processor model and driver version? |
@dessant running the source code shows the same issue. And for me setting multisamples to 0 helps to avoid crashes. Processor version - Celeron(R) Dual-Core CPU T3500 @ 2.10GHz × 2, driver version - i will say a little bit later. And - i have integrated GRU. And no matter what is the cause of this bug, we still need to add a check to support multisamples. |
driver version -6.3.9600.16384, driver provider - Microsoft. I can`t find driver from intel. And i checked again - setting multisamples to 0 helps to avoid crashes, and depends on multisamples count it shows different lists avaliable gl extensions with 0
with 2
|
I confirm that i have this problem with a Windows 10 machine and with Virtualbox Windows machines. |
To make @lupin3rd 's reply more beginner friendly: This is how you update the hello world example from kivy import Config
Config.set('graphics', 'multisamples', '0')
import kivy
from kivy.app import App
from kivy.uix.label import Label |
I am also getting this misidentifying error. I tried running the /share/kivy-examples/demo/showcase/main.py file and got that error. It worked after I edited the main.py file and added the following two lines just after the rest of the import statements: Currently running on: |
There seems to be a mishmash of issues in this thread. Let's use this thread for cases where gl detection issues are solved by If that is not the case, please open a new issue, describing the error you get. |
As @dessant mentioned, this thread has become full of too many issues and suggestions. @jegger's (#5071) new ticket summarizes the remaining issues. Please follow any remaining discussion there. Note: I have a work laptop which reproduces the issues as discussed there. I can run any requested tests or make this machine available remotely upon request. In the meantime, I will continue investigating and discussing on that thread. Thanks |
Comments not related to multisamples have been deleted, let's reopen this. |
Hmm, that is very strange, I don't see how that error could occur with the last release. |
@mborus, dozens of posts have been deleted from this thread to bring it to a usable state, please do not go off-topic, and debug your angle issues on irc or the mailing list. |
the issue seems to be persisting still in my machine windows 10 I have also tried the above solutions to see the issue... |
import os |
I want to clarify: RESTART: C:/Users/AppData/Local/Programs/Python/Python36-32/kivy_label.py OpenGL version detected: 1.1 Version: b'1.1.0' Try upgrading your graphics drivers and/or your graphics hardware in case of problems. The application will leave now. However, |
Should we apply the:
On windows machines only? Will there be a performance impact on other platforms if applied globally, such as on Android, iOS or OSX? |
It's only a problem on windows AFAIK. |
Thanks. What I meant was, by setting this config option regardless of the platform is running on, will it have any detrimental performance impact? |
I don't think so. From the docs, I'd just do import platform
from kivy.config import Config
if platform.system() == 'Windows:
Config.set('graphics', 'multisamples', '0')' |
Perfect. Thank you. |
This worked for me import os from kivy import Config |
What would be ideal is to allow the default multisample value, but pre-emptively set it to zero only if:
Basically, how do we test ahead of time before Kivy crashes out? I'd like to have the optimal graphics for the 99% of our software installations out there. |
I don't think that is possible. You need to run the app twice, once to see if there's an issue, at which point you need to terminate python because gl is already initialized and then you have to run it again with the "fix". So we have no way to detect the issue and then adjust the setting. You can make it available as a config option that your user changes if they have issues. |
The issue is still happening on Windows 7 x64 (2011 computer, but still...). I have an Intel HD Graphics Arrandale. The way to fix it is to place: from kivy import Config
Config.set('graphics', 'multisamples', '0') Before any kivy import. Another way to fix just on the current machine is to modify the |
I do have a compliant openGL on my Windows 10 laptop: But even with those addition in my code
I get the 1.1 version error ... The full log:
This is really very problematic ! |
Anaconda overrides a lot of libraries with their own versions. Please try again with a CPython from python.org |
Thanks for the suggestion, dolang. I did uninstall Python Anaconda 3.6.4 and installed CPython 3.6.5 instead, but this did not solved the problem. But I finally found the solution thanks to a contribution on an Intel graphical card forum. The idea is to use Shims to solve a driver compatibility problem. See the end of the thread here for a description of the solution. |
Thank you for contributing your solution back. It might be able to help someone else with the same problem. |
@gutcheschiro ,Thanks |
Is this is still present on 1.10.1? If so, would it make sense to alter the order of Line 59 in b4d3e7d
so sdl2 is picked first (at least on windows)? |
condition that it's windows per this link: * kivy/kivy#3576 (comment) I also wondered if the condiiton could be if windows && if there's an issue, but someone else asked that question too. * kivy/kivy#3576 (comment) The answer was, basicly, "no". Because to do that you'd have to restart the app. I guess it's possible, but I'll try this for now *shrug*
In Kivy 2.2.1 that code picks sdl2 over gl. Does that mean this can be closed? |
I created 2 .exe packages for windows according to the documentation. I used stable and dev version kivy. And I have a problem - stable version detects opengl version 2.1 and dev version - 1.1
log files
stable
dev
The text was updated successfully, but these errors were encountered: