Project

General

Profile

Bug #2130

Segfault during ambient occlusion drawing (Hexen map02)

Added by skyjake over 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Defect
Target version:
-
Start date:
2015-11-21
% Done:

100%

Tags:

Description

While noclipping through Korax's face on map02 (build 1785).

Backtrace:

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000010
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0x10:
--> 
    __TEXT                 000000010b870000-000000010be62000 [ 6088K] r-x/rwx SM=COW  /Users/USER/*/Doomsday.app/Contents/MacOS/Doomsday

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0                                     0x000000010b94574c de::PrivateAutoPtr<de::HEdge::Instance>::operator->() const + 12
1                                     0x000000010b94530c de::HEdge::hasFace() const + 28
2                                     0x000000010b9c719d prepareFlatShadowEdges(de::ShadowEdge*, de::HEdge const**, int, float) + 109
3                                     0x000000010b9c6e4f Rend_DrawFlatRadio(ConvexSubspace const&)::$_0::operator()(Line::Side&) const + 463
4                                     0x000000010b9c6c5d de::LoopResult std::__1::__invoke_void_return_wrapper<de::LoopResult>::__call<Rend_DrawFlatRadio(ConvexSubspace const&)::$_0&, Line::Side&>(Rend_DrawFlatRadio(ConvexSubspace const&)::$_0&&&, Line::Side&&&) + 77
5                                     0x000000010b9c6b4c std::__1::__function::__func<Rend_DrawFlatRadio(ConvexSubspace const&)::$_0, std::__1::allocator<Rend_DrawFlatRadio(ConvexSubspace const&)::$_0>, de::LoopResult (Line::Side&)>::operator()(Line::Side&) + 60
6                                     0x000000010bca4f54 std::__1::function<de::LoopResult (Line::Side&)>::operator()(Line::Side&) const + 148
7                                     0x000000010bca3ccb ConvexSubspace::forAllShadowLines(std::__1::function<de::LoopResult (Line::Side&)>) const + 123
8                                     0x000000010b9c273e Rend_DrawFlatRadio(ConvexSubspace const&) + 766
9                                     0x000000010b9d8ca6 drawCurrentSubspace() + 150
10                                    0x000000010b9d2207 traverseBspTreeAndDrawSubspaces(de::BinaryTree<BspElement*> const*) + 407
11                                    0x000000010b9d2111 traverseBspTreeAndDrawSubspaces(de::BinaryTree<BspElement*> const*) + 161
12                                    0x000000010b9d2111 traverseBspTreeAndDrawSubspaces(de::BinaryTree<BspElement*> const*) + 161
13                                    0x000000010b9d2111 traverseBspTreeAndDrawSubspaces(de::BinaryTree<BspElement*> const*) + 161
14                                    0x000000010b9d2111 traverseBspTreeAndDrawSubspaces(de::BinaryTree<BspElement*> const*) + 161
15                                    0x000000010b9d2111 traverseBspTreeAndDrawSubspaces(de::BinaryTree<BspElement*> const*) + 161
16                                    0x000000010b9d2111 traverseBspTreeAndDrawSubspaces(de::BinaryTree<BspElement*> const*) + 161
17                                    0x000000010b9d2111 traverseBspTreeAndDrawSubspaces(de::BinaryTree<BspElement*> const*) + 161
18                                    0x000000010b9d1f03 Rend_RenderMap(de::Map&) + 595
19                                    0x000000010ba608fd R_RenderPlayerView + 621
20  hexen                             0x000000011641024c G_RendPlayerView + 460
21  hexen                             0x000000011650d5a8 G_DrawViewPort + 264

Associated revisions

Revision 8177c987 (diff)
Added by danij over 8 years ago

Fixed|Renderer|Client: Segfault during ambient occlusion drawing (Hexen map02)

Line sides which share one or more edge with malformed geometry should
not be considered for ambient occlusion.

IssueID #2130

History

#1 Updated by skyjake over 8 years ago

  • Description updated (diff)

#2 Updated by danij over 8 years ago

This looks to be related to / caused by the broken map geometry being misinterpreted as a map hack. I'll investigate...

#3 Updated by danij over 8 years ago

  • Assignee set to danij

#4 Updated by danij over 8 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#5 Updated by skyjake over 8 years ago

  • Status changed from Resolved to Closed
  • Target version set to 49

This does not appear to be applicable to the 1.15 branch, so not cherry-picking.

#6 Updated by skyjake about 7 years ago

  • Target version deleted (49)

Also available in: Atom PDF