-
Notifications
You must be signed in to change notification settings - Fork 90
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
Demo: main panicked - Result::unwrap() - Err
value: "GL context creation failed"
#192
Comments
The backtrace issue works as follows: Of course, replace it command with whatever command you are actually using to run the pogram. Some additional context is necessary here. What part of the tutorial are you currently try out? Which program are you trying to run? |
Your issue might be the one mentioned in the top-level Readme as well: |
I thought I was in the "spinning-square" section - that's what I'm trying to run. Thanks for the backtrace hint - I'll try it. I saw the comment about the Readme, but I couldn't figure out where is the helloworld.rs. Why not just make it a link for us newbies? I tried a site search but it didn't find anything. Thanks & Blessings - Art |
Ahh ... "top-level" HelloWorld ... I found it but it was of ZERO help. The similar note in the spinning-box demo is 'almost' clear, but making the change did NOT work at all:
I came across the "piston-window" app in Start new project with Piston and tried it ... it failed with exactly the same error. There is a blink of a window that is created, but it immediately crashes. Thanks to the hint re: backtrace, I was able to use it ... "vidtest" is the project name I gave to "piston-window" ...
We are having an awful lot of trouble with such an elementary "Getting Started" program! |
Wrap the backtrace in a code block, that probably works best |
I've read more about Mesa and OpenGL ... here is more information about my system:
I've read that Mesa 17.4 might have resolved some problems, and that Mesa 18.0 is supposed to be out already ... is there any hope? |
I've run this previously both on this laptop (linux) and cross compiled for raspberry pi. It's was a bit clunky (i.e. v.e.r.y. s.l.o.w...) but ran. Now when I try to compile it I get the same error and backtrace as @Webtest7 above. When I change the Cargo.toml from
to
I get the following error due to winit being 'yanked' and 0.10.1 no longer existing.
|
For me, changing to OpenGL::V2_1 worked. |
NEWBIE ALERT! I am very new to 'rust'. I got a few primitive things running and found this demo of a graphics app which I want to try to see if I want to continue with 'rust'.
It builds normally, but when it runs, it aborts with an error message:
Result::unwrap()
on anErr
value: "GL context creation failed"', libcore/result.rs:945:5note: Run with
RUST_BACKTRACE=1
for a backtrace.I tried to figure out the BACKTRACE stuff, but wasn't able to ... It disappears from the environment as soon as it is put in ??? I don't know what I am doing yet.
Here is my system info - I hope it is enough:
Machine: System: Hewlett-Packard product: HP Compaq dx2400 Microtower
Mobo: ASUSTeK model: 2A73 v: 1.01
Bios: American Megatrends v: 5.23 date: 04/21/2008
CPU: Dual core Intel Core2 Duo E4600 (-MCP-) cache: 2048 KB
clock speeds: max: 2400 MHz 1: 1600 MHz 2: 2000 MHz
CPU Flags: acpi aperfmperf apic arch_perfmon bts clflush cmov constant_tsc
cx16 cx8 de ds_cpl dtes64 dtherm dts est fpu fxsr ht lahf_lm lm mca mce mmx
monitor msr mtrr nopl nx pae pat pbe pdcm pebs pge pni pse pse36 rep_good
sep ss sse sse2 ssse3 syscall tm tm2 tsc vme xtpr
System: Host: mint Kernel: 4.10.0-38-generic x86_64 (64 bit) Desktop: MATE 1.18.0
Distro: Linux Mint 18.3 Sylvia
Graphics: Card: Intel 82G33/G31 Express Integrated Graphics Controller
Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
Resolution: [email protected]
GLX Renderer: Mesa DRI Intel G33 GLX Version: 1.4 Mesa 17.0.7
mint@mint ~ $ lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 02)
mint@mint ~ $ find /dev -group video
/dev/fb0
/dev/dri/card0
/dev/dri/renderD128
mint@mint ~ $ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 02)
Subsystem: Hewlett-Packard Company 82G33/G31 Express Integrated Graphics Controller
Kernel driver in use: i915
Kernel Mode Setting driver: i915, version 1.6.0 20161121
I spent several hours googling for a resolution to this problem with NO success.
Thank you for any and all comments, suggestions, and assistance.
Blessings in abundance,
Art in Carlisle, PA USA
The text was updated successfully, but these errors were encountered: