LmeSzinc / AzurLaneAutoScript

Azur Lane bot (CN/EN/JP/TW) 碧蓝航线脚本 | 无缝委托科研,全自动大世界
https://alas.azurlane.cloud
GNU General Public License v3.0
6.39k stars 759 forks source link

Operation SI Shop Freeze Issue #3961

Closed SirWithTheHat closed 1 day ago

SirWithTheHat commented 2 days ago

Before you asking

Describe the bug

Currently the app will constantly freeze when trying to purchase anything from the OpSi Store. It'll work as usually, going through the store to see what to purchase and when to purchase. It get stuck on the screen without pressing anything. It'lll still be able to interact the app after restarting.

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Purchase log as usual.

Relevant log output

'GearDesignPlanT2_1x5_PurpleCoins_50']                                     
INFO     15:39:07.354 │ Found 10 items in shop 4 at pos 0.00                        
INFO     15:39:07.355 │ [OS_SHOP_SCROLL] 0.00 (90.0-90.5)/(510-181)                 
INFO     15:39:07.356 │ [OS_SHOP_SCROLL] 0.00 (90.0-90.5)/(510-181)                 
INFO     15:39:07.357 │ OS_SHOP_SCROLL set to 0.275                                 
INFO     15:39:07.358 │ [OS_SHOP_SCROLL] 0.00 (90.0-90.5)/(510-181)                 
INFO     15:39:07.359 │ Swipe (1176,  309) -> (1178,  393)                          
INFO     15:39:07.645 │ [OS_SHOP_SCROLL] 0.26 (175.5-90.0)/(510-180)                
INFO     15:39:07.646 │ [OS_SHOP_SCROLL] 0.26 (175.5-90.0)/(510-180)                
INFO     15:39:07.655 │ [Costs] [PURPLECOINS_1, PURPLECOINS_2, PURPLECOINS_3,       
         YELLOWCOINS_1]                                                             
INFO     15:39:07.692 │ [Amount_ocr 0.035s] [1, 1, 1, 1, 1, 1, 1]                   
INFO     15:39:07.761 │ [Price_ocr 0.058s] [100, 20, 100, 20, 50, 750, 250]         
INFO     15:39:07.837 │ [Counter_ocr 0.075s] ['4/4', '10/10', '4/4', '4/4', '5/5',  
         '10/10', '10/10']                                                          
INFO     15:39:07.838 │ Shop row 1: ['GearPartPrototype_1x4_PurpleCoins_100',       
         'PlateRandomT4_1x10_PurpleCoins_20',                                       
         'OrdnanceTestingReportT2_1x4_PurpleCoins_100',                             
         'OrdnanceTestingReportT1_1x4_PurpleCoins_20',                              
         'GearDesignPlanT2_1x5_PurpleCoins_50']                                     
INFO     15:39:07.840 │ Shop row 2: ['RepairPackTriple2_1x10_YellowCoins_750',      
         'RepairPackTriple_1x10_YellowCoins_250']                                   
INFO     15:39:07.840 │ Found 7 items in shop 4 at pos 0.26                         
INFO     15:39:07.841 │ [OS_SHOP_SCROLL] 0.26 (175.5-90.0)/(510-180)                
INFO     15:39:07.843 │ [OS_SHOP_SCROLL] 0.26 (175.5-90.0)/(510-180)                
INFO     15:39:07.844 │ OS_SHOP_SCROLL set to 0.532                                 
INFO     15:39:07.845 │ [OS_SHOP_SCROLL] 0.26 (175.5-90.0)/(510-180)                
INFO     15:39:07.846 │ Swipe (1178,  374) -> (1177,  473)                          
INFO     15:39:08.141 │ [OS_SHOP_SCROLL] 0.54 (269.5-90.0)/(510-180)                
INFO     15:39:08.143 │ [OS_SHOP_SCROLL] 0.54 (269.5-90.0)/(510-180)                
INFO     15:39:08.151 │ [Costs] [PURPLECOINS_1, PURPLECOINS_2, PURPLECOINS_3,       
         YELLOWCOINS_1, YELLOWCOINS_2]                                              
INFO     15:39:08.183 │ [Amount_ocr 0.030s] [1, 1, 1, 1, 1, 1, 1]                   
INFO     15:39:08.250 │ [Price_ocr 0.056s] [750, 250, 300, 100, 20, 300, 50]        
INFO     15:39:08.318 │ [Counter_ocr 0.067s] ['10/10', '10/10', '1/1', '4/4',       
         '10/10', '1/1', '5/5']                                                     
INFO     15:39:08.319 │ Shop row 1: ['RepairPackTriple2_1x10_YellowCoins_750',      
         'RepairPackTriple_1x10_YellowCoins_250']                                   
INFO     15:39:08.320 │ Shop row 2: ['GearPartSpecialized_1x1_PurpleCoins_300',     
         'GearPartPrototype_1x4_PurpleCoins_100',                                   
         'PlateRandomT4_1x10_PurpleCoins_20',                                       
         'GearDesignPlanT3_1x1_PurpleCoins_300',                                    
         'GearDesignPlanT2_1x5_PurpleCoins_50']                                     
INFO     15:39:08.321 │ Found 7 items in shop 4 at pos 0.54                         
INFO     15:39:08.323 │ [OS_SHOP_SCROLL] 0.54 (269.5-90.0)/(510-180)                
INFO     15:39:08.324 │ [OS_SHOP_SCROLL] 0.54 (269.5-90.0)/(510-180)                
INFO     15:39:08.325 │ OS_SHOP_SCROLL set to 0.817                                 
INFO     15:39:08.325 │ [OS_SHOP_SCROLL] 0.54 (269.5-90.0)/(510-180)                
INFO     15:39:08.326 │ Swipe (1176,  469) -> (1177,  569)                          
INFO     15:39:08.615 │ [OS_SHOP_SCROLL] 0.79 (351.5-90.0)/(510-180)                
INFO     15:39:08.617 │ [OS_SHOP_SCROLL] 0.79 (351.5-90.0)/(510-180)                
INFO     15:39:08.625 │ [Costs] [PURPLECOINS_1, PURPLECOINS_2, YELLOWCOINS_1]       
INFO     15:39:08.663 │ [Amount_ocr 0.035s] [1, 1, 1, 1, 1, 1, 1]                   
INFO     15:39:08.741 │ [Price_ocr 0.062s] [300, 100, 20, 300, 50, 2500, 1000]      
INFO     15:39:08.819 │ [Counter_ocr 0.077s] ['1/1', '4/4', '10/10', '1/1', '5/5',  
         '2/2', '6/6']                                                              
INFO     15:39:08.820 │ Shop row 1: ['GearPartSpecialized_1x1_PurpleCoins_300',     
         'GearPartPrototype_1x4_PurpleCoins_100',                                   
         'PlateRandomT4_1x10_PurpleCoins_20',                                       
         'GearDesignPlanT3_1x1_PurpleCoins_300',                                    
         'GearDesignPlanT2_1x5_PurpleCoins_50']                                     
INFO     15:39:08.822 │ Shop row 2: ['RepairPackFull2_1x2_YellowCoins_2500',        
         'RepairPackFull_1x6_YellowCoins_1000']                                     
INFO     15:39:08.823 │ Found 7 items in shop 4 at pos 0.79                         
INFO     15:39:08.824 │ [OS_SHOP_SCROLL] 0.79 (351.5-90.0)/(510-180)                
INFO     15:39:08.825 │ [OS_SHOP_SCROLL] 0.79 (351.5-90.0)/(510-180)                
INFO     15:39:08.825 │ OS_SHOP_SCROLL set to 1                                     
INFO     15:39:08.826 │ [OS_SHOP_SCROLL] 0.79 (351.5-90.0)/(510-180)                
INFO     15:39:08.828 │ Swipe (1176,  558) -> (1178,  692)                          
INFO     15:39:09.150 │ [OS_SHOP_SCROLL] 1.00 (419.0-90.5)/(510-181)                
INFO     15:39:09.152 │ [OS_SHOP_SCROLL] 1.00 (419.0-90.5)/(510-181)                
INFO     15:39:09.159 │ [Costs] [PURPLECOINS_1, PURPLECOINS_2, YELLOWCOINS_1,       
         YELLOWCOINS_2]                                                             
INFO     15:39:09.196 │ [Amount_ocr 0.033s] [1, 1, 1, 1, 1, 1, 1]                   
INFO     15:39:09.277 │ [Price_ocr 0.063s] [2500, 1000, 300, 100, 20, 500, 300]     
INFO     15:39:09.360 │ [Counter_ocr 0.081s] ['2/2', '6/6', '2/2', '2/2', '10/10',  
         '1/1', '2/2']                                                              
INFO     15:39:09.361 │ Shop row 1: ['RepairPackFull2_1x2_YellowCoins_2500',        
         'RepairPackFull_1x6_YellowCoins_1000']                                     
INFO     15:39:09.362 │ Shop row 2: ['GearPartSpecialized_1x2_PurpleCoins_300',     
         'GearPartPrototype_1x2_PurpleCoins_100',                                   
         'PlateRandomT4_1x10_PurpleCoins_20',                                       
         'OrdnanceTestingReportT3_1x1_PurpleCoins_500',                             
         'GearDesignPlanT3_1x2_PurpleCoins_300']                                    
INFO     15:39:09.362 │ Found 7 items in shop 4 at pos 1.00                         
INFO     15:39:09.363 │ [OS_SHOP_SCROLL] 1.00 (419.0-90.5)/(510-181)                
INFO     15:39:09.364 │ OS shop reach bottom, stop                                  
INFO     15:39:09.394 │ [SHOP_YELLOW_COINS 0.024s] 243356                           
INFO     15:39:09.418 │ [OS_SHOP_PURPLE_COINS 0.022s] 903                           
INFO     15:39:09.420 │ Yellow coins: 243356, purple coins: 903                     
INFO     15:39:09.421 │ [OpsiNextReset] 2024-07-31 21:00:00                         
INFO     15:39:09.422 │ [ResetRemain] 29                                            
INFO     15:39:09.423 │ Buying item: LoggerAbyssalT5. In shop 1. At pos 0.66.       
INFO     15:39:09.424 │ OpsiShop side navbar set to 1                               
INFO     15:39:09.425 │ OS_SHOP_SIDE_NAVBAR set to left=1 upper=1                   
INFO     15:39:09.427 │ Nav item active: 3 from range (0, 3)                        
INFO     15:39:09.428 │ Click ( 213,  276) @ OS_SHOP_SIDE_NAVBAR_0_0                
INFO     15:39:09.591 │ Nav item active: 3 from range (0, 3)                        
INFO     15:39:09.883 │ Nav item active: 0 from range (0, 3)                        
INFO     15:39:09.884 │ OS_SHOP_SCROLL set to 0.6586402266288952                    
INFO     15:39:10.178 │ [OS_SHOP_SCROLL] 0.81 (364.5-79.0)/(510-158)                
INFO     15:39:10.180 │ Swipe (1179,  581) -> (1176,  535)                          
INFO     15:39:10.476 │ [OS_SHOP_SCROLL] 0.68 (318.0-78.5)/(510-157)                
INFO     15:39:10.484 │ [Costs] [PURPLECOINS_1, PURPLECOINS_2, PURPLECOINS_3]       
INFO     15:39:10.520 │ [Amount_ocr 0.033s] [1, 1, 1, 1, 1]                         
INFO     15:39:10.590 │ [Price_ocr 0.060s] [20, 20, 20, 36000, 15000]               
INFO     15:39:10.657 │ [Counter_ocr 0.066s] ['2/2', '2/2', '2/2', '1/1', '3/3']    
INFO     15:39:10.658 │ Shop row 1: ['TuningCombatT2_1x2_PurpleCoins_20',           
         'TuningSurvivalT2_1x2_PurpleCoins_20',                                     
         'TuningOffenseT2_1x2_PurpleCoins_20',                                      
         'LoggerAbyssalT5_1x1_YellowCoins_36000',                                   
         'LoggerObscureT5_1x3_YellowCoins_15000']                                   
INFO     15:39:10.659 │ Shop row 2: []                                              
INFO     15:39:10.689 │ Click ( 880,  446) @ LoggerAbyssalT5_1x1_YellowCoins_36000  
INFO     15:40:10.703 │ 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 L152 run_process()                                      
                    alas.py L536 loop()                                             
                    alas.py  L69 run()                                              
                    alas.py L299 opsi_shop()                                        
                  os_run.py  L34 opsi_shop()                                        
         operation_siren.py L250 os_shop()                                          
                    shop.py L157 handle_port_supply_buy()                           
                    shop.py  L32 os_shop_buy_execute()                              
                  device.py L161 screenshot()                                       
                  device.py L219 stuck_record_check()                               
                  device.py  L40 show_function_call()                               
WARNING  15:40:10.706 │ Wait too long                                               
WARNING  15:40:10.706 │ Waiting for {'GET_MEOWFFICER_ITEMS_2',                      
         'GET_MEOWFFICER_ITEMS_1', 'MAP_GOTO_GLOBE_FOG', 'SHOP_BUY_CONFIRM_AMOUNT', 
         'GET_ITEMS_3', 'SHOP_BUY_CONFIRM', 'GET_ITEMS_2', 'PORT_SUPPLY_CHECK',     
         'GET_ITEMS_1', 'GET_ADAPTABILITY'}                                         
INFO     15:40:10.738 │ [Package_name] com.YoStarEN.AzurLane                        
ERROR    15:40:10.739 │ GameStuckError: Wait too long                               
WARNING  15:40:10.740 │ Saving error: ./log/error/1719970810740                     
WARNING  15:40:10.833 │ Game stuck, com.YoStarEN.AzurLane will be restarted in 10   
         seconds                                                                    
WARNING  15:40:10.834 │ If you are playing by hand, please stop Alas                
INFO     15:40:10.835 │ Task call: Restart                                          
INFO     15:40:10.845 │ Bind task ['General', 'Alas', 'OpsiGeneral', 'OpsiShop']    
INFO     15:40:10.846 │ Save config ./config\alas.json,                             
         Restart.Scheduler.NextRun=datetime.datetime(2024, 7, 2, 15, 40, 10),       
         Restart.Scheduler.Enable=True                                              
INFO     15:40:20.861 │ Scheduler: End task `OpsiShop`                              
CRITICAL 15:40:20.862 │ Task `OpsiShop` failed 3 or more times.                     
CRITICAL 15:40:20.863 │ Possible reason #1: You haven't used it correctly. Please   
         read the help text of the options.                                         
CRITICAL 15:40:20.864 │ Possible reason #2: There is a problem with this task.      
         Please contact developers or try to fix it yourself.                       
CRITICAL 15:40:20.865 │ Request human takeover                                      
INFO     15:40:21.915 │ No provider specified, skip sending

Screenshots

image

Anything else?

No response

LmeSzinc commented 2 days ago

1bda94335a059044a138351daa6f8b16dee2d24d

SirWithTheHat commented 1 day ago

1bda943

Thank you!