Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failure: min <= max #3683

Closed
DorpsGek opened this issue Mar 11, 2010 · 5 comments
Closed

Assertion failure: min <= max #3683

DorpsGek opened this issue Mar 11, 2010 · 5 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

ezrakilty opened the ticket and wrote:

Got an "assertion failure" at line 153 of src/core/math_func.hpp: min <= max.

I don't think anything particularly strange was going on in the game at that moment.

Attachments

Reported version: 1.0.0-RC1
Operating system: Mac OS X


This issue was imported from FlySpray: https://bugs.openttd.org/task/3683
@DorpsGek
Copy link
Member Author

Rubidium wrote:

What did you do when it crashed? Did you by any chance move/hide/resize the window?

Can you reproduce this crash in any way? The crash log does not give any useful information.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3683#comment7708

@DorpsGek
Copy link
Member Author

Rubidium wrote:

Do you have an earlier autosave?


This comment was imported from FlySpray: https://bugs.openttd.org/task/3683#comment7713

@DorpsGek
Copy link
Member Author

ezrakilty wrote:

It's not to do with resizing the window; I don't think I need to do anything to prompt the crash, in fact.

I can reproduce it by loading the attached savegame (from about ten minutes earlier than the other one). If I just hit fast-forward and wait a couple minutes it will crash.

Here's the stack trace that the OS gave me, which looks more useful than what was in the crash log. (I wonder why OpenTTD's crash handler didn't capture all this?)

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib 0x00007fff856b3fe6 __kill + 10
1 libSystem.B.dylib 0x00007fff85754e32 abort + 83
2 org.openttd.openttd 0x000000010025c24e HandleCrash(int) + 494
3 libSystem.B.dylib 0x00007fff856c5eaa _sigtramp + 26
4 ??? 0x00007fff5fbfc340 0 + 140734799790912
5 org.openttd.openttd 0x00000001000528c0 __static_initialization_and_destruction_0(int, int) + 0
6 org.openttd.openttd 0x00000001002b6803 DrawRoadVehEngine(int, int, int, int, unsigned short, unsigned int) + 291
7 org.openttd.openttd 0x000000010024c085 NewsWindow::DrawWidget(OTTD_Rect const&, int) const + 997
8 org.openttd.openttd 0x0000000100396e82 NWidgetLeaf::Draw(Window const*) + 546
9 org.openttd.openttd 0x000000010039296c NWidgetPIPContainer::Draw(Window const*) + 44
10 org.openttd.openttd 0x000000010039296c NWidgetPIPContainer::Draw(Window const*) + 44
11 org.openttd.openttd 0x0000000100394f79 NWidgetBackground::Draw(Window const*) + 649
12 org.openttd.openttd 0x000000010039296c NWidgetPIPContainer::Draw(Window const*) + 44
13 org.openttd.openttd 0x0000000100394f79 NWidgetBackground::Draw(Window const*) + 649
14 org.openttd.openttd 0x000000010039296c NWidgetPIPContainer::Draw(Window const*) + 44
15 org.openttd.openttd 0x00000001003935b9 Window::DrawWidgets() const + 25
16 org.openttd.openttd 0x000000010039b856 DrawOverlappedWindow(Window*, int, int, int, int) + 438
17 org.openttd.openttd 0x000000010039b91f DrawOverlappedWindowForAll(int, int, int, int) + 159
18 org.openttd.openttd 0x00000001001a8569 RedrawScreenRect(int, int, int, int) + 137
19 org.openttd.openttd 0x00000001001a8b19 DrawDirtyBlocks() + 1161
20 org.openttd.openttd 0x000000010039dc71 UpdateWindows() + 193
21 org.openttd.openttd 0x00000001003a3616 QZ_GameLoop() + 2454
22 org.openttd.openttd 0x00000001003a1979 -[OTTDMain applicationDidFinishLaunching:] + 9
23 com.apple.Foundation 0x00007fff83de485a _nsnote_callback + 167
24 com.apple.CoreFoundation 0x00007fff85f33e3a __CFXNotificationPost + 954
25 com.apple.CoreFoundation 0x00007fff85f203e8 _CFXNotificationPostNotification + 200
26 com.apple.Foundation 0x00007fff83ddb7c4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 101
27 com.apple.AppKit 0x00007fff804be772 -[NSApplication _postDidFinishNotification] + 100
28 com.apple.AppKit 0x00007fff804be6a7 -[NSApplication _sendFinishLaunchingNotification] + 66
29 com.apple.AppKit 0x00007fff80589645 -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 219
30 com.apple.AppKit 0x00007fff805892c1 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 77
31 com.apple.Foundation 0x00007fff83e13156 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 360
32 com.apple.Foundation 0x00007fff83e12f86 _NSAppleEventManagerGenericHandler + 114
33 com.apple.AE 0x00007fff87b34292 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 162
34 com.apple.AE 0x00007fff87b3418b dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 32
35 com.apple.AE 0x00007fff87b34095 aeProcessAppleEvent + 210
36 com.apple.HIToolbox 0x00007fff87e1d879 AEProcessAppleEvent + 48
37 com.apple.AppKit 0x00007fff8048e3d5 _DPSNextEvent + 1191
38 com.apple.AppKit 0x00007fff8048db41 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
39 com.apple.AppKit 0x00007fff80453747 -[NSApplication run] + 395
40 org.openttd.openttd 0x00000001002500d8 ttd_main(int, char**) + 5368
41 org.openttd.openttd 0x000000010025d00a main + 106
42 org.openttd.openttd 0x000000010008c214 start + 52

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/3683#comment7715

@DorpsGek
Copy link
Member Author

Rubidium wrote:

This bug is caused by a NewGRF ("ECS Construction vector beta 5 (04 Apr 2009)" to be precise) replacing the sprite of the road vehicle with something that is definitely not a road vehicle. The assertion (i.e. crash) of OpenTTD will not be fixed as the assertion is valid; such a wide vehicle should not exist.

The best way to fix the problem is removing that ECS constructor vector and load a newer one. You could also disable assertions while configuring, but then you'll end up with a vehicle that in some orientations is a long line.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3683#comment7717

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Bug in NewGRF


This comment was imported from FlySpray: https://bugs.openttd.org/task/3683

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant