-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Windows dual GPU: invalid memory address or nil pointer dereference #191
Comments
The downgrade_opengl branch was merged to master for the release so you already have the latest code from 'go get'. |
@andydotxyz OpenGL Properties: |
I have a similar problem on my notebook which has a Nvidia optimus hybrid gpu. By default the app launches on the integrated gpu (Intel HD graphics 3000) and i get a similar error (nil pointer) but a different cause (have to check later today). If i configure the app to start on the nvidia gpu everything works just fine. |
@veliev For a while we required OpenGL 3.2 so it would not have worked but now it's 2.0 so it should be fine on that computer. Can you confirm which git commit is current in your version of fyne please? ($GOPATH/src/fyne.io/fyne/ ) |
I finaly got the time to test this again. Same problem with the current fyne version (did a pull and rebuild)
|
Thanks @th3noname this is strange indeed. I have read up on that chip and it is indeed supported by the code that we have written. This leads me to wonder about the operating system drivers. Does the inbuilt graphics hardware have the latest driver installed? Is the Windows installation completely up to date with all drivers and patches? I know it's probably obvious but I have to ask... |
That was the first thing i checked and they are up to date. One curious thing i noticed is that GPU Caps Viewer reports no OpenGL Version for the internal Intel based GPU. It just says that this is not the primary OpenGL GPU. I wonder if the problem is just that fyne doesn't properly indicate what GPU it needs to run on? I'm not shure how Nvidia Optimus detects that. |
A quick Google search got me the Nvidia Optimus developer guid: The most promising way seems to be the "Global Variable" option. I'm going to try that option (probably next week) and report back the results. |
oh, excellent - let us know how that goes, thanks. |
I am also getting this issue. However, everything works fine when I build and run my program inside a local Ubuntu virtual machine. |
Sorry @tgmeow, but it looks like that GPU is not supported in Windows 10 so I don't know that we can help. https://forums.intel.com/s/question/0D50P0000490V76SAE/i-need-opengl-for-hd-graphics-3000-under-win10?language=en_US |
@andydotxyz This is virtual Windows 8.1 Corporate started on VMware Workstation Here the screenshots with Windows and OpenGL details I was looking through some of the similar issues but didn't find the answer... As I understood it may be related to OpenGL version. In our case, it is really the old one - 2.1, but fyne currently supports OpenGL starting from 2.0 as I understood. The main point is could it happen with a wide range of users ? |
@SuperKirik Can you please provide the whole error? It's the beginning of the log that will help us most. It is possible that your VM is capable of OpenGL 2.0 but that your installation does not have graphics drivers installed? |
Thank you for the clarification! The error is flashing fast in the window... so didn't find a way to get it, other than record the video :) here the ordinal screenshots: dxdiag in 'Display' tab 'Drivers' section shows the following information:
|
As I read though this bug report, it looks like this is a hardware/driver issue in the system which irrelevant to fyne itself and somewhat relates to glfw? Since there is a lack of information, shall we close this? |
I think so too. We have had a lot of issues in the past with missing driver support on Windows (drivers usually aren't installed or don't expose a new enough OpenGL version) and especially on virtual machines where hardware acceleration might not be turned on. Thoughts @andydotxyz? |
We have seen quite a few issue on Windows due to OpenGL driver not being preset, or wrong version. It make me wonder if we could not do more check at startup to make sure that the driver looks ok and report on the console of any issue before starting the application. |
That does make sense, though the top of the panic was |
Hey, I have the same issue on my RPI 4b with basic fyne-demo program. Is any solution exist on linux-base systems? |
I think this issue is mostly Windows related. Would you mind opening a new issue, with all the relevant information, so we can have a look at it? |
I read the topic #148 with a similar question. I did not find a solution in it. Пробовал откатить версию OpenGL
git checkout downgrage_opengl
Got an error
Demo code:
error
Windows 7 64
The text was updated successfully, but these errors were encountered: