OpenGL error 1285 (Out of Memory) on Intel HD systems

文章推薦指數: 80 %
投票人數:10人

One possibility is that an earlier operation is failing (not necessarily generating an error), resulting in a value of -1. If this is used to ... OpenGLerror1285(OutofMemory)onIntelHDsystems OpenGL OpenGL:UserSoftware BitwiseShift March15,2019,7:31am #1 IhaveanumberofuserswithIntelHDsystemsthatcrashwithOpenGLerror1285(outofmemory).Theusersareallonwindows.ThesameerroroccursonavarietyofIntelHDsystemsuptoIntel®HDGraphics630(supportingOpenGL4.4).ThesamecodeworksonhundredsofATIandNVidiasystemsonWindows&Linuxwithnoissues.Thecodeisreallyanotahugememoryhogandaccordingtomylogsallthesystemshaveplentyofmemoryavailable. Idon’thaveaccesstoafaultymachinesoIhaveadifficulttimetryingtodebugthis. HowdoIpreventmycodefromgettingthiserroronIntelHDsystems? HaveIfoundanOpenGLcallthatIntelHDdoesnotsupport? I’mcurrentlyatalossandthinkingofheavilyinstrumentingmycodewithlogginginthehopesofnarrowingdowntheissue. GClements March15,2019,10:11am #2 BitwiseShift;398285: HaveIfoundanOpenGLcallthatIntelHDdoesnotsupport? GL_OUT_OF_MEMORYisonlygeneratedifacallfailsduetoinsufficientmemory.Exceedingimplementation-definedlimits(texturesize,numberoftextureunits,numberofattributes,etc)resultsinGL_INVALID_VALUE.Callingunimplementedfunctionsusuallyresultsinanaccessviolationduetoanullfunctionpointer. Onepossibilityisthatanearlieroperationisfailing(notnecessarilygeneratinganerror),resultinginavalueof-1.Ifthisisusedtocalculateasize(whichwillbeunsigned),itwilllikelyexceedavailablememoryandresultinaGL_OUT_OF_MEMORYerror. BitwiseShift;398285: I’mcurrentlyatalossandthinkingofheavilyinstrumentingmycodewithlogginginthehopesofnarrowingdowntheissue. Ifyouhavenoideaastothelikelysourceoftheerror,itmightbesimplertouseadebugcontext.Thisavoidstheneedtoinserterror-checkingcallsintotheexistingcode.ThisrequiresOpenGL4.3ortheKHR_debugextension.Ifyou’reusingatoolkitforcontextcreation,itmustprovidetheabilitytosetthereleventcontextflag(FreeGLUT,GLFWandQt5supportthis,theoriginal(MJK)GLUTandQt4don’t).



請為這篇文章評分?