ToonTalk / behaviour-composer

A web-based tool for composing NetLogo micro-behaviours
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Cycle in micro-behaviour to macro-behaviour causes infinite recursion #939

Open ToonTalk opened 9 years ago

ToonTalk commented 9 years ago
From the logs of version 647.

Nothing obvious in
http://m.modelling4all.org/m/index.html?share=XTMFTKz8cMHQqFomIqug5f&user=7MeEuuYhe8DhBut8G8KK4_&MforAllModel=1

except maybe Contact acquaintances added, undone, added, undone, then added.

at uk.ac.lkl.server.MicroBehaviour.copy(MicroBehaviour.java:299)
    at uk.ac.lkl.server.MacroBehaviour.copy(MacroBehaviour.java:51)
    at uk.ac.lkl.server.MicroBehaviour.copyMacroBehaviours(MicroBehaviour.java:323)
    at uk.ac.lkl.server.MicroBehaviour.copy(MicroBehaviour.java:309)
    at uk.ac.lkl.server.MacroBehaviour.copy(MacroBehaviour.java:51)
    at uk.ac.lkl.server.MicroBehaviour.copyMacroBehaviours(MicroBehaviour.java:323)
    at uk.ac.lkl.server.MicroBehaviour.copy(MicroBehaviour.java:309)
    at uk.ac.lkl.server.MacroBehaviour.copy(MacroBehaviour.java:51)
    at uk.ac.lkl.server.MicroBehaviour.copyMacroBehaviours(MicroBehaviour.java:323)
    at uk.ac.lkl.server.MicroBehaviour.copy(MicroBehaviour.java:309)
    at uk.ac.lkl.server.MacroBehaviour.copy(MacroBehaviour.java:51)

Original issue reported on code.google.com by ToonTalk on 2014-02-22 08:14:14

ToonTalk commented 9 years ago
An earlier log entry has this loop for the same user:

at uk.ac.lkl.client.composer.MicroBehaviourSharedState.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourSharedState.java:374)
    at uk.ac.lkl.client.composer.MicroBehaviourView.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourView.java:1179)
    at uk.ac.lkl.client.composer.MicroBehaviourSharedState.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourSharedState.java:374)
    at uk.ac.lkl.client.composer.MicroBehaviourView.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourView.java:1179)
    at uk.ac.lkl.client.composer.MicroBehaviourSharedState.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourSharedState.java:374)
    at uk.ac.lkl.client.composer.MicroBehaviourView.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourView.java:1179)
    at uk.ac.lkl.client.composer.MicroBehaviourSharedState.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourSharedState.java:374)
    at uk.ac.lkl.client.composer.MicroBehaviourView.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourView.java:1179)
    at uk.ac.lkl.client.composer.MicroBehaviourSharedState.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourSharedState.java:374)
    at uk.ac.lkl.client.composer.MicroBehaviourView.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourView.java:1179)
    at uk.ac.lkl.client.composer.MicroBehaviourSharedState.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourSharedState.java:374)
    at uk.ac.lkl.client.composer.MicroBehaviourView.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourView.java:1179)
    at uk.ac.lkl.client.composer.MicroBehaviourSharedState.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourSharedState.java:374)
    at uk.ac.lkl.client.composer.MicroBehaviourView.$setCopyMicroBehaviourWhenExportingURL(MicroBehaviourView.java:1179)

Original issue reported on code.google.com by ToonTalk on 2014-02-22 08:16:45