[osg-users] osgViewer crashes at inserting string into stream inside Renderer::draw() (Win10, osg3.2.0, compiler vc10)

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Wed Mar 18 09:33:53 PDT 2020


Hi Laurens,

thank you so much. I will have a look at your post and try it out. I think 
that will solve this problem :) 

Best regards
Yuan

Am Mittwoch, 18. März 2020 16:47:31 UTC+1 schrieb L. Voerman:
>
> Hi Yuan,
> I created a workaround for this problem on 22 Aug 2017 titled "reduce the 
> need to reallocate the std::ostream buffer behind osg::Notify..." - link 
> <https://github.com/openscenegraph/OpenSceneGraph/pull/314>: 
> https://github.com/openscenegraph/OpenSceneGraph/pull/314
>
> As it's only a few lines, I guess backporting to 3.2 will be rather simple.
>
> Regards, Laurens.
>
> On Wednesday, March 18, 2020 at 4:25:03 PM UTC+1, Yuan Cheng wrote:
>>
>> Hi Robert,
>>
>> thank you for the reply. You guess point me out to some way I could do 
>> further problem analysis. 
>>
>>  1.*could it be thread safety issue with the Windows iostream 
>> implementation?   - *that is a valid point I will check out this.
>>
>> * 2.SingleThreaded to see if it's related to threading -  *I have tried 
>> this, app does not crash as far as I have tested.
>>  
>> * 3.disable the debug console output - *do you mean by disable this 
>> marco DEBUG_MESSAGE?  I noticed a macro "OSG_NOTIFY_DISABLED" in 
>> include/osg/Notify. Shoud I just define this in that file Notify?
>>
>>  Best Regards
>>  Yuan
>>
>>  Am Mittwoch, 18. März 2020 15:28:51 UTC+1 schrieb Robert Osfield:
>>>
>>> Hi Yuan,
>>>
>>> I'm not a Windows users so can't comment on platform specifics, so have 
>>> to take an guess, could it be thread safety issue with the Windows iostream 
>>> implementation?  
>>>
>>> Could you try with the Viewer threading set to SingleThreaded to see if 
>>> it's related to threading.
>>>
>>> Could you also disable the debug console output to see if that addresses 
>>> the problem?
>>>
>>> Robert.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/3e45e823-1a21-4e5e-8f97-c7448b82f33a%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200318/2d45cafa/attachment.html>


More information about the osg-users mailing list