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
Closed
srama2512 opened this issue
Feb 27, 2019
· 5 comments
Comments
I was able to successfully perform a local installation of MatterSim without docker. However, running driver.py
threw the following error:
Traceback (most recent call last):
File "src/driver/driver.py", line 22, in <module>
sim.initialize()
RuntimeError: EGL error 0x3001 at eglInitialize
My system configurations are as follows:
Ubuntu 16.04.5 LTS
Nvidia-driver version: 384.111
Cuda 9.0
CUDNN v7.1
Any reason not to use the docker? In general I think it’s going to be way easier to set up.
The servers I use do not support docker, unfortunately. Also, I don’t think there is an X-server running. I assumed that EGL rendering is headless (like OSMESA). However, the source code seems to require a display. Could that be the issue?
The EGL rendering option will not need an X-server. We have tested that many times.
I suspect this is related to your OpenGL / EGL install. There are some minimal EGL examples you could try, e.g. https://devblogs.nvidia.com/egl-eye-opengl-visualization-without-x-server/, it these can’t run either then it’s probably a missing library or something. You can check some of the dependencies in the readme and the dockerfile.
I am unable to resolve this issue at the moment. I am precomputing the depth and using it with the v0.1 since that’s easier for the time being. I’ll close this for now. Thank you!
Arriving a bit late!
Working on remote server and running a Flask app for showing images, importing matplotlib
this way for showing images succeed for me:
import matplotlib matplotlib.use('WebAgg') import matplotlib.pyplot as plt
Since upgrading from 5.4.1 to 5.5.0 (both via community online installer MSVC2012 32 bit), some of our users with lower end windows machines report the following bug:
class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(class QFlags): Could not initialize EGL display: error 0x3001 class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(class QFlags): When using ANGLE, check if d3dcompiler_4x.dll is available Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile 0) . This is most likely caused by not having the necessary graphics drivers installed. Install a driver providing OpenGL 2.0 or higher, or, if this is not possible, make sure the ANGLE Open GL ES 2.0 emulation libraries (libEGL.dll, libGLESv2.dll and d3dcompiler_*.dll) are available in the application executable's directory or in a location listed in PATH.
d3dcompiler_47.dll (File modified in march 2014) as shipped with 5.5.0 is in place.
We force Angle in out main() using since we previously had massive problems with broken OpenGL drivers:
I cannot reproduce the issue on any machine I have access to but I think it’s worth writing everything down that I have.
Dynamic GL LibGL Vendor: Intel Renderer: Intel Pineview Platform Version: 1.4.0 - Build 8.14.10.2364 Shading language: Format: Version: 1.4 Profile: 0 Swap behavior: 2 Buffer size (RGBA): 8,8,8,8 Depth buffer: 24 Stencil buffer: 8 GPU: Card name: Intel(R) Graphics Media Accelerator 3150 Driver Name: igdumdx32.dll Driver Version: 8.14.10.2364 Vendor ID: 0x8086 Device ID: 0xA011 SubSys ID: 0x-7C53EFBD Revision ID: 0x0002
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
I’m in trouble
I render on a computing platform, where there is no graphical interface, and I have no permission to install software too.
I use the portable blender to render, and it can start rendering normally, but when the rendering is completed and the sampling is completed, it says «Finished», but then gives a lot of errors pop up. The rendered picture was not saved. The error is as follows:
EGL Error (0x3001): EGL_NOT_INITIALIZED: EGL is not initialized, or could not be initialized, for the specified EGL display connection.
libEGL warning: No hardware driver found, falling back to software rendering
EGL Error (0x3001): EGL_NOT_INITIALIZED: EGL is not initialized, or could not be initialized, for the specified EGL display connection.
Warning: No OpenGL vendor detected.
blender: ../external_epoxy/src/dispatch_common.c:872: epoxy_get_proc_address: Assertion `0 && "Couldn't find current GLX or EGL context.n"' failed.
I think the rendering has been completed, which shows that rendering is completely possible in this environment, but I really don’t know how to solve it, which is very important for me.
I don’t know if there is a solution. It is really useful to run on this computing platform.
0
1
Собрал mesa, weston, labwc призапуске weston и labwc одинаковая ошибка:
libEGL warning: MESA-LOADER: failed to open iris: Error relocating /usr/lib/dri/iris_dri.so: _glapi_tls_Context: initial-exec TLS resolves to dynamic definition in /usr/lib/libglapi.so.0 (search paths /usr/lib/dri, suffix _dri)
00:00:00.008 [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: «DRI2: failed to load driver»
libEGL warning: MESA-LOADER: failed to open iris: Error relocating /usr/lib/dri/iris_dri.so: _glapi_tls_Context: initial-exec TLS resolves to dynamic definition in /usr/lib/libglapi.so.0 (search paths /usr/lib/dri, suffix _dri)
00:00:00.010 [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: «DRI2: failed to load driver»
00:00:00.010 [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: «eglInitialize»
00:00:00.010 [render/egl.c:242] Failed to initialize EGL
00:00:00.010 [render/egl.c:521] Failed to initialize EGL context
00:00:00.010 [render/gles2/renderer.c:692] Could not initialize EGL
Может кто подскажет в чем проблема?
App error output:
libEGL debug: EGL search path is /usr/lib/egl:/usr/lib/egl
libEGL debug: added /usr/lib/egl/egl_dri2.so to module array
libEGL debug: dlopen(/usr/lib/egl/egl_dri2.so)
libEGL warning: _eglMain not found in /usr/lib/egl/egl_dri2.so (/usr/lib/egl/egl_dri2.so: undefined symbol: _eglMain)
libEGL debug: EGL user error 0x3001 (EGL_NOT_INITIALIZED) in eglInitialize
EGLUT: failed to initialize EGL display
Strace output:
……………
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
brk(0) = 0x2120000
brk(0x2141000) = 0x2141000
geteuid() = 0
getuid() = 0
getegid() = 0
getgid() = 0
geteuid() = 0
getuid() = 0
getegid() = 0
getgid() = 0
access(«/usr/lib/egl/egl_dri2.so», F_OK) = 0
futex(0x7f2cd35e70a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open(«/usr/lib/egl/egl_dri2.so», O_RDONLY) = 3
read(3, «177ELF2113>124025″…, 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=24256, …}) = 0
mmap(NULL, 2119408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f2cd27bd000
mprotect(0x7f2cd27c2000, 2097152, PROT_NONE) = 0
mmap(0x7f2cd29c2000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7f2cd29c2000
close(3) = 0
write(2, «libEGL warning: _eglMain not fou»…, 118) = 118
munmap(0x7f2cd27bd000, 2119408) = 0
write(2, «EGLUT: «, 7) = 7
write(2, «failed to initialize EGL display», 32) = 32
write(2, «n», 1) = 1
exit_group(1) = ?
What I do wrong?
I have application created with QT5
and Visual Studio 2013
. I also use QT WebEngine
in my application.
My application works fine in windows 7 (32 bit) . For some reason i need to run it in windows xp sp3 (32 bit).
When i run it, I get the following error:
The procedure entry point strnlen could not be located in the dynamic link library msvcrt.dll
I press OK
several time and it goes away and my QMainWindow
will pop out, But its totally BLACK and i see the following errors in debugger.
class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(class QFlags<enum QWindowsOpenGLTester::Renderer>): Could not initialize EGL display: error 0x3001
class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(class QFlags<enum QWindowsOpenGLTester::Renderer>): When using ANGLE, check if d3dcompiler_4x.dll is available
The d3dcompiler_47.dll
is in application directory too.
Whats wrong here?
UPDATE 1
I placed 3dcompiler_46.dll in executable’s directory and this is what happened.
I still get The procedure entry point strnlen could not be located in the dynamic link library msvcrt.dll
error but after i press Ok
, I get the following error as well.
The procedure entry point _except_handler4_common could not be located in the dynamic link library msvcrt.dll
The QMainWindow
is still BLACK
and the errors about ANGLE
is the same.
UPDATE 2
I build QT
for Windows XP
with following configuration
configure -release -opensource -opengl desktop -target xp -platform win32-msvc2013 -angle -icu -nomake examples -prefix C:QT-Compile
I replaced QT
dependency and ran my application, I got the following errors:
The application has failed to start because icuin56.dll was not found
The application has failed to start because icuuc56.dll was not found
I tried to find them in QT
directory (C:QT-Compile) and i couldn’t but i had them on main machine that run in Windows Seven
, I placed them next to executable and application run successfully and previous errors are gone, However, The QMainWindow
is still BLACK
and i have the following errors in my debugger in run time.
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
bool __thiscall QOpenGLTextureBlitter::create(void) Could not link shader program:
Whats wrong now ?
UPDATE 3
This is how i configured QT
.
configure -release -opensource -opengl dynamic -target xp -platform win32-msvc2013 -icu -nomake examples -prefix C:QT-Compile
I used windeployqt.exe
and placed required DLLs and … next to executable.
Ran application in windows xp and i keep getting following errors then application crash.
Message Box :
The procedure entry point strnlen could not be located in the dynamic link library msvcrt.dll
QT Debugger :
class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(class QFlags<enum QWindowsOpenGLTester::Renderer>): Could not initialize EGL display: error 0x3001
class QWindowsEGLStaticContext *__cdecl QWindowsEGLStaticContext::create(class QFlags<enum QWindowsOpenGLTester::Renderer>): When using ANGLE, check if d3dcompiler_4x.dll is available
Failed to load opengl32sw.dll (The specified module could not be found.)
class QOpenGLStaticContext *__cdecl QOpenGLStaticContext::create(bool): Failed to load and resolve WGL/OpenGL functions
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Hi, I’m trying to run a benchmarking tool on the Samsung Galaxy S5 to test some optimizations and perhaps start experimenting with the use of ASTC. It seems like the GL driver is failing to create a context without an associated window to render into. As you may know, opening a window on Android is a fairly involved process, so ideally I’d like to avoid it. I’ve attached the code that should be initializing the context and the results below:
EGLint error = EGL_SUCCESS; if (EGL_SUCCESS != (error = eglGetError())) { Debugf("Prior EGL error: %sn", getEGLErrorStr(error)); return NULL; } fDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY); if (fDisplay == EGL_NO_DISPLAY || EGL_SUCCESS != (error = eglGetError())) { Debugf("eglGetDisplay failed -- error: %sn", getEGLErrorStr(error)); return NULL; } EGLint majorVersion; EGLint minorVersion; if (EGL_TRUE != eglInitialize(fDisplay, &majorVersion, &minorVersion)) { if (EGL_SUCCESS != (error = eglGetError())) { Debugf("eglInitialize failed -- error: %sn", getEGLErrorStr(error)); return NULL; } } Debugf("Major: %d, minor: %dn", majorVersion, minorVersion); Debugf("VENDOR: %sn", eglQueryString(fDisplay, EGL_VENDOR)); Debugf("APIS: %sn", eglQueryString(fDisplay, EGL_CLIENT_APIS)); Debugf("VERSION: %sn", eglQueryString(fDisplay, EGL_VERSION)); Debugf("EXTENSIONS %sn", eglQueryString(fDisplay, EGL_EXTENSIONS)); if (!eglBindAPI(EGL_OPENGL_ES_API)) { return NULL; } if (EGL_SUCCESS != (error = eglGetError())) { Debugf("eglBindAPI failed -- error: %sn", getEGLErrorStr(error)); return NULL; } EGLint numConfigs; const EGLint configAttribs[] = { EGL_SURFACE_TYPE, EGL_PBUFFER_BIT, EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT, EGL_RED_SIZE, 8, EGL_GREEN_SIZE, 8, EGL_BLUE_SIZE, 8, EGL_ALPHA_SIZE, EGL_DONT_CARE, EGL_DEPTH_SIZE, EGL_DONT_CARE, EGL_STENCIL_SIZE, EGL_DONT_CARE, EGL_NONE }; EGLConfig surfaceConfig; if (!eglChooseConfig(fDisplay, configAttribs, &surfaceConfig, 1, &numConfigs)) { Debugf("eglChooseConfig failed. EGL Error: 0x%08xn", eglGetError()); return NULL; }
The output:
Major: 1, minor: 4
VENDOR: Android
APIS: OpenGL_ES
VERSION: 1.4 Android META-EGL
EXTENSIONS EGL_KHR_get_all_proc_addresses EGL_ANDROID_presentation_time
eglChooseConfig failed. EGL Error: 0x00003001
I’m hesitant to say that this is a bug in the driver, but I’m not totally sure what I’m doing wrong in my initialization code. Any help would be appreciated . Also, if this isn’t an appropriate forum for a question like this, I’d be glad to direct it to the right place.
Я статически скомпилировал QT со следующими флагами:
configure -recheck-all -strip -prefix "C:Qtqt_d_gl" -platform win32-msvc -static -release -opensource -confirm-license -opengl dynamic -nomake examples -nomake tests
Я ожидаю, что он может поддерживать как OpenGL, так и ANGLE.
Когда я запускаю программу, поставляемую в комплекте с этим QT на Windows 10 (новая без дополнительных установок), я получаю следующие ошибки:
Warning: QWindowsEGLStaticContext::create: Could not initialize EGL display: error 0x3001
Warning: QWindowsEGLStaticContext::create: When using ANGLE, check if d3dcompiler_4x.dll is available
И, в конце концов, я не могу получить ни OpenGl, ни ANGLE (программа, предназначенная для воспроизведения видео, поэтому на некоторых компьютерах я получаю только звук (на большинстве компьютеров (включая несколько win 10) я проверяю это, и все работает нормально, только в определенных Windows 10 это не работает.).
Я включил этот список DLL с EXE:
libEGL.dll
libGLESv2.dll
OpenAL32.dll
ass.dll
libass.dll
opengl32sw.dll
d3dcompiler_47.dll
Хотя все необходимые файлы предположительно на месте (в той же папке, что и мой исполняемый файл), я все равно получаю вышеуказанные ошибки.
Я предполагаю, что если я установлю DirectX
тогда ситуация будет решена, но на данный момент я не хочу ее устанавливать, нет никаких причин, по которым есть необходимость в дополнительных установках, поскольку Windows 10 поставляется с предварительно установленным DirectX 11 и имеется поддержка ANGLE, это не ясно по мне так не получается …
Кто-нибудь сталкивался с этой проблемой раньше и знает решение? Может быть, это известная ошибка или, возможно, я не правильно настроил QT?
Вы думаете, что это ошибка?
0
Решение
Задача ещё не решена.
Другие решения
Других решений пока нет …