Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Flatland Flatland
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Flatland
  • FlatlandFlatland
  • Issues
  • #308

Closed
Open
Created Nov 25, 2019 by thomaslecat@thomaslecat

Complex generator stuck in infinite loop while adding extra connections between existing rails

When using the complex rail generator, some input configs give the generator a hard time to find a solution (that's ok).

The complex rail generator handles this with a limit sanity_max = 9000 that should limit the number of attempts before giving up. sanity_max acts as an upper bound to the variable created_sanity.

Problem: In the second part of the generation, when the generator attempts to add extra connections between rails, the variable created_sanity is never incremented. The while loop condition reated_sanity < sanity_max is never met and the generator can - and sometimes does - loop indefinitely

Edited Nov 25, 2019 by thomaslecat
Assignee
Assign to
Time tracking