WindowGLFW: Failed create window for ./sample_drivenet and works good for ./sample_hello_world

praveenreddy@Quadro:/usr/local/driveworks/bin$ ./sample_hello_world


Welcome to Driveworks SDK
[12-02-2020 15:08:56] Platform: Detected Generic x86 Platform
[12-02-2020 15:08:56] TimeSource: monotonic epoch time offset is 1581535439511815
[12-02-2020 15:08:56] Platform: number of GPU devices detected 1
[12-02-2020 15:08:56] Platform: currently selected GPU device discrete ID 0
[12-02-2020 15:08:56] SDK: Resources mounted from /usr/local/driveworks-2.2/data/
[12-02-2020 15:08:56] TimeSource: monotonic epoch time offset is 1581535439511815
[12-02-2020 15:08:56] Initialize DriveWorks SDK v2.2.3136
[12-02-2020 15:08:56] Release build with GNU 7.4.0 from heads/buildbrain-branch-0-gca7b4b26e65
Context of Driveworks SDK successfully initialized.
Version: 2.2.3136
GPU devices detected: 1
[12-02-2020 15:08:56] Platform: currently selected GPU device discrete ID 0

Device: 0, Quadro GP100
CUDA Driver Version / Runtime Version : 10.2 / 10.2
CUDA Capability Major/Minor version number: 6.0
Total amount of global memory in MBytes:16277.2
Memory Clock rate Khz: 715000
Memory Bus Width bits: 4096
L2 Cache Size: 4194304
Maximum 1D Texture Dimension Size (x): 131072
Maximum 2D Texture Dimension Size (x,y): 131072, 65536
Maximum 3D Texture Dimension Size (x,y,z): 16384, 16384, 16384
Maximum Layered 1D Texture Size, (x): 32768 num: 2048
Maximum Layered 2D Texture Size, (x,y): 32768, 32768 num: 2048
Total amount of constant memory bytes: 65536
Total amount of shared memory per block bytes: 49152
Total number of registers available per block: 65536
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): 1024,1024,64
Max dimension size of a grid size (x,y,z): 2147483647,65535,65535
Maximum memory pitch bytes: 2147483647
Texture alignment bytes: 512
Concurrent copy and kernel execution: Yes, copy engines num: 2
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device PCI Domain ID: 0, Device PCI Bus ID: 158, Device PCI location ID: 0
Compute Mode: Default (multiple host threads can use ::cudaSetDevice() with device simultaneously)
Concurrent kernels: 1
Concurrent memory: 1

[12-02-2020 15:08:56] Releasing Driveworks SDK Context
Happy autonomous driving!
praveenreddy@Quadro:/usr/local/driveworks/bin$ ./sample_drivenet
WindowGLFW: Failed create window
terminate called after throwing an instance of ‘std::exception’
what(): std::exception
Aborted (core dumped)

Hi praveen.reddy,

Please refer to below two topics and see if helps on your case. Thanks!

https://devtalk.nvidia.com/default/topic/1044970/driveworks/windowglfw-failed-create-window-at-driveworks-1-2-/
https://devtalk.nvidia.com/default/topic/1064860/how-to-easily-ensure-that-all-components-are-correctly-installed/

Hi Vick,
Already looked into those topics didn’t helped. Hello_world sample is running fine but non of the other samples are running.

Thanks,

Could you try with setting the “DISPLAY” environment variable’s value correctly? e.g. “export DISPLAY=:0”," export DISPLAY=:1".

(base) praveenreddy@Quadro:/usr/local/driveworks/bin$ export DISPLAY=:1
(base) praveenreddy@Quadro:/usr/local/driveworks/bin$ ./sample_drivenet
WindowGLFW: Failed initialize GLFW
terminate called after throwing an instance of ‘std::exception’
what(): std::exception
Aborted (core dumped)
(base) praveenreddy@Quadro:/usr/local/driveworks/bin$ export DISPLAY=:0
(base) praveenreddy@Quadro:/usr/local/driveworks/bin$ ./sample_drivenet
No protocol specified
WindowGLFW: Failed initialize GLFW
terminate called after throwing an instance of ‘std::exception’
what(): std::exception
Aborted (core dumped)

For Display 1 its regular error but for display 0 I see No protocol specified with addition to previous error

I assume something wrong in _glfwPlatformInit() of /usr/local/driveworks/samples/3rdparty/src/glfw/3.2-screen/src/x11_init.c on your host system. Could you check the source code to see if anything may help or following NVIDIA Documentation Center | NVIDIA Developer to run with our own built binary?

How can I figure out what’s wrong in the x_11 file and
I build it using the that link previously
Now I am unable to rebuild it, if I want to.

What’s your current rebuild issue? Could you search if any related topics in the forum? Once you can rebuild it, you can debug your issue further.

For now, could you run my attached sample_drivenet (where I set error callback printout)? see if any further message on your issue.
sample_drivenet.zip (781 KB)

(base) praveenreddy@Quadro:~/Downloads/sample_drivenet/media/vyu/547a6ea3-f82d-4dee-a80a-704e95da6fcd/Downloads/build/src/drivenet/drivenet$ ./sample_drivenet
GLFW error: GLX: Failed to create context: GLXBadFBConfig (code 65543)
WindowGLFW: Failed create window
terminate called after throwing an instance of ‘std::exception’
what(): std::exception
Aborted (core dumped)

(base) praveenreddy@Quadro:~/Downloads/sample_drivenet/media/vyu/547a6ea3-f82d-4dee-a80a-704e95da6fcd/Downloads/build/src/drivenet/drivenet$ export DISPLAY=:1
(base) praveenreddy@Quadro:~/Downloads/sample_drivenet/media/vyu/547a6ea3-f82d-4dee-a80a-704e95da6fcd/Downloads/build/src/drivenet/drivenet$ ./sample_drivenet
GLFW error: X11: Failed to open display :1 (code 65544)
WindowGLFW: Failed initialize GLFW
terminate called after throwing an instance of ‘std::exception’
what(): std::exception
Aborted (core dumped)

I guess “GLX: Failed to create context: GLXBadFBConfig” from GLFW is the current issue on your host.

Please check “x86 Host System Prerequisites” in NVIDIA Documentation Center | NVIDIA Developer ? Or you may need to search the internet and see how people fix their issue on this.