Answers.Body: <p>My kids have this exact same problem when a program reaches a certain size.  Parts of the program that previously worked just fine begin to systematically cause the brick to lock up.  We have found, as ridiculous as this sounds, the simple act of adding a variable read immediately before the motor block which seems to cause the brick to lock up will fix the problem.  </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-02T20:28:55.323Z
Answers.LastActivityDate: 2016-05-02T20:28:55.323Z
Answers.UserDisplayName: A Brown
Answers.Body: <p>Did you set the medium motor block at On For Degrees mode? If you did, the motor would attempt to spin and run until it reaches the degrees set in the block. You could replace the block with wait for X seconds.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-05T08:34:28.183Z
Answers.Text: No, it is not because of motor block.
Answers.UserDisplayName: Alexander Zhukov
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-17T13:01:46.703Z
Answers.Text: lol..............................................................................
Answers.UserDisplayName: LKBricks
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2015-11-04T05:54:30.693Z
Answers.LastActivityDate: 2022-02-17T12:56:57.097Z
Answers.LastEditDate: 2022-02-17T12:56:57.097Z
Answers.UserDisplayName: Jingan Tew
Body: <p>EV3 brick sometimes freezes while executing huge programs and do not react on buttons and bluetooth (connect, start/stop program). Only way to continue work is hard reset.
  We discovered that freeze depends on medium motor blocking.
  Is there any way to fix this?</p>
  
  <p>Program:
  <a href="http://puu.sh/iQuFg/678d3add5f.ev3" rel="nofollow">http://puu.sh/iQuFg/678d3add5f.ev3</a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-05-01T11:35:18.283Z
Comments.Text: The link is broken.
Comments.UserDisplayName: mindstormsboi
Tags: <ev3><ev3-g>
Title: EV3 brick freeze during run big program
UserDisplayName: Alexander Zhukov
ThreadText: # EV3 brick freeze during run big program
  
  (Asked by: username_0 on 2015-07-07)
  
  EV3 brick sometimes freezes while executing huge programs and do not react on buttons and bluetooth (connect, start/stop program). Only way to continue work is hard reset.
  We discovered that freeze depends on medium motor blocking.
  Is there any way to fix this?
  
  Program:
  <http://puu.sh/iQuFg/678d3add5f.ev3>
  
  **Tags:** ev3, ev3-g
  
  > **Comments:**
  > **username_1**: The link is broken.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2016-05-02. Score: 2
  
  My kids have this exact same problem when a program reaches a certain size. Parts of the program that previously worked just fine begin to systematically cause the brick to lock up. We have found, as ridiculous as this sounds, the simple act of adding a variable read immediately before the motor block which seems to cause the brick to lock up will fix the problem.
  
  
  ---
  
  ### Answer by username_3 on 2015-11-04. Score: 1
  
  Did you set the medium motor block at On For Degrees mode? If you did, the motor would attempt to spin and run until it reaches the degrees set in the block. You could replace the block with wait for X seconds.
  
  > **Comments:**
  > **username_0**: No, it is not because of motor block.  
  > **username_4**: lol..............................................................................  
  
  ---
  
  