EXERCISE stuck Too many click for a button: BATTLE_PREPARATION; "19: Invalid Repeat Operation" from Game; stuck after restarting 2 times

Author: xlgamer2Created Sep 27, 2026Updated Sep 28, 2026
Labelsbug / 缺陷

Before you asking

  • I have searched the existing issues
  • I spend at least 5 minutes for thinking and preparing
  • I checked Frequently Asked Questions (FAQ) in Wiki page
  • I am using the latest version of Alas

Describe the bug

Alas would stuck when game throws error "19: Invalid Repeat Operation" in exercise. Alas will get Too many click for a button: BATTLE_PREPARATION error and crash instead of restart . Maybe it is my emulator's problem (LDPlayer9).

Alas did restart 2 times to try to see if the error goes away - it did not go away

Had 166 instances of this error since 2026-02-16. Roughly calculating, this is about 50 stuck (3 error log per stuck) in 220 days, so once every 4.4 days.

ImageImage

log.txt

To Reproduce

  1. Setup exercise like this in LD Player
Image
  1. expect this error happens sometimes when starting exercise.

Expected behavior

Restart one more time or more? Or restart emulator? Or wait a few more minute before restart?

Hours later when I can handle it, I will just close the game and re-run Alas, and everything will work.

Relevant log output

Log from the first exercise attempt till last and stuck:

═══════════════════════════════════════════════════════════════════════════════════
                                     EXERCISE                                      
═══════════════════════════════════════════════════════════════════════════════════
INFO     01:02:30.122 │ <<< UI ENSURE >>>                                          
INFO     01:02:30.124 │ UI get current page                                        
INFO     01:02:30.157 │ [UI] page_commission                                       
INFO     01:02:30.158 │ Goto page_exercise                                         
INFO     01:02:30.161 │ <<< UI GOTO PAGE_EXERCISE >>>                              
INFO     01:02:30.176 │ Page switch: page_commission -> page_main                  
INFO     01:02:30.178 │ Click (1229,   44) @ GOTO_MAIN                             
INFO     01:02:31.332 │ Page switch: page_main_white -> page_campaign_menu         
INFO     01:02:31.334 │ Click (1186,  477) @ MAIN_GOTO_CAMPAIGN_WHITE              
INFO     01:02:32.135 │ Page switch: page_campaign_menu -> page_exercise           
INFO     01:02:32.137 │ Click (1050,  615) @ CAMPAIGN_MENU_GOTO_EXERCISE           
INFO     01:02:32.935 │ Page arrive: page_exercise                                 
INFO     01:02:32.945 │ Bind task ['General', 'Alas', 'Exercise']                  
INFO     01:02:32.947 │ Save config ./config\alas.json,                            
         Exercise.Exercise.OpponentRefreshValue=0,                                 
         Exercise.Exercise.OpponentRefreshRecord=datetime.datetime(2026, 9, 27, 1, 
         2, 32)                                                                    
INFO     01:02:32.956 │ [Change_opponent_count] 0                                  
INFO     01:02:32.958 │ [Exercise_ExerciseStrategy] aggressive                     
INFO     01:02:32.980 │ Loading OCR model: ./bin/cnocr_models/cnocr                
INFO     01:02:33.078 │ [OCR_PERIOD_REMAIN 0.118s] 1d23:57:29                      
INFO     01:02:33.080 │ Exercise period remain: 1 day, 23:57:29                    
INFO     01:02:33.104 │ [OCR_EXERCISE_REMAIN 0.021s] 5                             
════════════════════════════════ EXERCISE REMAIN 5 ════════════════════════════════
INFO     01:02:33.108 │ EXERCISE REMAIN 5                                          
─────────────────────────────────── OPPONENT 0 ────────────────────────────────────
INFO     01:02:33.110 │ OPPONENT 0                                                 
INFO     01:02:33.112 │ <<< OPPONENT: 0 >>>                                        
INFO     01:02:33.115 │ Click ( 224,  273) @ OPPONENT_0_0                          
INFO     01:02:34.153 │ Click ( 635,  570) @ EXERCISE_PREPARATION                  
INFO     01:02:35.162 │ <<< TRY: 1 >>>                                             
INFO     01:02:35.165 │ Combat preparation                                         
INFO     01:02:35.168 │ Click (1102,  657) @ BATTLE_PREPARATION                    
INFO     01:02:37.185 │ Click (1160,  655) @ BATTLE_PREPARATION                    
INFO     01:02:39.201 │ Click (1134,  635) @ BATTLE_PREPARATION                    
INFO     01:02:41.214 │ Click (1116,  645) @ BATTLE_PREPARATION                    
INFO     01:02:43.227 │ Click (1148,  628) @ BATTLE_PREPARATION                    
INFO     01:02:45.236 │ Click (1159,  640) @ BATTLE_PREPARATION                    
INFO     01:02:47.250 │ Click (1089,  639) @ BATTLE_PREPARATION                    
INFO     01:02:49.262 │ Click (1195,  648) @ BATTLE_PREPARATION                    
INFO     01:02:51.273 │ Click (1159,  629) @ BATTLE_PREPARATION                    
INFO     01:02:53.285 │ Click (1101,  649) @ BATTLE_PREPARATION                    
INFO     01:02:55.297 │ Click (1177,  638) @ BATTLE_PREPARATION                    
INFO     01:02:57.323 │ Function calls:                                            
                   <string>   L1 <module>                                          
                   spawn.py L105 spawn_main()                                      
                   spawn.py L118 _main()                                           
                 process.py L297 _bootstrap()                                      
                 process.py  L99 run()                                             
         process_manager.py L166 run_process()                                     
                    alas.py L587 loop()                                            
                    alas.py  L69 run()                                             
                    alas.py L258 exercise()                                        
                exercise.py L229 run()                                             
                exercise.py L115 _exercise_once()                                  
                  combat.py L186 _combat()                                         
                  combat.py  L26 _combat_preparation()                             
                 control.py  L37 click()                                           
                  device.py L269 handle_control_check()                            
                  device.py L305 click_record_check()                              
                  device.py  L43 show_function_call()                              
WARNING  01:02:57.328 │ Too many click for a button: BATTLE_PREPARATION            
WARNING  01:02:57.330 │ History click: ['BATTLE_PREPARATION', 'BATTLE_PREPARATION',
         'BATTLE_PREPARATION', 'BATTLE_PREPARATION', 'BATTLE_PREPARATION',         
         'BATTLE_PREPARATION', 'BATTLE_PREPARATION', 'BATTLE_PREPARATION',         
         'BATTLE_PREPARATION', 'BATTLE_PREPARATION', 'BATTLE_PREPARATION',         
         'BATTLE_PREPARATION']                                                     
ERROR    01:02:57.332 │ GameTooManyClickError: Too many click for a button:        
         BATTLE_PREPARATION                                                        
WARNING  01:02:57.339 │ Saving error: ./log/error/1790492577339                    
WARNING  01:02:57.781 │ Game stuck, com.YoStarEN.AzurLane will be restarted in 10  
         seconds                                                                   
WARNING  01:02:57.783 │ If you are playing by hand, please stop Alas               
INFO     01:02:57.785 │ Task call: Restart                                         
INFO     01:02:57.794 │ Bind task ['General', 'Alas', 'Exercise']                  
INFO     01:02:57.796 │ Save config ./config\alas.json,                            
         Restart.Scheduler.NextRun=datetime.datetime(2026, 9, 27, 1, 2, 57),       
         Restart.Scheduler.Enable=True                                             
INFO     01:03:07.805 │ Scheduler: End task `Exercise`                             
INFO     01:03:08.549 │ Server "Little Enterprise" is available.                   
INFO     01:03:08.551 │ [Server] en                                                
INFO     01:03:08.562 │ Bind task ['General', 'Alas']                              
INFO     01:03:08.567 │ Pending tasks: ['Restart', 'Exercise', 'Meowfficer',       
         'Guild', 'Gacha', 'Reward', 'ShopFrequent', 'ShopOnce', 'Freebies',       
         'PrivateQuarters', 'Minigame', 'OpsiAshBeacon', 'OpsiDaily', 'Daily',     
         'Hard', 'OpsiAshAssist', 'EventSp', 'EventA', 'EventB', 'Event',          
         'OpsiHazard1Leveling']                                                    
INFO     01:03:08.570 │ [Task] Restart (Enable, 2026-09-27 01:02:57)               
INFO     01:03:08.571 │ Bind task ['General', 'Alas', 'Restart']                   
INFO     01:03:08.592 │ Scheduler: Start task `Restart`                            
═══════════════════════════════════════════════════════════════════════════════════
                                      RESTART                                      
═══════════════════════════════════════════════════════════════════════════════════
INFO     01:03:08.601 │ <<< APP RESTART >>>                                        
INFO     01:03:08.603 │ App stop: com.YoStarEN.AzurLane                            
INFO     01:03:08.721 │ App start: com.YoStarEN.AzurLane                           
INFO     01:03:08.888 │ handle_app_login                                           
INFO     01:03:08.890 │ Screenshot interval set to 1.0s                            
INFO     01:03:08.892 │ <<< APP LOGIN >>>                                          
INFO     01:03:08.958 │ [Device Orientation] 0 (Normal)                            
INFO     01:03:09.683 │ Click (1246,   33) @ GOTO_MAIN                             
INFO     01:03:14.669 │ [Device Orientation] 0 (Normal)                            
INFO     01:03:20.686 │ [Device Orientation] 0 (Normal)                            
INFO     01:03:26.675 │ [Device Orientation] 0 (Normal)                            
INFO     01:03:32.672 │ [Device Orientation] 0 (Normal)                            
INFO     01:03:38.675 │ [Device Orientation] 0 (Normal)                            
INFO     01:03:44.691 │ [Device Orientation] 0 (Normal)                            
INFO     01:03:50.710 │ [Device Orientation] 0 (Normal)                            
INFO     01:03:52.647 │ Click (1129,  610) @ LOGIN_CHECK                           
INFO     01:03:52.776 │ Login success                                              
INFO     01:03:57.653 │ Click (1147,  622) @ LOGIN_CHECK                           
INFO     01:04:02.656 │ Click (1143,  625) @ LOGIN_CHECK                           
INFO     01:04:10.666 │ Login to main confirm                                      
INFO     01:04:10.668 │ Screenshot interval set to 0.2s                            
INFO     01:04:10.669 │ Delay task `Restart` to 2026-09-28 01:00:00                
         (server_update='00:00')                                                   
INFO     01:04:10.677 │ Bind task ['General', 'Alas', 'Restart']                   
INFO     01:04:10.680 │ Save config ./config\alas.json,                            
         Restart.Scheduler.NextRun=datetime.datetime(2026, 9, 28, 1, 0)            
INFO     01:04:10.690 │ Scheduler: End task `Restart`                              
INFO     01:04:10.693 │ [Server] en                                                
INFO     01:04:10.708 │ Bind task ['General', 'Alas']                              
INFO     01:04:10.713 │ Pending tasks: ['Exercise', 'Meowfficer', 'Guild', 'Gacha',
         'Reward', 'ShopFrequent', 'ShopOnce', 'Freebies', 'PrivateQuarters',      
         'Minigame', 'OpsiAshBeacon', 'OpsiDaily', 'Daily', 'Hard',                
         'OpsiAshAssist', 'EventSp', 'EventA', 'EventB', 'Event',                  
         'OpsiHazard1Leveling']                                                    
INFO     01:04:10.715 │ [Task] Exercise (Enable, 2026-09-27 01:00:00)              
INFO     01:04:10.717 │ Bind task ['General', 'Alas', 'Exercise']                  
INFO     01:04:10.734 │ Scheduler: Start task `Exercise`                           
═══════════════════════════════════════════════════════════════════════════════════
                                     EXERCISE                                      
═══════════════════════════════════════════════════════════════════════════════════
INFO     01:04:10.863 │ <<< UI ENSURE >>>                                          
INFO     01:04:10.865 │ UI get current page                                        
INFO     01:04:10.876 │ [UI] page_main                                             
INFO     01:04:10.877 │ Goto page_exercise                                         
INFO     01:04:10.880 │ <<< UI GOTO PAGE_EXERCISE >>>                              
INFO     01:04:10.889 │ Page switch: page_main_white -> page_campaign_menu         
INFO     01:04:10.891 │ Click (1167,  502) @ MAIN_GOTO_CAMPAIGN_WHITE              
INFO     01:04:11.671 │ Page switch: page_campaign_menu -> page_exercise           
INFO     01:04:11.673 │ Click (1038,  611) @ CAMPAIGN_MENU_GOTO_EXERCISE           
INFO     01:04:12.673 │ Page arrive: page_exercise                                 
INFO     01:04:12.675 │ [Change_opponent_count] 0                                  
INFO     01:04:12.676 │ [Exercise_ExerciseStrategy] aggressive                     
INFO     01:04:12.696 │ Loading OCR model: ./bin/cnocr_models/cnocr                
INFO     01:04:12.792 │ [OCR_PERIOD_REMAIN 0.114s] 7d23:55:49                      
INFO     01:04:12.794 │ Exercise period remain: 7 days, 23:55:49                   
INFO     01:04:12.807 │ [OCR_EXERCISE_REMAIN 0.011s] 5                             
════════════════════════════════ EXERCISE REMAIN 5 ════════════════════════════════
INFO     01:04:12.810 │ EXERCISE REMAIN 5                                          
─────────────────────────────────── OPPONENT 0 ────────────────────────────────────
INFO     01:04:12.812 │ OPPONENT 0                                                 
INFO     01:04:12.814 │ <<< OPPONENT: 0 >>>                                        
INFO     01:04:12.816 │ Click ( 163,  274) @ OPPONENT_0_0                          
INFO     01:04:13.859 │ Click ( 659,  569) @ EXERCISE_PREPARATION                  
INFO     01:04:15.067 │ <<< TRY: 1 >>>                                             
INFO     01:04:15.069 │ Combat preparation                                         
INFO     01:04:15.072 │ Click (1095,  649) @ BATTLE_PREPARATION                    
INFO     01:04:17.079 │ Click (1100,  634) @ BATTLE_PREPARATION                    
INFO     01:04:19.092 │ Click (1150,  642) @ BATTLE_PREPARATION                    
INFO     01:04:21.104 │ Click (1112,  622) @ BATTLE_PREPARATION                    
INFO     01:04:23.116 │ Click (1158,  640) @ BATTLE_PREPARATION                    
INFO     01:04:25.130 │ Click (1130,  653) @ BATTLE_PREPARATION                    
INFO     01:04:27.145 │ Click (1183,  641) @ BATTLE_PREPARATION                    
INFO     01:04:29.155 │ Click (1154,  627) @ BATTLE_PREPARATION                    
INFO     01:04:31.168 │ Click (1094,  653) @ BATTLE_PREPARATION                    
INFO     01:04:33.181 │ Click (1091,  653) @ BATTLE_PREPARATION                    
INFO     01:04:35.194 │ Click (1103,  636) @ BATTLE_PREPARATION                    
INFO     01:04:37.207 │ Function calls:                                            
                   <string>   L1 <module>                                          
                   spawn.py L105 spawn_main()                                      
                   spawn.py L118 _main()                                           
                 process.py L297 _bootstrap()                                      
                 process.py  L99 run()                                             
         process_manager.py L166 run_process()                                     
                    alas.py L587 loop()                                            
                    alas.py  L69 run()                                             
                    alas.py L258 exercise()                                        
                exercise.py L229 run()                                             
                exercise.py L115 _exercise_once()                                  
                  combat.py L186 _combat()                                         
                  combat.py  L26 _combat_preparation()                             
                 control.py  L37 click()                                           
                  device.py L269 handle_control_check()                            
                  device.py L305 click_record_check()                              
                  device.py  L43 show_function_call()                              
WARNING  01:04:37.211 │ Too many click for a button: BATTLE_PREPARATION            
WARNING  01:04:37.214 │ History click: ['BATTLE_PREPARATION', 'BATTLE_PREPARATION',
         'BATTLE_PREPARATION', 'BATTLE_PREPARATION', 'BATTLE_PREPARATION',         
         'BATTLE_PREPARATION', 'BATTLE_PREPARATION', 'BATTLE_PREPARATION',         
         'BATTLE_PREPARATION', 'BATTLE_PREPARATION', 'BATTLE_PREPARATION',         
         'BATTLE_PREPARATION']                                                     
ERROR    01:04:37.215 │ GameTooManyClickError: Too many click for a button:        
         BATTLE_PREPARATION                                                        
WARNING  01:04:37.217 │ Saving error: ./log/error/1790492677217                    
WARNING  01:04:37.621 │ Game stuck, com.YoStarEN.AzurLane will be restarted in 10  
         seconds                                                                   
WARNING  01:04:37.623 │ If you are playing by hand, please stop Alas               
INFO     01:04:37.624 │ Task call: Restart                                         
INFO     01:04:37.632 │ Bind task ['General', 'Alas', 'Exercise']                  
INFO     01:04:37.634 │ Save config ./config\alas.json,                            
         Restart.Scheduler.NextRun=datetime.datetime(2026, 9, 27, 1, 4, 37),       
         Restart.Scheduler.Enable=True                                             
INFO     01:04:47.643 │ Scheduler: End task `Exercise`                             
INFO     01:04:48.090 │ Server "Little Enterprise" is available.                   
INFO     01:04:48.092 │ [Server] en                                                
INFO     01:04:48.104 │ Bind task ['General', 'Alas']                              
INFO     01:04:48.108 │ Pending tasks: ['Restart', 'Exercise', 'Meowfficer',       
         'Guild', 'Gacha', 'Reward', 'ShopFrequent', 'ShopOnce', 'Freebies',       
         'PrivateQuarters', 'Minigame', 'OpsiAshBeacon', 'OpsiDaily', 'Daily',     
         'Hard', 'OpsiAshAssist', 'EventSp', 'EventA', 'EventB', 'Event',          
         'OpsiHazard1Leveling']                                                    
INFO     01:04:48.109 │ [Task] Restart (Enable, 2026-09-27 01:04:37)               
INFO     01:04:48.110 │ Bind task ['General', 'Alas', 'Restart']                   
INFO     01:04:48.131 │ Scheduler: Start task `Rest

Source: LmeSzinc/AzurLaneAutoScript