Unknown crash freezed

Hello eveyone,
running OTAA, first payload up link to TTN successful , then do_sendmac seems crashed waiting for Rx,
don’t know why the gateway don’t down-link, MCCI do not go into decode Frame phase.
I need help to tell me how to solve, I can’t continue up-link another new payload.

My setting
cpu: ESP32
MCCI Lorawan LMIC library 4.1
gateway: WiseGate Edge Lite2

code is simple
void loop() {
// extern volatile unsigned long timer0_overflow_count;
if(next==false){
os_runloop_once();
}
else {

if (LMIC.pendMacLen >0){
  Serial.printf("Pending MAC message");
  next=false;
  do_sendmac(&sendjob);
}
else {

  Serial.printf("No pending MAC message");
  Serial.flush();
  delay(20);  //delay 20ms
  //esp_light_sleep_start()   go to light sleep, coz no mac message need to be sent , low power mode

#if 0
enter_sleep();
show_wake_reason();
#endif
wakeupReason=1;
// others MCU like atmel 1284p able return here, falling edge wake up, transmit on rising edge
if(wakeupReason<99){
next = false;
do_send(&sendjob);
}

}
}
}