ESP32 with bluetooth keeps rebooting after x seconds

Hi there,

My ESP32 with bluetooth keeps rebooting after x seconds. I have comment out HM-10 and HM-11. Also I do not see any bluetooth message. I think the reboot has someting to do with the scanning of bluetooth. When it is time to scan for devices it crash and reboots. Below are the logs:

    v:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIOConnecting to 
    Marrol
    .
    .
    .
    .
    .
    .
    .
    WiFi ok with manual config credentials
    OpenMQTTGateway mac: 
    30:AE:A4:4E:8B:08
    OpenMQTTGateway ip: 
    192.168.1.199
    1883
    Connecting to MQTT by IP adress
    192.168.1.190
    IR_EMITTER_PIN 
    14
    IR_RECEIVER_PIN 
    27
    ZgatewayIR setup done 
    RF_EMITTER_PIN 
    12
    RF_RECEIVER_PIN 
    13
    RF setup ok
    ZgatewayBT singlecore ESP32 setup done 
    MQTT_MAX_PACKET_SIZE
    1024
    JSON_MSG_BUFFER
    512
    Setup OpenMQTTGateway end
    MQTT connection...
    Connected to broker
    Subscription OK to the subjects
    Guru Meditation Error: Core  1 panic'ed (Cache disabled but cached memory region accessed)
    Core 1 register dump:
    PC      : 0x400de0c4  PS      : 0x00060034  A0      : 0x400819a0  A1      : 0x3ffc0bf0  
    A2      : 0x00000001  A3      : 0x00000002  A4      : 0x000000ff  A5      : 0x4009070c  
    A6      : 0x3ff42020  A7      : 0x00009a00  A8      : 0x800814c4  A9      : 0x3ff5f024  
    A10     : 0x3ffc1180  A11     : 0x20000000  A12     : 0x00000400  A13     : 0x3ffda2f0  
    A14     : 0x00000004  A15     : 0x00060a20  SAR     : 0x00000018  EXCCAUSE: 0x00000007  
    EXCVADDR: 0x00000000  LBEG    : 0x4000164d  LEND    : 0x40001667  LCOUNT  : 0xfffffffc  
    Core 1 was running in ISR context:
    EPC1    : 0x400940ac  EPC2    : 0x00000000  EPC3    : 0x00000000  EPC4    : 0x400de0c4

    Backtrace: 0x400de0c4:0x3ffc0bf0 0x4008199d:0x3ffc0c10 0x400940a9:0x00000000

    Rebooting...
    ets Jun  8 2016 00:22:57

    rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff0018,len:4
    load:0x3fff001c,len:812
    load:0x40078000,len:0
    load:0x40078000,len:11572
    entry 0x40078a5c
    Connecting to 
    Marrol
    .
    .
    .
    .
    .
    .
    .
    WiFi ok with manual config credentials
    OpenMQTTGateway mac: 
    30:AE:A4:4E:8B:08
    OpenMQTTGateway ip: 
    192.168.1.199
    1883
    Connecting to MQTT by IP adress
    192.168.1.190
    IR_EMITTER_PIN 
    14
    IR_RECEIVER_PIN 
    27
    ZgatewayIR setup done 
    RF_EMITTER_PIN 
    12
    RF_RECEIVER_PIN 
    13
    RF setup ok
    ZgatewayBT singlecore ESP32 setup done 
    MQTT_MAX_PACKET_SIZE
    1024
    JSON_MSG_BUFFER
    512
    Setup OpenMQTTGateway end
    MQTT connection...
    Connected to broker
    Subscription OK to the subjects
    Guru Meditation Error: Core  1 panic'ed (Cache disabled but cached memory region accessed)
    Core 1 register dump:
    PC      : 0x400de0c4  PS      : 0x00060034  A0      : 0x400819a0  A1      : 0x3ffc0bf0  
    A2      : 0x00000001  A3      : 0x00000002  A4      : 0x000000ff  A5      : 0x4009070c  
    A6      : 0x00000003  A7      : 0x00060a23  A8      : 0x800814c4  A9      : 0x3ff5f024  
    A10     : 0x3ffc1180  A11     : 0x20000000  A12     : 0x00000400  A13     : 0x3ffda290  
    A14     : 0x00000003  A15     : 0x00060e23  SAR     : 0x00000012  EXCCAUSE: 0x00000007  
    EXCVADDR: 0x00000000  LBEG    : 0x40001609  LEND    : 0x4000160d  LCOUNT  : 0x00000000  
    Core 1 was running in ISR context:
    EPC1    : 0x4000bff0  EPC2    : 0x00000000  EPC3    : 0x00000000  EPC4    : 0x400de0c4

    Backtrace: 0x400de0c4:0x3ffc0bf0 0x4008199d:0x3ffc0c10 0x4000bfed:0x00000000

    Rebooting...
    ets Jun  8 2016 00:22:57

    rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff0018,len:4
    load:0x3fff001c,len:812
    load:0x40078000,len:0
    load:0x40078000,len:11572
    entry 0x40078a5c
    Connecting to 
    Marrol
    .
    .
    .
    .
    .
    .
    .
    WiFi ok with manual config credentials
    OpenMQTTGateway mac: 
    30:AE:A4:4E:8B:08
    OpenMQTTGateway ip: 
    192.168.1.199
    1883
    Connecting to MQTT by IP adress
    192.168.1.190
    IR_EMITTER_PIN 
    14
    IR_RECEIVER_PIN 
    27
    ZgatewayIR setup done 
    RF_EMITTER_PIN 
    12
    RF_RECEIVER_PIN 
    13
    RF setup ok
    ZgatewayBT singlecore ESP32 setup done 
    MQTT_MAX_PACKET_SIZE
    1024
    JSON_MSG_BUFFER
    512
    Setup OpenMQTTGateway end
    MQTT connection...
    Connected to broker
    Subscription OK to the subjects

Yes, found the problem again. I was using to many sensors. So i only using BT and it works now. But I see no sensors in home assistant. I have enabled MQTT discovery.

It is stable right now, even with 2 cores! I use a Wemos LOLIN32.