LoRa.endPacket();freezes

I am using a Mega 2560 with a duinotech lora shield v1 attached.and a Nextion
TJC 4832T035_011 display.