ID:2294488
 
BYOND Version:511
Operating System:Windows 7 Pro
Web Browser:Chrome 60.0.3112.113
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
If you set the parent_type of a mob to mob, it will crash or hang the compiler. In the hang case, it doesn't lock the UI but it does run at 25% in the background and you can't close the ide.

Numbered Steps to Reproduce Problem:

Code Snippet (if applicable) to Reproduce Problem:
mob
parent_type = /mob

client
proc
Foo()
// comment this line and the compiler gets stuck in an infinite loop
var cx = eye:bound_x


Expected Results:
Knowing that mob with a parent_type of mob is invalid and it would make sense for it to get stuck in a loop but maybe it can be handled a little better so new users (or old dumb ones) don't have to troubleshoot the issue beyond an error message that says "mob parent_type can't be mob ya dummy."

Actual Results:
Crash or partial hang.

Does the problem occur:
The crash only occurs when you compile with a reference to the client.eye I think. Commenting out the line in Foo() causes the IDE to compile forever or "hang".

Workarounds:
Don't set the parent_type of mob to mob. This happened by accident via a find and replace.