Oasys Primer crashing when using VGL
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cpp, linux
- Domain
- computer-graphics, desktop
Research direction
Start by tracing VirtualGL's interposed glXSwapIntervalEXT path; the report identifies that call as the crash point and includes a trace through glXGetCurrentDrawable. Reproduce with Primer 22.0 under VGL and investigate the swap interval call's handling of the current drawable. Done means Primer starts without the segmentation fault; the issue names no source files or tests, so locating the relevant implementation will take project familiarity.
Written by the indexing model from the issue text.
Description
Hi,
I'm attempting to run Primer 22.0 (https://dyna.oasys-software.com/software/primer/) using VGL, but it crashes immediately after the software starts.
The glXSwapIntervalEX function is implicated in the crash.
$vglrun ./primer22_64.exe
PRIMER (Version 22.0 - 64 bit)
=============================================================
locale is 'en_US.UTF-8'. Using encoding 'UTF-8'
Opened window: :12.0
OPENGL Vendor: NVIDIA Corporation
OPENGL Renderer: NVIDIA A40/PCIe/SSE2
OPENGL Version: 4.6.0 NVIDIA 590.48.01
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
primer22_0_64.exe 0000000006DC2E63 for__signal_handl Unknown Unknown
libc.so.6 00001529C3C3FC30 Unknown Unknown Unknown
primer22_0_64.exe 0000000017524BC8 glXSwapIntervalEX Unknown Unknown
and here's the output when running with +tr:
$vglrun +tr +v ./primer22_64.exe
configs[0]=0x19509160(0xdf) configs[1]=0x1950b8e8(0x152) configs[2]=0x195091b8(0xe0) configs[3]=0x19508ea0(0xd7) configs[4]=0x1950b788(0x14e) configs[5]=0x19508ef8(0xd8) configs[6]=0x195096e0(0xef) configs[7]=0x1950bba8(0x15a) configs[8]=0x19509738(0xf0) configs[9]=0x19509c60(0xff) configs[10]=0x1950be68(0x162) configs[11]=0x19509cb8(0x100) configs[12]=0x19509840(0xf3) configs[13]=0x1950bc58(0x15c) configs[14]=0x19509898(0xf4) configs[15]=0x19509dc0(0x103) configs[16]=0x1950bf18(0x164) configs[17]=0x19509e18(0x104) configs[18]=0x1950a1e0(0x10f) configs[19]=0x1950c128(0x16a) configs[20]=0x1950a238(0x110) configs[21]=0x1950a4a0(0x117) configs[22]=0x1950c288(0x16e) configs[23]=0x1950a4f8(0x118) configs[24]=0x1950a760(0x11f) configs[25]=0x1950c3e8(0x172) configs[26]=0x1950a7b8(0x120) configs[27]=0x1950aa20(0x127) configs[28]=0x1950c548(0x176) configs[29]=0x1950aa78(0x128) configs[30]=0x1950ace0(0x12f) configs[31]=0x1950c6a8(0x17a) configs[32]=0x1950ad38(0x130) configs[33]=0x1950afa0(0x137) configs[34]=0x1950c808(0x17e) configs[35]=0x1950aff8(0x138) configs[36]=0x1950b260(0x13f) configs[37]=0x1950c968(0x182) configs[38]=0x1950b2b8(0x140) configs[39]=0x1950b520(0x147) configs[40]=0x1950cac8(0x186) configs[41]=0x1950b578(0x148) *nelements=42 ) 7.611990 ms
[VGL 0x9f451c40] glXGetFBConfigAttrib (dpy=0x18d91d50(:12.0) config=0x19509160(0xdf) attribute=32790(0x8016) *value=32768(0x8000) ) 0.005007 ms
[VGL 0x9f451c40] glXGetFBConfigAttrib (dpy=0x18d91d50(:12.0) config=0x19509160(0xdf) attribute=32791(0x8017) *value=32768(0x8000) ) 0.004053 ms
[VGL 0x9f451c40] glXGetFBConfigAttrib (dpy=0x18d91d50(:12.0) config=0x19509160(0xdf) attribute=32792(0x8018) *value=1073741824(0x40000000) ) 0.004053 ms
[VGL 0x9f451c40] glXGetVisualFromFBConfig (dpy=0x18d91d50(:12.0) config=0x19509160(0xdf) vis=0x190b3d40(0x21) ) 0.000000 ms
[VGL 0x9f451c40] XDestroyWindow (dpy=0x18595a10(:12.0) win=0x01800376 ) 0.025988 ms
[VGL 0x9f451c40] XCreateWindow (dpy=0x18595a10(:12.0) parent=0x01800368 x=3 y=26 width=2253 height=1185 depth=24 c_class=1 visual=0x18d93750(0x21) win=0x01800c87 ) 0.030041 ms
[VGL 0x9f451c40] glXCreateWindow (dpy=0x18595a10(:12.0) config=0x19509160(0xdf) win=0x01800c87 [VGL] Selecting structure notify events in window 0x01800c87
vw->getGLXDrawable()=0x000c0001 ) 0.488997 ms
[VGL 0x9f451c40] glXCreateNewContext (dpy=0x18595a10(:12.0) config=0x19509160(0xdf) render_type=32788 share_list=0x00000000 direct=1 [VGL] dlopen (filename=NULL flag=1 retval=0x148ba588f520)
[VGL] dlopen (filename=NULL flag=1 retval=0x148ba588f520)
[VGL] dlopen (filename=libdbus-1.so.3 flag=4097 retval=0x195a6a00)
[VGL] dlopen (filename=libdrm.so.2 flag=1 retval=0x195b3cc0)
[VGL] dlopen (filename=libnvidia-allocator.so.1 flag=1 retval=0x195b4310)
ctx=0x195b9938 ) 42.765141 ms
[VGL 0x9f451c40] glXMakeContextCurrent (dpy=0x18595a10(:12.0) draw=0x01800c87 read=0x01800c87 ctx=0x195b9938 config=0x19509160(0xdf) draw=0x000c0001 read=0x000c0001 renderer=NVIDIA A40/PCIe/SSE2 ) 112.036943 ms
[VGL 0x9f451c40] glDrawBuffer (mode=0x00000404 vw->dirty=0 vw->rdirty=0 vw->getGLXDrawable()=0x000c0001 ) 0.025034 ms
[VGL 0x9f451c40] glXUseXFont (font=0x018000ee first=32 count=97 list_base=33 name=-Adobe-Helvetica-Medium-R-Normal--8-80-75-75-P-46-ISO8859-1 ) 0.240803 ms
[VGL 0x9f451c40] glXUseXFont (font=0x018000ef first=32 count=97 list_base=162 name=-Adobe-Helvetica-Medium-R-Normal--10-100-75-75-P-56-ISO8859-1 ) 0.143766 ms
[VGL 0x9f451c40] glXUseXFont (font=0x018000f0 first=32 count=97 list_base=291 name=-Adobe-Helvetica-Medium-R-Normal--12-120-75-75-P-67-ISO8859-1 ) 0.149965 ms
[VGL 0x9f451c40] glXUseXFont (font=0x018000f1 first=32 count=97 list_base=420 name=-Adobe-Helvetica-Medium-R-Normal--14-140-75-75-P-77-ISO8859-1 ) 0.157118 ms
[VGL 0x9f451c40] glXUseXFont (font=0x018000f2 first=32 count=97 list_base=549 name=-Adobe-Helvetica-Medium-R-Normal--18-180-75-75-P-98-ISO8859-1 ) 0.192165 ms
[VGL 0x9f451c40] glXUseXFont (font=0x018000f3 first=32 count=97 list_base=678 name=-Adobe-Helvetica-Medium-R-Normal--24-240-75-75-P-130-ISO8859-1 ) 0.239134 ms
[VGL 0x9f451c40] glXUseXFont (font=0x01800c88 first=32 count=97 list_base=807 name=-adobe-helvetica-medium-r-normal--42-300-100-100-p-223-iso8859-1 ) 0.424862 ms
[VGL 0x9f451c40] glXUseXFont (font=0x01800c89 first=32 count=97 list_base=936 name=-adobe-helvetica-medium-r-normal--50-361-100-100-p-263-iso8859-1 ) 0.481844 ms
[VGL 0x9f451c40] glXUseXFont (font=0x01800c8a first=32 count=97 list_base=1065 name=-adobe-helvetica-medium-r-normal--58-421-100-100-p-312-iso8859-1 ) 0.616074 ms
[VGL 0x9f451c40] glXUseXFont (font=0x01800c8b first=32 count=97 list_base=1194 name=-adobe-helvetica-medium-r-normal--69-501-100-100-p-371-iso8859-1 ) 0.785828 ms
[VGL 0x9f451c40] glXUseXFont (font=0x01800c8c first=32 count=97 list_base=1323 name=-adobe-helvetica-medium-r-normal--83-601-100-100-p-446-iso8859-1 ) 1.011133 ms
[VGL 0x9f451c40] glXUseXFont (font=0x01800c8d first=32 count=97 list_base=1452 name=-adobe-helvetica-medium-r-normal--97-701-100-100-p-520-iso8859-1 ) 1.316786 ms
[VGL 0x9f451c40] glXUseXFont (font=0x01800c8e first=32 count=97 list_base=1581 name=-adobe-helvetica-medium-r-normal--111-801-100-100-p-594-iso8859-1 ) 1.667023 ms
[VGL 0x9f451c40] glXUseXFont (font=0x01800c8f first=32 count=97 list_base=1710 name=-adobe-helvetica-medium-r-normal--125-901-100-100-p-668-iso8859-1 ) 2.089024 ms
[VGL 0x9f451c40] glXUseXFont (font=0x01800c90 first=32 count=97 list_base=1839 name=-adobe-helvetica-medium-r-normal--139-1001-100-100-p-743-iso8859-1 ) 2.393007 ms
[VGL 0x9f451c40] XMoveResizeWindow (dpy=0x18595a10(:12.0) win=0x01800c87 x=3 y=26 width=2253 height=1185 ) 0.024796 ms
[VGL 0x9f451c40] glViewport (x=0 y=0 width=2253 height=1185 ) 0.051975 ms
[VGL 0x9f451c40] glDrawBuffer (mode=0x00000408 vw->dirty=0 vw->rdirty=0 vw->getGLXDrawable()=0x000c0001 ) 0.010967 ms
[VGL 0x9f451c40] glDrawBuffer (mode=0x00000404 vw->dirty=0 vw->rdirty=0 vw->getGLXDrawable()=0x000c0001 ) 0.007153 ms
[VGL 0x9f451c40] glXCreatePbuffer (dpy=0x18595a10(:12.0) config=0x19509160(0xdf) attrib_list=[0x8041=0x08cd 0x8040=0x04a1 ] pb=0x000c0003 ) 0.212908 ms
[VGL 0x9f451c40] glViewport (x=0 y=0 width=2253 height=1185 ) 0.049114 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glGenBuffers [passed through]) 0.007868 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glBindBuffer [passed through]) 0.005960 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glMapBuffer [passed through]) 0.005960 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glUnmapBuffer [passed through]) 0.005960 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glBufferData [passed through]) 0.006199 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glBufferSubData [passed through]) 0.005007 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glDeleteBuffers [passed through]) 0.005960 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glCreateProgram [passed through]) 0.006199 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glCreateShader [passed through]) 0.005960 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glDeleteProgram [passed through]) 0.005960 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glDeleteShader [passed through]) 0.006199 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glShaderSource [passed through]) 0.006914 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glCompileShader [passed through]) 0.007153 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glLinkProgram [passed through]) 0.005960 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glAttachShader [passed through]) 0.005960 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glDetachShader [passed through]) 0.006199 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glUseProgram [passed through]) 0.005960 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glGetShaderInfoLog [passed through]) 0.006199 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glGetShaderiv [passed through]) 0.005960 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glGetProgramInfoLog [passed through]) 0.005960 ms
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glGetProgramiv [passed through]) 0.005960 ms
OPENGL Vendor: NVIDIA Corporation
OPENGL Renderer: NVIDIA A40/PCIe/SSE2
OPENGL Version: 4.6.0 NVIDIA 590.48.01
[VGL 0x9f451c40] glXGetProcAddressARB ((char *)procName=glXSwapIntervalEXT [INTERPOSED]) 0.004053 ms
[VGL 0x9f451c40] glXGetCurrentDrawable (draw=0x01800c87 ) 0.010014 ms
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
primer22_0_64.exe 0000000006DC2E63 for__signal_handl Unknown Unknown
libc.so.6 0000148B9F63FC30 Unknown Unknown Unknown
primer22_0_64.exe 0000000017524BC8 glXSwapIntervalEX Unknown Unknown
The output was voluminous so I only included the last part.
It crashes when I disable vsync in Primer too. Is there anything else I can try?
- Dominant language
- C++
- Stars
- 830
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from VirtualGL/virtualgl
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 5/5 Over a week Newbie friendliness 18/100
All issues in VirtualGL/virtualgl
Similar issues
-
TransformInteract: a circle drag through the centre sets Scale to its minimum, which can't grow backOpendifficulty:easy prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NatronGitHub/openfx-supportext#311 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CachyOS/packageinstaller#211 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
OpenEmu-Silicon/OpenEmu-Silicon#920 · 1 comment ·
Maintainers usually reply within 1 day
-
Good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
documentation project: clr project: hip
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ROCm/rocm-systems#17194 ·
Maintainers usually reply within 2 days