Closed iamzheng00 closed 1 year ago
Do you have a stack trace? I ran this code in the master branch and it didn't crash. It only spit out a GL error.
Thanks for your reply Glenn! I'll upload a screenshot tomorrow. By the way, I'm using osgearth 3.4 release, and I haven't used the master version yet, and I'll try it tomorrow.
I have run the code many times, and met 3 situations:
Sometimes met the following error :
And sometimes crashed like this: if click ignore:
I have build the master branch and ran my code , got the same result. The osgearth_windowsd.exe crashed as before. @gwaldron
Can you check whether the CMAKE flag "OSGEARTH_ASSUME_SINGLE_GL_CONTEXT" is set? This was set to ON by mistake (fixed in latest master) and should be OFF. (When it's on, multiple windows do not work propertly.)
Thanks Glenn ! I'll check that flag and try again
---Original--- From: @.> Date: Fri, Oct 20, 2023 23:14 PM To: @.>; Cc: @.**@.>; Subject: Re: [gwaldron/osgearth] Crashed when trying to get multiview of theearth (Issue #2321)
Can you check whether the CMAKE flag "OSGEARTH_ASSUME_SINGLE_GL_CONTEXT" is set? This was set to ON by mistake (fixed in latest master) and should be OFF. (When it's on, multiple windows do not work propertly.)
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
I turned off the flag, and it solved the problem! Thanks so much , Glenn!
---Original--- From: @.> Date: Fri, Oct 20, 2023 23:14 PM To: @.>; Cc: @.**@.>; Subject: Re: [gwaldron/osgearth] Crashed when trying to get multiview of theearth (Issue #2321)
Can you check whether the CMAKE flag "OSGEARTH_ASSUME_SINGLE_GL_CONTEXT" is set? This was set to ON by mistake (fixed in latest master) and should be OFF. (When it's on, multiple windows do not work propertly.)
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Great. This flag is now off by default in version 3.5.
I tried using
slave camera
to achieve muiltiview of the earth scene, it worked well in osgEarth3.2, but crashed in osgEarth3.4. And I also triedCompositeViewer
as osgearth example did, but in 3.4 version of osgearth, the osgearth_windows example also got crashed... Is that a little bug in 3.4version or need some additional configuration options?result of
running osgearth_version.exe --caps
: [osgEarth] [Capabilities] Capabilities: [osgEarth] [Capabilities] osgEarth Version: 3.4.0 build 148 [osgEarth] [Capabilities] OSG Version: 3.6.5 [osgEarth] [Capabilities] GDAL Version: 2.4.4 [osgEarth] [Capabilities] GEOS Version: 3.5.2 [osgEarth] [Capabilities] GPU Vendor: NVIDIA Corporation [osgEarth] [Capabilities] GPU Renderer: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 [osgEarth] [Capabilities] GL/Driver Version: 3.3.0 NVIDIA 535.98 (330) [osgEarth] [Capabilities] GL Core Profile: yeshere is my test code of slave cameras: