WiFi LoRa 32 (V2), LoRa.PacketSnr(); causing errors

Code:

void onReceive(int packetSize)

{
while (LoRa.available())
{
int bytes_read = LoRa.readBytes(lora_pkt_buffer, PKT_SIZE);
SerialWrite(lora_pkt_buffer, bytes_read);
rssi = LoRa.packetRssi();
Serial.println(String(LoRa.packetSnr()));
}
}

Error Message:

Guru Meditation Error: Core 1 panic’ed (Coprocessor exception)
Core 1 register dump:
PC : 0x400d15d1 PS : 0x00060431 A0 : 0x800d0e55 A1 : 0x3ffbe7f0
A2 : 0x0000000b A3 : 0x00000001 A4 : 0x000000a4 A5 : 0x00000000
A6 : 0x3ffbff94 A7 : 0x3ffb0060 A8 : 0x800d15c8 A9 : 0x3ffbe890
A10 : 0x0000002b A11 : 0x0000001b A12 : 0x40000000 A13 : 0x41bf4add
A14 : 0x7ff00000 A15 : 0x00000000 SAR : 0x0000000e EXCCAUSE: 0x00000004
EXCVADDR: 0x00000000 LBEG : 0x400d409c LEND : 0x400d40fe LCOUNT : 0x00000002
Core 1 was running in ISR context:
EPC1 : 0x400d15d1 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x40082c27

ELF file SHA256: 0000000000000000

I’ve isolated the error above to the line in which I call LoRa.PacketSnr();. When I remove this line my code works properly.

Would anyone know why this function is causing the program to crash? LoRa.PacketRssi(); works as intended, which just adds to my confusion. I can provide more details if requested

I remember having a similar problem when starting with lora. Unfortunately I am not 100% what the problem was but I currently first write the SNR result to a float and then output the float over Serial which works with for me with the LoRa Library from Sandeep Mistry (https://github.com/sandeepmistry/arduino-LoRa)

float snr = LoRa.packetSnr();
int rssi = LoRa.packetRssi();
Serial.print("RSSI: ");    
Serial.print(rssi);
Serial.print(" | SNR: ");
Serial.println(snr);

Thanks for the response, looks like it could be a problem with the Heltec library that I utilize. Good to know that the Sandeep Mistry library doesn’t have a problem in that regard.