OpenGL version is too old - but it is not? [closed] - opengl
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am trying to run a cocos2dx application, but I receive the following error.
OpenGL version is too old
OpenGL 1.5 or higher is required [your version is [null]]. Please
upgrade the driver of your video card.
My computer isnt really old, it's not the best computer but the opengl version says its 4.4, and my graphics card is AMD Radeon R5.
What do I have to do to get this to work?
Display Devices
Card name: AMD Radeon(TM) R5 Graphics
Manufacturer: Advanced Micro Devices, Inc.
Chip type: AMD Radeon Graphics Processor (0x9851)
DAC type: Internal DAC(400MHz)
Device Type: Full Device
Device Key: Enum\PCI\VEN_1002&DEV_9851&SUBSYS_2268103C&REV_05
Display Memory: 8652 MB
> Dedicated Memory: 1004 MB
> Shared Memory: 7647 MB
> Current Mode: 1366 x 768 (32 bit) (60Hz)
> Driver Name: aticfx64.dll,aticfx64.dll,aticfx64.dll,amdxc64.dll,aticfx32,aticfx32,aticfx32,amdxc32,atiumd64.dll,atidxx64.dll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll
> Driver File Version: 8.17.0010.1404 (English)
> Driver Version: 15.201.1101.0
> DDI Version: 12
> Feature Levels: 11.1,11.0,10.1,10.0,9.3,9.2,9.1
> Driver Model: WDDM 2.0 Graphics Preemption: DMA Compute Preemption: DMA
> Miracast: Not Supported by Graphics driver Hybrid Graphics GPU: Not Supported
> Power P-states: Not Supported Driver Attributes: Final Retail Driver Date/Size: 06/08/2015 00:00:00, 1494528 bytes
> WHQL Logo'd: Yes
> WHQL Date Stamp: Device Identifier: {D7B71EE2-DB11-11CF-F076-6202BBC2C535}
> Vendor ID: 0x1002
> Device ID: 0x9851
> SubSys ID: 0x2268103C
> Revision ID: 0x0005 Driver Strong Name: oem44.inf:cb0ae414426d398f:ati2mtag_MullinsPA_Mobile:15.201.1101.0:pci\ven_1002&dev_9851&subsys_2268103c&rev_05
> Rank Of Driver: 00D10000
> Video Accel: ModeMPEG2_A ModeMPEG2_C ModeVC1_C ModeWMV9_C
> DXVA2 Modes: DXVA2_ModeMPEG2_VLD DXVA2_ModeMPEG2_IDCT DXVA2_ModeH264_VLD_NoFGT DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT
> DXVA2_ModeH264_VLD_Stereo_NoFGT DXVA2_ModeVC1_VLD
> DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC DXVA2_ModeVC1_IDCT
> DXVA2_ModeWMV9_IDCT Deinterlace Caps:
> {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(YUY2,YUY2)
> Frames(Prev/Fwd/Back)=(0,0,1) Caps=VideoProcess_YUV2RGB
> VideoProcess_StretchX VideoProcess_StretchY
> DeinterlaceTech_PixelAdaptive
> {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0)
> Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
> DeinterlaceTech_BOBVerticalStretch
> {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0)
> Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
> {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,1)
> Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
> DeinterlaceTech_PixelAdaptive
> {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0)
> Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
> DeinterlaceTech_BOBVerticalStretch
> {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0)
> Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
> {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(YV12,0x32315659) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
> {3C5323C1-6FB7-44F5-9081-056BF2EE449D}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,2)
> Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
> DeinterlaceTech_PixelAdaptive
> {552C0DAD-CCBC-420B-83C8-74943CF9F1A6}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,2)
> Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
> DeinterlaceTech_PixelAdaptive
> {6E8329FF-B642-418B-BCF0-BCB6591E255F}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,1)
> Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
> DeinterlaceTech_PixelAdaptive
> {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0)
> Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
> DeinterlaceTech_BOBVerticalStretch
> {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0)
> Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
> {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC1,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
> {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC2,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
> {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC3,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
> {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC4,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
> {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(S340,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
> {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(S342,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
> D3D9 Overlay: Not Supported
> DXVA-HD: Not Supported
> DDraw Status: Enabled
> D3D Status: Enabled
> AGP Status: Enabled
MPO Caps: Not Supported
MPO Stretch: Not Supported
MPO Media Hints: Not Supported
MPO Formats: Not Supported
Not much of an answer, but hopefully a helpful contribution:
The relevant error message is within this file and implies that glGetString(GL_VERSION) is returning NULL. Which appears almost certainly to mean that you don't have a valid context, but the method involved — GLViewImpl::initWithRect — creates a window and validates success before reaching the version check. So something amiss in glfw looks more likely.
Are you able to step debug that file? If you're on Windows, are you sure you're not stumbling upon one of those edge cases where the accelerated driver isn't available to your program? The software driver is some prehistoric fixed-functionality implementation if memory serves.
Related
VR mode iOS with AR.js
I'm trying to make my app work in VR mode, with AR.js, on my iPhone but that's the look I have when I enable this mode (on iOS 15.4.1) : Screenshot (The main problem is that the camera screen doesn't split in two screen) That is my scene in my body tag <a-scene vr-mode-ui="enabled: true;" renderer="logarithmicDepthBuffer: true;" embedded arjs="trackingMethod: best; sourceType: webcam; debugUIEnabled: false;"> <div class="arjs-loader"> <h1>Loading...</h1> </div> ... <a-entity camera></a-entity> </a-scene> Do you have any idea why I have this render in VR mode and what is the solution for that ? Thanks 😄
ngModel issue with ion-checkbox
I am trying to write a modal with a form in Ionic. For some reason, any time I associate an ngModel with <ion-checkbox> (or <ion-radio> for that matter), my modal does not show up (the constructor is called). My controller: import { Component } from '#angular/core'; import { NavController, NavParams, ViewController } from 'ionic-angular'; #Component({ selector: 'page-alert-modal', templateUrl: 'alert-modal.html', }) export class AlertModalPage { formData = {}; constructor(public navCtrl: NavController, public navParams: NavParams, viewCtrl:ViewController) { //this.formData = {xy:"", name:"", obd:""}; console.log ("*** Modal constructor"); } logForm() { console.log ("Submitted") } My template: <ion-content padding> <form (ngSubmit)="logForm()"> <ion-list-header>Trip Details</ion-list-header> <ion-item> <ion-label floating>Name your trip:</ion-label> <ion-input [(ngModel)]="formData.name" name="tripname"></ion-input> </ion-item> <ion-item> <ion-label>Track GPS lat/long</ion-label> <!-- if I enable the line below, the modal does not show up --> <!--<ion-checkbox [(ngModel)]="formData.xy"></ion-checkbox>--> <ion-checkbox></ion-checkbox> </ion-item> <ion-item> <ion-label>Read BLE OBD</ion-label> <!-- if I enable the line below, the modal does not show up --> <!--<ion-checkbox [(ngModel)]="formData.obd"></ion-checkbox>--> <ion-checkbox></ion-checkbox> </ion-item> </form> <button ion-button block outline>Ok</button> </ion-content> My ionic info: cli packages: #ionic/cli-plugin-cordova : 1.5.0 #ionic/cli-plugin-ionic-angular : 1.4.0 #ionic/cli-utils : 1.6.0 ionic (Ionic CLI) : 3.6.0 global packages: Cordova CLI : 7.0.1 local packages: #ionic/app-scripts : 2.0.2 Cordova Platforms : android 6.2.3 ios 4.4.0 Ionic Framework : ionic-angular 3.5.3 System: Android SDK Tools : 25.2.5 Node : v8.1.4 OS : macOS Sierra Xcode : Xcode 8.3.3 Build version 8E3004b ios-deploy : 1.9.0 ios-sim : 5.0.2 npm : 5.0.3
Problem solved. I missed this part in the docs Note: If you use ngModel within a Form tag, you have to provide a name property. If you do not, you must set standalone to true in ngModelOptions So this worked: <ion-item> <ion-label>Track GPS lat/long</ion-label> <ion-checkbox [(ngModel)]="formData.xy" name="xy"></ion-checkbox> </ion-item>
Ionic 2: doInfinite() is being called if list does not have data
When list does not have any item in it and if I scroll the content, the doInfinite() is being called. I'm only facing this problem on IOS. Here is the relevant code. .ts file has: doInfinite(infinite){ setTimeout( ()=> { infinite.complete(); }, 2000); } template file has: <ion-content padding> <ion-infinite-scroll (ionInfinite)="doInfinite($event)" threshold="100px" #infiniteScroll> <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="Loading more data..."> </ion-infinite-scroll-content> </ion-infinite-scroll> </ion-content> Problem: When I scroll the content area, the doInfinte() method is being called. P.S. We have not have any item on the screen. Do anyone have workaround for this?
If I understand your question, you want infinite scroll to be disabled when you do not have any data. Check docs <ion-infinite-scroll (ionInfinite)="doInfinite($event)" threshold="100px" #infiniteScroll [enabled]="isEnabled"> <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="Loading more data..."> </ion-infinite-scroll-content> </ion-infinite-scroll> You can set isEnabled to true or false based on whether data is available in the component. Second option is using enable() function. Use ViewChild to get the InfiniteScroll reference in your component: #ViewChild('infiniteScroll')infiniteScroll:InfiniteScroll; and call this.inifiniteScroll.enable(false); when required.
How to loop over a nested array in handlebars 1.3 with ember (that works on iOS8)
I found an issue that only seems to be a problem on iOS8 and I wanted to see what a work around would be. var SessionsController = Ember.ArrayController.extend({ everything: function() { var models = [{time: "x", sessions: []}]; return models; }.property() }); In the above controller I create a models array and push new objects into it... yet on iOS8 I get the following error (in the middle of the run loop it seems) when I use the nested template below TypeError: Attempted to assign to readonly property. This is the template <table class="table table-border"> <tbody> {{#each group in everything}} <tr> {{#each session in group.sessions}} <td>yo</td> {{/each}} </tr> {{/each}} </tbody> </table> here is my bower.json to show all the versions I'm using "dependencies": { "jquery": "2.1.1", "ember-resolver": "0.1.7", "handlebars": "1.3.0", "ember": "1.7.0", "ember-loader": "*", "fauxjax": "0.2.0", "bootstrap": "~3.2.0" }
This appears to be an iOS 8 Safari bug. After some debugging I have a first pass at a ghetto work-around https://github.com/emberjs/ember.js/pull/5629 As far as i can tell this does not affect iPhone 5s or Retina Mini's but it does affect 4s 5 and 5c There also appear to be other very similar issues when subclasses Native object like DOM elements. The symptoms may be similar, but they seem to happen regardless of the device. I suspect they may be related but we may have a special snow flake.
Trouble opening page with Python requests
I am having some trouble opening a page with Python requests package. The page opens fine in a browser, but the program will just hang when attempting to get the site. import bs4, requests link = "http://s6.mediastreaming.it:8080/" r = requests.get(link) data=r.text soup = bs4.BeautifulSoup(data) soup.prettify() print soup Any help understanding why this site hangs would be greatly appreciated. The code works fine with http://google.com as the link. Edit: Added info to help. This is a site that is streaming music. I just want to scrape the part of the page that says what the current song is. That is all. But maybe the fact that the page is a music streaming site is causing the issue? I just want the text of the source. Nothing else. Edit 2: Tried the following to see if I was indeed getting a stream rather than the page I wanted. import bs4, requests link = "http://s6.mediastreaming.it:8080/" r = requests.get(link,stream=True) filename = "testfile.txt" with open(filename,'wb') as fd: for chunk in r.iter_content(100): fd.write(chunk) Here's what I got as the output: ICY 200 OK icy-notice1:<BR>This stream requires Winamp<BR> icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.8<BR> icy-name:Pig Radio - The Best Electronic & Indie Pop/Rock 24/7 icy-genre:Eclectic icy-url:http://www.pigradio.com content-type:audio/mpeg icy-pub:1 icy-br:128 &Oç)goiYQŠ < 6Ê !‡À¡ö³ ‡/OFÌ)8…¨ÐU!ðiÁP¡¢ãÅ.......... When I open the page in a browser and view source I get the following: <HTML><HEAD><meta http-equiv="Content-Language" content="en-us"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Expires" content="Mon, 01 Jan 1990 12:00:00 GMT"><title>SHOUTcast Administrator</title><style type="text/css"><!--a:link {color: blue; font-family:Arial, Helvetica; font-size:9pt;}a:visited {color: blue; font-family:Arial, Helvetica; font-size:9pt;}a:hover {color: red; font-family:Arial, Helvetica; font-size:9pt; }.default {color: White; font-family:Arial, Helvetica; font-size:9pt; font-weight: normal}.ST {color: White; font-family:Arial, Helvetica; font-size:8pt; font-weight: normal}.logoText {color: red; font-family: Arial Black, Helvetica, sans-serif; font-size: 25pt; font-weight: normal; letter-spacing : -2.5px;}.flagText {color: blue; font-family: webdings; font-size: 36pt; font-weight: normal; }.ltv {color: blue; font-family: Arial, Helvetica, sans-serif; font-size: 9pt; font-weight: normal;}.tnl {color: black; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold; text-decoration: none;}--></style></HEAD><BODY topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 bgcolor=#000000 text=#EEEEEE link=#001155 vlink=#001155 alink=#FF0000><font class=default><table width=100% border=0 cellpadding=0 cellspacing=0><tr><td height=50><font class=flagText>U</font><font class=logoText> SHOUTcast D.N.A.S. Status</font></td></tr><tr><td height=14 align=right><font class=ltv><a id=ltv href="http://www.shoutcast.com/">SHOUTcast Server Version 1.9.8/Linux</a></font></td></tr><tr><td bgcolor=#DDDDDD height=20 align=center><table width=100% border=0 cellpadding=0 cellspacing=0><tr><td align=center><font class=tnl><a id=tnl href="index.html">Status</a></font></td><td align=center><font class=tnl> | </font></td><td align=center><font class=tnl><a id=tnl href="played.html">Song History</a></font></td><td align=center><font class=tnl> | </font></td><td align=center><font class=tnl><a id=tnl href="listen.pls">Listen</a></font></td><td align=center><font class=tnl> | </font></td><td align=center><font class=tnl><a id=tnl href="home.html">Stream URL</a></font></td><td align=center><font class=tnl> | </font></td><td align=center><font class=tnl><a id=tnl href="admin.cgi">Admin Login</a></font></td></tr></table></td></tr></table><br><table cellpadding=5 cellspacing=0 border=0 width=100%><tr><td bgcolor=#000025 colspan=2 align=center><font class=ST>Current Stream Information</font></td></tr></table><table cellpadding=2 cellspacing=0 border=0 align=center><tr><td width=100 nowrap><font class=default>Server Status: </font></td><td><font class=default><b>Server is currently up and public.</b></td></tr><tr><td width=100 nowrap><font class=default>Stream Status: </font></td><td><font class=default><b>Stream is up at 128 kbps with <B>45 of 300 listeners (45 unique)</b></b></td></tr><tr><td width=100 nowrap><font class=default>Listener Peak: </font></td><td><font class=default><b>200</b></td></tr><tr><td width=100 nowrap><font class=default>Average Listen Time: </font></td><td><font class=default><b>7h 13m 12s</b></td></tr><tr><td width=100 nowrap><font class=default>Stream Title: </font></td><td><font class=default><b>Pig Radio - The Best Electronic & Indie Pop/Rock 24/7</b></td></tr><tr><td width=100 nowrap><font class=default>Content Type: </font></td><td><font class=default><b>audio/mpeg</b></td></tr><tr><td width=100 nowrap><font class=default>Stream Genre: </font></td><td><font class=default><b>Eclectic</b></td></tr><tr><td width=100 nowrap><font class=default>Stream URL: </font></td><td><font class=default><b>http://www.pigradio.com</b></td></tr><tr><td width=100 nowrap><font class=default>Stream AIM: </font></td><td><font class=default><b>N/A</b></td></tr><tr><td width=100 nowrap><font class=default>Stream IRC: </font></td><td><font class=default><b>N/A</b></td></tr><tr><td width=100 nowrap><font class=default>**Current Song: </font></td><td><font class=default><b>Midlake - Young Bride (Cassettes Won't Listen Remix)**</b></td></tr></table><br><table cellpadding=0 cellspacing=0 border=0 width=100%> <tr><td bgcolor=#DDDDDD nowrap colspan=5 align=center><table cellspacing=0 cellpadding=0 border=0><tr><td><font class=ltv>Written by Stephen 'Tag Loomis, Tom Pepper and Justin Frankel</font></td></tr></table></td></tr><tr><td nowrap colspan=5 align=center><font class=ST><b>Copyright Nullsoft Inc. 1998-2004</b></font></td></tr></table></font></body></html> Obviously it's this last bit of HTML that I want to scrape for the "Current Song" How do I get just this HTML?? Edit3: Solved it! I used Wireshark to capture the GET that the browser was sending and added all the parameters I saw there to the header of my Python GET. It looks like this: import bs4, requests, urllib2 link = "http://173.255.137.244:8080/" filename = "testfile.txt" payload = {'Host':'173.255.137.244:8080','User-Agent':'Mozilla/5.0 (Windows NT 6.1; rv:26.0) Gecko/20100101 Firefox/26.0','Accept-Encoding':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8','Accept-Language':'en-US,en;q=0.5','Accept-Encoding':'gzip, deflate'} r = requests.get(link,headers=payload) data = r.text soup = bs4.BeautifulSoup(data) soup.prettify() print soup Moral of the story. Wireshark is cool.
It seems like the site has some approaches preventing spiders from crawling. If there's no authentication needed to crawl a page and the spider has something wrong when crawling, then there're usually two ways to do: Add http request headers when emitting a request which makes it like visiting the page by a web browser. Some sites usually check the User-Agent field to see if it's a spider. Add some cookies needed when emitting a request. Some sites need some information from cookies when responding. Apart from wireshark which is a little complex, observing the network requests and its headers by the chrome developer tools in chrome is a good choice.