Navigation

    CreatiCode Scratch Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • CreatiCode

    Projects are able to "crash"

    Feedback
    2
    5
    378
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tyller_
      Tyller_ Best Forum Helpers last edited by

      Projects are able to “crash”, mainly possible with 2D and 3D physics blocks, when a “crash” happens the project freezes up completely, the stop button is not grayed out but clicking it does nothing neither does clicking the green flag, the editor still works but the preview won’t work and the only fix is refreshing the page, I have seen it happen in different situations but I recreated it simply with https://play.creaticode.com/projects/6511e3017ace4f296fd39457

      Where the debug being on causes the “crash”.

      <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
      </div>

      info-creaticode 1 Reply Last reply Reply Quote 0
      • info-creaticode
        CreatiCode @Tyller_ last edited by

        @jaysen4games-gmail

        Hi, some blocks may not handle all edge cases well yet, and the specific reason depends on what the block is failing to do.

        In your example, the 2D physics block tries to create a circle object to represent the sprite by reading the shape of the costume, and it finds the costume has a width of 0, so it doesn’t know how to proceed in this case.

        We will add a guard to prevent this from causing the project to freeze. But bear in mind that even if the project does not freeze, it will still not be successful in this case, since the sprite’s costume can not be empty if we need to add a physics body to it.

        Thanks for pointing out this issue.

        CreatiCode Support

        Tyller_ 1 Reply Last reply Reply Quote 0
        • Tyller_
          Tyller_ Best Forum Helpers @info-creaticode last edited by

          @info-creaticode thank

          <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
          </div>

          Tyller_ 1 Reply Last reply Reply Quote 0
          • Tyller_
            Tyller_ Best Forum Helpers @Tyller_ last edited by

            @jaysen4games-gmail sorry, I was making sure I didn’t have to refresh, a safeguard would be very useful as when a crash happens I have to refresh which takes a while because I mainly use an iPad, I run into crashes semi frequently and a fix to not need to refresh but still knowing an error occurred via the console (assuming you would add a warning in console because it would let people know why something didn’t run) would make debugging and creating projects a much shorter experience when dealing with crashes

            <div component="post/signature" data-uid="255" class="post-signature">Check out my chat room project so you ppl can not use forums as chat rooms! https://play.creaticode.com/projects/66f2e1dcd1be43d82b886fbd?version=1 <p dir="auto">
            </div>

            info-creaticode 1 Reply Last reply Reply Quote 0
            • info-creaticode
              CreatiCode @Tyller_ last edited by

              @jaysen4games-gmail

              Noted. We will make sure proper warning messages are given when invalid requests are received.

              Thanks for the suggestion.
              CreatiCode

              1 Reply Last reply Reply Quote 0
              • First post
                Last post