Menu

#2601 Crash with osgText

2024.1
Accepted
Gijs
Low
2024-12-03
2021-06-16
legoboyvdlp
No

This segfault occured when I had this:

<type type="string">number-value</type>
<format type="string">%s</format>
<property>property that I had set using sprintf</property>

And was solved by switching it from number-value to text-value.

It probably shouldn't segfault but at least quit with an error message. Or even fall back to text-value with a warning!

ucrtbase!strnlen+0x71:
00007ffd`e1145201 c5f57409        vpcmpeqb ymm1,ymm1,ymmword ptr [rcx] ds:40a1f800`00000000=??
0:000> k
 # Child-SP          RetAddr           Call Site
00 0000009d`2acfdc48 00007ffd`e113647b ucrtbase!strnlen+0x71
01 0000009d`2acfdc50 00007ffd`e11346ec ucrtbase!Gettnames+0x5b
02 0000009d`2acfdc80 00007ffd`e11343cf ucrtbase!_stdio_common_vsprintf_s+0xf6c
03 0000009d`2acfdd00 00007ffd`e1134099 ucrtbase!_stdio_common_vsprintf_s+0xc4f
*** WARNING: Unable to verify checksum for C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\install\bin\fgfs.exe
04 0000009d`2acfdd70 00007ff6`ad6ab079 ucrtbase!_stdio_common_vsprintf_s+0x919
05 (Inline Function) --------`-------- fgfs!vsnprintf+0x29 [C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\stdio.h @ 1440] 
06 0000009d`2acfe2a0 00007ff6`ae484e45 fgfs!snprintf+0x49 [C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt\stdio.h @ 1953] 
*** WARNING: Unable to verify checksum for C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\install\bin\osg162-osg.dll
07 0000009d`2acfe300 00007ffd`94a96938 fgfs!SGText::UpdateCallback::operator()+0xa5 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\simgear\simgear\scene\model\SGText.cxx @ 79] 
08 0000009d`2acfe490 00007ff6`ae2a67f9 osg162_osg!osg::NodeCallback::run+0x68 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Callback.cpp @ 75] 
09 0000009d`2acfe4c0 00007ffd`94b0306f fgfs!simgear::EffectGeode::accept+0x39 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\simgear\simgear\scene\material\EffectGeode.hxx @ 65] 
*** WARNING: Unable to verify checksum for C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\install\bin\osg162-osgUtil.dll
0a 0000009d`2acfe4f0 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
0b 0000009d`2acfe520 00007ff6`added3b8 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
0c 0000009d`2acfe550 00007ffd`94a416d8 fgfs!SGUpdateVisitor::apply+0xc8 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\install\include\simgear\scene\util\SGUpdateVisitor.hxx @ 163] 
0d 0000009d`2acfe610 00007ffd`94b0306f osg162_osg!osg::MatrixTransform::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\MatrixTransform @ 37] 
0e 0000009d`2acfe640 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
0f 0000009d`2acfe670 00007ffd`94a41658 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
10 0000009d`2acfe6a0 00007ffd`94b0306f osg162_osg!osg::Group::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\Group @ 38] 
11 0000009d`2acfe6d0 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
12 0000009d`2acfe700 00007ffd`94a41658 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
13 0000009d`2acfe730 00007ff6`ae482867 osg162_osg!osg::Group::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\Group @ 38] 
14 0000009d`2acfe760 00007ffd`94ede854 fgfs!simgear::ConditionNode::traverse+0x67 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\simgear\simgear\scene\model\ConditionNode.cxx @ 51] 
15 0000009d`2acfe790 00007ff6`ae482659 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
16 0000009d`2acfe7c0 00007ffd`94b0306f fgfs!simgear::ConditionNode::accept+0x39 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\simgear\simgear\scene\model\ConditionNode.hxx @ 36] 
17 0000009d`2acfe7f0 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
18 0000009d`2acfe820 00007ffd`94a41658 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
19 0000009d`2acfe850 00007ff6`ae482867 osg162_osg!osg::Group::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\Group @ 38] 
1a 0000009d`2acfe880 00007ffd`94ede854 fgfs!simgear::ConditionNode::traverse+0x67 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\simgear\simgear\scene\model\ConditionNode.cxx @ 51] 
1b 0000009d`2acfe8b0 00007ff6`ae482659 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
1c 0000009d`2acfe8e0 00007ffd`94b0306f fgfs!simgear::ConditionNode::accept+0x39 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\simgear\simgear\scene\model\ConditionNode.hxx @ 36] 
1d 0000009d`2acfe910 00007ffd`94a96e27 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
1e (Inline Function) --------`-------- osg162_osg!osg::NodeVisitor::traverse+0x3c [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\NodeVisitor @ 277] 
1f 0000009d`2acfe940 00007ffd`94a96938 osg162_osg!osg::Callback::traverse+0x97 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Callback.cpp @ 34] 
20 0000009d`2acfe970 00007ff6`added3b8 osg162_osg!osg::NodeCallback::run+0x68 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Callback.cpp @ 75] 
21 0000009d`2acfe9a0 00007ff6`ae424399 fgfs!SGUpdateVisitor::apply+0xc8 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\install\include\simgear\scene\util\SGUpdateVisitor.hxx @ 163] 
22 0000009d`2acfea60 00007ffd`94b0306f fgfs!SGTranslateTransform::accept+0x39 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\simgear\simgear\scene\model\SGTranslateTransform.hxx @ 34] 
23 0000009d`2acfea90 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
24 0000009d`2acfeac0 00007ff6`added3b8 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
25 0000009d`2acfeaf0 00007ffd`94a416d8 fgfs!SGUpdateVisitor::apply+0xc8 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\install\include\simgear\scene\util\SGUpdateVisitor.hxx @ 163] 
26 0000009d`2acfebb0 00007ffd`94b0306f osg162_osg!osg::MatrixTransform::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\MatrixTransform @ 37] 
27 0000009d`2acfebe0 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
28 0000009d`2acfec10 00007ffd`94a41658 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
29 0000009d`2acfec40 00007ffd`94b0306f osg162_osg!osg::Group::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\Group @ 38] 
2a 0000009d`2acfec70 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
2b 0000009d`2acfeca0 00007ff6`added3b8 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
2c 0000009d`2acfecd0 00007ffd`94a416d8 fgfs!SGUpdateVisitor::apply+0xc8 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\install\include\simgear\scene\util\SGUpdateVisitor.hxx @ 163] 
2d 0000009d`2acfed90 00007ffd`94b0306f osg162_osg!osg::MatrixTransform::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\MatrixTransform @ 37] 
2e 0000009d`2acfedc0 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
2f 0000009d`2acfedf0 00007ff6`added3b8 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
30 0000009d`2acfee20 00007ffd`94a416d8 fgfs!SGUpdateVisitor::apply+0xc8 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\install\include\simgear\scene\util\SGUpdateVisitor.hxx @ 163] 
31 0000009d`2acfeee0 00007ffd`94b0306f osg162_osg!osg::MatrixTransform::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\MatrixTransform @ 37] 
32 0000009d`2acfef10 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
33 0000009d`2acfef40 00007ff6`added3b8 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
34 0000009d`2acfef70 00007ffd`94a41758 fgfs!SGUpdateVisitor::apply+0xc8 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\install\include\simgear\scene\util\SGUpdateVisitor.hxx @ 163] 
35 0000009d`2acff030 00007ffd`94bf0962 osg162_osg!osg::PositionAttitudeTransform::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\PositionAttitudeTransform @ 41] 
36 0000009d`2acff060 00007ffd`94ede854 osg162_osg!osg::Switch::traverse+0x72 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Switch.cpp @ 38] 
37 0000009d`2acff090 00007ffd`94aa73a8 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
38 0000009d`2acff0c0 00007ffd`94b0306f osg162_osg!osg::Switch::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\Switch @ 40] 
39 0000009d`2acff0f0 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
3a 0000009d`2acff120 00007ffd`94a41658 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
3b 0000009d`2acff150 00007ffd`94bf0962 osg162_osg!osg::Group::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\Group @ 38] 
3c 0000009d`2acff180 00007ffd`94ede854 osg162_osg!osg::Switch::traverse+0x72 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Switch.cpp @ 38] 
3d 0000009d`2acff1b0 00007ffd`94aa73a8 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
3e 0000009d`2acff1e0 00007ffd`94b0306f osg162_osg!osg::Switch::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\Switch @ 40] 
3f 0000009d`2acff210 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
40 0000009d`2acff240 00007ffd`94a41658 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
41 0000009d`2acff270 00007ffd`94bf0962 osg162_osg!osg::Group::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\Group @ 38] 
42 0000009d`2acff2a0 00007ffd`94a96e27 osg162_osg!osg::Switch::traverse+0x72 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Switch.cpp @ 38] 
43 (Inline Function) --------`-------- osg162_osg!osg::NodeVisitor::traverse+0x3c [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\NodeVisitor @ 277] 
44 0000009d`2acff2d0 00007ff6`addec468 osg162_osg!osg::Callback::traverse+0x97 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Callback.cpp @ 34] 
45 0000009d`2acff300 00007ffd`94a96938 fgfs!FGScenerySwitchCallback::operator()+0x68 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\flightgear\src\Viewer\renderer.cxx @ 338] 
46 0000009d`2acff330 00007ffd`94aa73a8 osg162_osg!osg::NodeCallback::run+0x68 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Callback.cpp @ 75] 
47 0000009d`2acff360 00007ffd`94b0306f osg162_osg!osg::Switch::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\Switch @ 40] 
48 0000009d`2acff390 00007ffd`94ede854 osg162_osg!osg::Group::traverse+0x3f [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osg\Group.cpp @ 61] 
49 0000009d`2acff3c0 00007ffd`94a41658 osg162_osgUtil!osgUtil::UpdateVisitor::handle_callbacks_and_traverse+0xb4 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osgUtil\UpdateVisitor @ 112] 
*** WARNING: Unable to verify checksum for C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\install\bin\osg162-osgViewer.dll
4a 0000009d`2acff3f0 00007ffd`a05dc95b osg162_osg!osg::Group::accept+0x38 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\include\osg\Group @ 38] 
4b 0000009d`2acff420 00007ffd`a0609c0a osg162_osgViewer!osgViewer::Scene::updateSceneGraph+0x8b [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osgViewer\Scene.cpp @ 151] 
4c 0000009d`2acff450 00007ffd`a060c4b7 osg162_osgViewer!osgViewer::Viewer::updateTraversal+0x10a [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osgViewer\Viewer.cpp @ 1155] 
4d 0000009d`2acff4f0 00007ff6`adddb3a8 osg162_osgViewer!osgViewer::ViewerBase::frame+0x67 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\osg\src\osgViewer\ViewerBase.cpp @ 748] 
4e 0000009d`2acff530 00007ff6`ade729e2 fgfs!fgOSMainLoop+0x1c8 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\flightgear\src\Viewer\fg_os_osgviewer.cxx @ 358] 
4f 0000009d`2acff5e0 00007ff6`ad685cf3 fgfs!fgMainInit+0x16e2 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\flightgear\src\Main\main.cxx @ 805] 
50 0000009d`2acff840 00007ff6`ad685a1d fgfs!main+0x1d3 [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\flightgear\src\Main\bootstrap.cxx @ 330] 
51 0000009d`2acff910 00007ff6`ae6144d6 fgfs!WinMain+0x17d [C:\Users\redpa\Documents\FlightGear\fg-from-scratch\FlightGearBuild\flightgear\src\Main\bootstrap.cxx @ 148] 
52 (Inline Function) --------`-------- fgfs!invoke_main+0x21 [D:\agent\_work\9\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 102] 
53 0000009d`2acff9b0 00007ffd`e2a27c24 fgfs!__scrt_common_main_seh+0x106 [D:\agent\_work\9\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl @ 288] 
54 0000009d`2acff9f0 00007ffd`e394d721 KERNEL32!BaseThreadInitThunk+0x14
55 0000009d`2acffa20 00000000`00000000 ntdll!RtlUserThreadStart+0x21

Discussion

  • Gijs

    Gijs - 2024-10-24
    • status: New --> Accepted
    • Milestone: 2020.3 --> 2020.4
     
  • Gijs

    Gijs - 2024-10-24

    Just a quick note that I can reproduce this with current next.

     
  • ranguli

    ranguli - 2024-11-03
    • Milestone: 2020.4 --> 2024.1
     
  • xDraconian

    xDraconian - 2024-11-24
    • assigned_to: xDraconian
     
  • xDraconian

    xDraconian - 2024-12-03
    • assigned_to: xDraconian --> Gijs
     
  • xDraconian

    xDraconian - 2024-12-03

    @gijsrooy, I'm unable to reproduce this on release/2024.1. Can you retest and confirm this is resolved?

     

Log in to post a comment.

MongoDB Logo MongoDB