Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The example "human_face_detect" crashes. (AIV-720) #176

Open
3 tasks done
TDA-2030 opened this issue Oct 21, 2024 · 3 comments
Open
3 tasks done

The example "human_face_detect" crashes. (AIV-720) #176

TDA-2030 opened this issue Oct 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@TDA-2030
Copy link

TDA-2030 commented Oct 21, 2024

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

After running the example human_face_detect, memory is properly released.

Actual behavior (suspected bug)

The program crashed and is continuously restarting indefinitely.

Error logs or terminal output

ESP-ROM:esp32p4-eco1-20240205
Build:Feb  5 2024
rst:0x1 (POWERON),boot:0x30f (SPI_FAST_FLASH_BOOT)
SPI mode:DIO, clock div:1
load:0x4ff33ce0,len:0x177c
load:0x4ff2abd0,len:0xf24
load:0x4ff2cbd0,len:0x33ec
entry 0x4ff2abda
I (25) boot: ESP-IDF v5.4-dev-3602-ga97a7b0962 2nd stage bootloader
I (26) boot: compile time Oct 20 2024 20:34:48
I (26) boot: Multicore bootloader
I (29) boot: chip revision: v0.1
I (30) boot: efuse block revision: v0.0
I (34) qio_mode: Enabling default flash chip QIO
I (38) boot.esp32p4: SPI Speed      : 80MHz
I (42) boot.esp32p4: SPI Mode       : QIO
I (46) boot.esp32p4: SPI Flash Size : 16MB
I (50) boot: Enabling RNG early entropy source...
I (54) boot: Partition Table:
I (57) boot: ## Label            Usage          Type ST Offset   Length
I (63) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (70) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (76) boot:  2 factory          factory app      00 00 00010000 007d0000
I (84) boot: End of partition table
I (86) esp_image: segment 0: paddr=00010020 vaddr=480c0020 size=4ddf8h (318968) map
I (143) esp_image: segment 1: paddr=0005de20 vaddr=30100000 size=0002ch (    44) load
I (145) esp_image: segment 2: paddr=0005de54 vaddr=3010002c size=0003ch (    60) load
I (149) esp_image: segment 3: paddr=0005de98 vaddr=4ff00000 size=02180h (  8576) load
I (158) esp_image: segment 4: paddr=00060020 vaddr=48000020 size=bbac0h (768704) map
I (281) esp_image: segment 5: paddr=0011bae8 vaddr=4ff02180 size=10ae0h ( 68320) load
I (295) esp_image: segment 6: paddr=0012c5d0 vaddr=4ff12c80 size=02edch ( 11996) load
I (302) boot: Loaded app from partition at offset 0x10000
I (302) boot: Disabling RNG early entropy source...
I (312) hex_psram: vendor id    : 0x0d (AP)
I (313) hex_psram: Latency      : 0x01 (Fixed)
I (313) hex_psram: DriveStr.    : 0x00 (25 Ohm)
I (313) hex_psram: dev id       : 0x03 (generation 4)
I (318) hex_psram: density      : 0x07 (256 Mbit)
I (323) hex_psram: good-die     : 0x06 (Pass)
I (327) hex_psram: SRF          : 0x02 (Slow Refresh)
I (332) hex_psram: BurstType    : 0x00 ( Wrap)
I (336) hex_psram: BurstLen     : 0x03 (2048 Byte)
I (340) hex_psram: BitMode      : 0x01 (X16 Mode)
I (345) hex_psram: Readlatency  : 0x04 (14 cycles@Fixed)
I (350) hex_psram: DriveStrength: 0x00 (1/1)
I (354) MSPI DQS: tuning success, best phase id is 2
I (540) MSPI DQS: tuning success, best delayline id is 12
I esp_psram: Found 32MB PSRAM device
I esp_psram: Speed: 200MHz
I (556) mmu_psram: .rodata xip on psram
I (592) mmu_psram: .text xip on psram
I (593) hex_psram: psram CS IO is dedicated
I (593) cpu_start: Multicore app
I (1083) esp_psram: SPI SRAM memory test OK
I (1092) cpu_start: Pro cpu start user code
I (1092) cpu_start: cpu freq: 360000000 Hz
I (1092) app_init: Application information:
I (1092) app_init: Project name:     human_face_detect
I (1097) app_init: App version:      v2.0-76-gd08d644
I (1102) app_init: Compile time:     Oct 20 2024 20:35:11
I (1107) app_init: ELF file SHA256:  a99d69d10...
I (1111) app_init: ESP-IDF:          v5.4-dev-3602-ga97a7b0962
I (1117) efuse_init: Min chip rev:     v0.1
I (1121) efuse_init: Max chip rev:     v0.99
I (1125) efuse_init: Chip rev:         v0.1
I (1129) heap_init: Initializing. RAM available for dynamic allocation:
I (1135) heap_init: At 4FF18BB0 len 00022410 (137 KiB): RAM
I (1140) heap_init: At 4FF3AFC0 len 00004BF0 (18 KiB): RAM
I (1145) heap_init: At 4FF40000 len 00040000 (256 KiB): RAM
I (1151) heap_init: At 30100068 len 00001F98 (7 KiB): TCM
I (1156) esp_psram: Adding pool of 31360K of PSRAM memory to heap allocator
I (1163) spi_flash: detected chip: generic
I (1166) spi_flash: flash io: qio
I (1170) main_task: Started on CPU0
I (1210) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1210) main_task: Calling app_main()
I (1290) dl::Model: model:torch-jit-export, version:0

I (1290) dl::Model: Conv_0: Conv
I (1290) dl::Model: Conv_2: Conv
I (1290) dl::Model: Conv_4: Conv
I (1290) dl::Model: Conv_5: Conv
I (1290) dl::Model: Conv_7: Conv
I (1300) dl::Model: Conv_8: Conv
I (1300) dl::Model: Conv_10: Conv
I (1300) dl::Model: Conv_26: Conv
I (1310) dl::Model: Conv_28: Conv
I (1310) dl::Model: Conv_29: Conv
I (1310) dl::Model: Conv_32: Conv
I (1310) dl::Model: Conv_48: Conv
I (1320) dl::Model: Conv_31: Conv
I (1320) dl::Model: Conv_34: Conv
I (1320) dl::Model: Conv_50: Conv
I (1330) dl::Model: Conv_35: Conv
I (1330) dl::Model: Conv_38: Conv
I (1330) dl::Model: Conv_66: Conv
I (1340) dl::Model: Conv_37: Conv
I (1340) dl::Model: Conv_40: Conv
I (1340) dl::Model: Conv_68: Conv
I (1350) dl::Model: Conv_41: Conv
I (1350) dl::Model: Conv_69: Conv
I (1350) dl::Model: Conv_72: Conv
I (1350) dl::Model: Conv_43: Conv
I (1360) dl::Model: Conv_71: Conv
I (1360) dl::Model: Conv_74: Conv
I (1360) dl::Model: Concat_44: Concat
I (1370) dl::Model: Conv_75: Conv
I (1370) dl::Model: Conv_78: Conv
I (1370) dl::Model: Conv_45: Conv
I (1380) dl::Model: Conv_46: Conv
I (1380) dl::Model: Conv_47: Conv
I (1380) dl::Model: Conv_77: Conv
I (1390) dl::Model: Conv_80: Conv
I (1390) dl::Model: Conv_81: Conv
I (1390) dl::Model: Conv_83: Conv
I (1390) dl::Model: Concat_84: Concat
I (1400) dl::Model: Conv_85: Conv
I (1400) dl::Model: Conv_86: Conv
I (1400) dl::Model: Conv_87: Conv
I (1410) MemoryManagerGreedy: Maximum mermory size: 202400

I (1420) dl::Model: model:torch-jit-export, version:0

I (1420) dl::Model: Conv_0: Conv
I (1420) dl::Model: PRelu_1: PRelu
I (1420) dl::Model: Conv_2: Conv
I (1430) dl::Model: PRelu_3: PRelu
I (1430) dl::Model: Conv_4: Conv
I (1430) dl::Model: PRelu_5: PRelu
I (1440) dl::Model: Conv_6: Conv
I (1440) dl::Model: Conv_7: Conv
I (1440) dl::Model: PRelu_8: PRelu
I (1440) dl::Model: Conv_9: Conv
I (1450) dl::Model: Conv_10: Conv
I (1450) dl::Model: PRelu_11: PRelu
I (1450) dl::Model: Conv_12: Conv
I (1460) dl::Model: PRelu_13: PRelu
I (1460) dl::Model: Conv_14: Conv
I (1460) dl::Model: Conv_15: Conv
I (1470) dl::Model: PRelu_16: PRelu
I (1470) dl::Model: Conv_17: Conv
I (1470) dl::Model: PRelu_18: PRelu
I (1480) dl::Model: Conv_19: Conv
I (1480) dl::Model: Conv_20: Conv
I (1480) dl::Model: Conv_21: Conv
I (1480) dl::Model: Conv_22: Conv
I (1490) MemoryManagerGreedy: Maximum mermory size: 49232

I (1520) human_face_detect: [score: 1.000000, x1: 51, y1: 32, x2: 262, y2: 239]

I (1520) human_face_detect: left_eye: [136, 123], left_mouth: [109, 150], nose: [118, 139], right_eye: [159, 134], right_mouth: [178, 146]]


assert failed: tlsf_free tlsf.c:629 (!block_is_free(block) && "block already marked as free")
Core  0 register dump:
MEPC    : 0x4ff00cd4  RA      : 0x4ff09358  SP      : 0x4ff1adc0  GP      : 0x4ff13480
TP      : 0x4ff1b040  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
S0/FP   : 0x0000006a  S1      : 0x00000001  A0      : 0x4ff1adfc  A1      : 0x4ff14525
A2      : 0x00000001  A3      : 0x00000029  A4      : 0x00000001  A5      : 0x4ff18000
A6      : 0x0000000c  A7      : 0x76757473  S2      : 0x00000009  S3      : 0x4ff1af2d
S4      : 0x4ff14524  S5      : 0x48110d18  S6      : 0x480c53a0  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938
MSTATUS : 0x00011880  MTVEC   : 0x4ff00003  MCAUSE  : 0x00000002  MTVAL   : 0x00000000
MHARTID : 0x00000000

Stack memory:
4ff1adc0: 0x000000b2 0x00000092 0x480cd47c 0x4ff11bee 0x4ff14d80 0x480cd47c 0x4ff14d64 0x480c2693
4ff1ade0: 0x4ff14d90 0x4ff1adf4 0x4ff14d94 0x480c2c2c 0x4ff14524 0x00393236 0x00000000 0x65737361
4ff1ae00: 0x66207472 0x656c6961 0x74203a64 0x5f66736c 0x65657266 0x736c7420 0x3a632e66 0x20393236
4ff1ae20: 0x6c622128 0x5f6b636f 0x665f7369 0x28656572 0x636f6c62 0x2620296b 0x62222026 0x6b636f6c
4ff1ae40: 0x726c6120 0x79646165 0x72616d20 0x2064656b 0x66207361 0x22656572 0x4ff10029 0x4ff13480
4ff1ae60: 0x4ff1b040 0x4fc19b4c 0x4ff114c0 0x00000200 0x480c53a0 0x48110d18 0x00000000 0x00000000
4ff1ae80: 0x480c53a0 0x48110d18 0x00000000 0x4ff25ff4 0x4ff24e70 0x48110d18 0x4ff18f74 0x4ff0fccc
4ff1aea0: 0x4ff24e70 0x4ff25ff4 0x4ff18bb0 0x4ff0fc66 0x480c53a0 0x48110d18 0x48107000 0x48013000
4ff1aec0: 0x480c53a0 0x00000000 0x00000000 0x00000000 0x480c53a0 0x48110d18 0x4ff242e4 0x000005f0
4ff1aee0: 0x48194828 0x48110014 0x48194830 0x4ff10042 0x480c53a0 0x48110d18 0x4ff242e4 0x000005f0
4ff1af00: 0x480c53a0 0x48194830 0x48110000 0x4ff0fc62 0x480c53a0 0x4ff25558 0x4ff25594 0x4ff0103c
4ff1af20: 0x4ff24eac 0x4ff24e70 0x4ff25500 0x4801303a 0x480c53a0 0x0000000c 0x4ff2bcf8 0x4801729c
4ff1af40: 0x480c53a0 0x4ff2b5b4 0x4ff2bcf8 0x48017366 0x4ff2b3b8 0x4ff1afac 0x4ff2b5b4 0x4800c16e
4ff1af60: 0x00000000 0x4ff2b5b4 0x4ff242e4 0x4800c1cc 0x480c53a0 0x00000000 0x4ff1afac 0x4800bfd0
4ff1af80: 0x00000096 0x00000076 0x0000008b 0x0000009f 0x00000086 0x000000b2 0x00000092 0x480bba8e
4ff1afa0: 0x00000000 0x00000000 0x480c4000 0x4ff27214 0x4ff27214 0x00000001 0x4ff2b464 0x4ff2b470
4ff1afc0: 0x4ff2b470 0x480ce778 0x00000003 0x480ba0ea 0x00000000 0x00000000 0x00000000 0x00000000
4ff1afe0: 0x00000000 0x00000000 0x480c4000 0x480ba0ee 0x00000000 0x00001388 0x00000003 0x00000000
4ff1b000: 0x00000000 0x00000000 0x00000000 0x4ff0a506 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b020: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4ff1b040: 0x00000007 0x4ff1a06c 0x4ff1a160 0x00000000 0x4ff1a148 0x4ff1a070 0xa5a5a5a5 0xa5a5a5a5
4ff1b060: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000160 0x4ff1ae50 0x00000000 0x4ff15d84 0x4ff15d84
4ff1b080: 0x4ff1b070 0x4ff15d7c 0x00000018 0x4ff2c584 0x4ff2c584 0x4ff1b070 0x00000000 0x00000001
4ff1b0a0: 0x4ff1a160 0x6e69616d 0x00000000 0x00000000 0x00000000 0x00000000 0x4ff1b060 0x00000001
4ff1b0c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x4ff19160 0x4ff191c8 0x4ff19230 0x00000000
4ff1b0e0: 0x00000000 0x00000001 0x00000000 0x00000000 0x4ff2b464 0x4fc0aa82 0x00000000 0x00000000
4ff1b100: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b120: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b140: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b160: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b180: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b1a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000



ELF file SHA256: a99d69d10

Rebooting...
ESP-ROM:esp32p4-eco1-20240205
Build:Feb  5 2024
rst:0xc (SW_CPU_RESET),boot:0x30f (SPI_FAST_FLASH_BOOT)
Core0 Saved PC:0x4ff03772
Core1 Saved PC:0x4ff038ce
SPI mode:DIO, clock div:1
load:0x4ff33ce0,len:0x177c
load:0x4ff2abd0,len:0xf24
load:0x4ff2cbd0,len:0x33ec
entry 0x4ff2abda
I (33) boot: ESP-IDF v5.4-dev-3602-ga97a7b0962 2nd stage bootloader
I (33) boot: compile time Oct 20 2024 20:34:48
I (34) boot: Multicore bootloader
I (35) boot: chip revision: v0.1
I (38) boot: efuse block revision: v0.0
I (41) qio_mode: Enabling default flash chip QIO
I (46) boot.esp32p4: SPI Speed      : 80MHz
I (49) boot.esp32p4: SPI Mode       : QIO
I (53) boot.esp32p4: SPI Flash Size : 16MB
I (57) boot: Enabling RNG early entropy source...
I (62) boot: Partition Table:
I (64) boot: ## Label            Usage          Type ST Offset   Length
I (70) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (77) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (84) boot:  2 factory          factory app      00 00 00010000 007d0000
I (91) boot: End of partition table
I (93) esp_image: segment 0: paddr=00010020 vaddr=480c0020 size=4ddf8h (318968) map
I (137) esp_image: segment 1: paddr=0005de20 vaddr=30100000 size=0002ch (    44) load
I (138) esp_image: segment 2: paddr=0005de54 vaddr=3010002c size=0003ch (    60) load
I (142) esp_image: segment 3: paddr=0005de98 vaddr=4ff00000 size=02180h (  8576) load
I (150) esp_image: segment 4: paddr=00060020 vaddr=48000020 size=bbac0h (768704) map
I (242) esp_image: segment 5: paddr=0011bae8 vaddr=4ff02180 size=10ae0h ( 68320) load
I (253) esp_image: segment 6: paddr=0012c5d0 vaddr=4ff12c80 size=02edch ( 11996) load
I (260) boot: Loaded app from partition at offset 0x10000
I (260) boot: Disabling RNG early entropy source...
I (271) hex_psram: vendor id    : 0x0d (AP)
I (271) hex_psram: Latency      : 0x01 (Fixed)
I (272) hex_psram: DriveStr.    : 0x00 (25 Ohm)
I (272) hex_psram: dev id       : 0x03 (generation 4)
I (277) hex_psram: density      : 0x07 (256 Mbit)
I (281) hex_psram: good-die     : 0x06 (Pass)
I (285) hex_psram: SRF          : 0x02 (Slow Refresh)
I (290) hex_psram: BurstType    : 0x00 ( Wrap)
I (294) hex_psram: BurstLen     : 0x03 (2048 Byte)
I (299) hex_psram: BitMode      : 0x01 (X16 Mode)
I (303) hex_psram: Readlatency  : 0x04 (14 cycles@Fixed)
I (308) hex_psram: DriveStrength: 0x00 (1/1)
I (312) MSPI DQS: tuning success, best phase id is 2
I (499) MSPI DQS: tuning success, best delayline id is 12
I esp_psram: Found 32MB PSRAM device
I esp_psram: Speed: 200MHz
I (514) mmu_psram: .rodata xip on psram
I (551) mmu_psram: .text xip on psram
I (551) hex_psram: psram CS IO is dedicated
I (552) cpu_start: Multicore app
I (1042) esp_psram: SPI SRAM memory test OK
I (1051) cpu_start: Pro cpu start user code
I (1051) cpu_start: cpu freq: 360000000 Hz
I (1051) app_init: Application information:
I (1051) app_init: Project name:     human_face_detect
I (1056) app_init: App version:      v2.0-76-gd08d644
I (1061) app_init: Compile time:     Oct 20 2024 20:35:11
I (1066) app_init: ELF file SHA256:  a99d69d10...
I (1070) app_init: ESP-IDF:          v5.4-dev-3602-ga97a7b0962
I (1076) efuse_init: Min chip rev:     v0.1
I (1080) efuse_init: Max chip rev:     v0.99
I (1084) efuse_init: Chip rev:         v0.1
I (1088) heap_init: Initializing. RAM available for dynamic allocation:
I (1094) heap_init: At 4FF18BB0 len 00022410 (137 KiB): RAM
I (1099) heap_init: At 4FF3AFC0 len 00004BF0 (18 KiB): RAM
I (1104) heap_init: At 4FF40000 len 00040000 (256 KiB): RAM
I (1110) heap_init: At 30100068 len 00001F98 (7 KiB): TCM
I (1115) esp_psram: Adding pool of 31360K of PSRAM memory to heap allocator
I (1122) spi_flash: detected chip: generic
I (1125) spi_flash: flash io: qio
I (1129) main_task: Started on CPU0
I (1169) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1169) main_task: Calling app_main()
I (1249) dl::Model: model:torch-jit-export, version:0

I (1249) dl::Model: Conv_0: Conv
I (1249) dl::Model: Conv_2: Conv
I (1249) dl::Model: Conv_4: Conv
I (1249) dl::Model: Conv_5: Conv
I (1249) dl::Model: Conv_7: Conv
I (1259) dl::Model: Conv_8: Conv
I (1259) dl::Model: Conv_10: Conv
I (1259) dl::Model: Conv_26: Conv
I (1269) dl::Model: Conv_28: Conv
I (1269) dl::Model: Conv_29: Conv
I (1269) dl::Model: Conv_32: Conv
I (1269) dl::Model: Conv_48: Conv
I (1279) dl::Model: Conv_31: Conv
I (1279) dl::Model: Conv_34: Conv
I (1279) dl::Model: Conv_50: Conv
I (1289) dl::Model: Conv_35: Conv
I (1289) dl::Model: Conv_38: Conv
I (1289) dl::Model: Conv_66: Conv
I (1299) dl::Model: Conv_37: Conv
I (1299) dl::Model: Conv_40: Conv
I (1299) dl::Model: Conv_68: Conv
I (1309) dl::Model: Conv_41: Conv
I (1309) dl::Model: Conv_69: Conv
I (1309) dl::Model: Conv_72: Conv
I (1309) dl::Model: Conv_43: Conv
I (1319) dl::Model: Conv_71: Conv
I (1319) dl::Model: Conv_74: Conv
I (1319) dl::Model: Concat_44: Concat
I (1329) dl::Model: Conv_75: Conv
I (1329) dl::Model: Conv_78: Conv
I (1329) dl::Model: Conv_45: Conv
I (1339) dl::Model: Conv_46: Conv
I (1339) dl::Model: Conv_47: Conv
I (1339) dl::Model: Conv_77: Conv
I (1349) dl::Model: Conv_80: Conv
I (1349) dl::Model: Conv_81: Conv
I (1349) dl::Model: Conv_83: Conv
I (1349) dl::Model: Concat_84: Concat
I (1359) dl::Model: Conv_85: Conv
I (1359) dl::Model: Conv_86: Conv
I (1359) dl::Model: Conv_87: Conv
I (1369) MemoryManagerGreedy: Maximum mermory size: 202400

I (1379) dl::Model: model:torch-jit-export, version:0

I (1379) dl::Model: Conv_0: Conv
I (1379) dl::Model: PRelu_1: PRelu
I (1379) dl::Model: Conv_2: Conv
I (1389) dl::Model: PRelu_3: PRelu
I (1389) dl::Model: Conv_4: Conv
I (1389) dl::Model: PRelu_5: PRelu
I (1399) dl::Model: Conv_6: Conv
I (1399) dl::Model: Conv_7: Conv
I (1399) dl::Model: PRelu_8: PRelu
I (1399) dl::Model: Conv_9: Conv
I (1409) dl::Model: Conv_10: Conv
I (1409) dl::Model: PRelu_11: PRelu
I (1409) dl::Model: Conv_12: Conv
I (1419) dl::Model: PRelu_13: PRelu
I (1419) dl::Model: Conv_14: Conv
I (1419) dl::Model: Conv_15: Conv
I (1429) dl::Model: PRelu_16: PRelu
I (1429) dl::Model: Conv_17: Conv
I (1429) dl::Model: PRelu_18: PRelu
I (1439) dl::Model: Conv_19: Conv
I (1439) dl::Model: Conv_20: Conv
I (1439) dl::Model: Conv_21: Conv
I (1439) dl::Model: Conv_22: Conv
I (1449) MemoryManagerGreedy: Maximum mermory size: 49232

I (1479) human_face_detect: [score: 1.000000, x1: 51, y1: 32, x2: 262, y2: 239]

I (1479) human_face_detect: left_eye: [136, 123], left_mouth: [109, 150], nose: [118, 139], right_eye: [159, 134], right_mouth: [179, 146]]


assert failed: tlsf_free tlsf.c:629 (!block_is_free(block) && "block already marked as free")
Core  0 register dump:
MEPC    : 0x4ff00cd4  RA      : 0x4ff09358  SP      : 0x4ff1adc0  GP      : 0x4ff13480
TP      : 0x4ff1b040  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
S0/FP   : 0x0000006a  S1      : 0x00000001  A0      : 0x4ff1adfc  A1      : 0x4ff14525
A2      : 0x00000001  A3      : 0x00000029  A4      : 0x00000001  A5      : 0x4ff18000
A6      : 0x0000000c  A7      : 0x76757473  S2      : 0x00000009  S3      : 0x4ff1af2d
S4      : 0x4ff14524  S5      : 0x48110d18  S6      : 0x480c53a0  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938
MSTATUS : 0x00011880  MTVEC   : 0x4ff00003  MCAUSE  : 0x00000002  MTVAL   : 0x00000000
MHARTID : 0x00000000

Stack memory:
4ff1adc0: 0x000000b3 0x00000092 0x480cd47c 0x4ff11bee 0x4ff14d80 0x480cd47c 0x4ff14d64 0x480c2693
4ff1ade0: 0x4ff14d90 0x4ff1adf4 0x4ff14d94 0x480c2c2c 0x4ff14524 0x00393236 0x00000000 0x65737361
4ff1ae00: 0x66207472 0x656c6961 0x74203a64 0x5f66736c 0x65657266 0x736c7420 0x3a632e66 0x20393236
4ff1ae20: 0x6c622128 0x5f6b636f 0x665f7369 0x28656572 0x636f6c62 0x2620296b 0x62222026 0x6b636f6c
4ff1ae40: 0x726c6120 0x79646165 0x72616d20 0x2064656b 0x66207361 0x22656572 0x4ff10029 0x4ff0fccc
4ff1ae60: 0x4ff1afac 0x00000028 0x4ff18bb0 0x4ff0fd0c 0x480c53a0 0x48110d18 0x00000000 0x00000000
4ff1ae80: 0x480c53a0 0x48110d18 0x00000000 0x4ff25ff4 0x4ff24e70 0x48110d18 0x4ff18f74 0x4ff0fccc
4ff1aea0: 0x4ff24e70 0x4ff25ff4 0x4ff18bb0 0x4ff0fc66 0x480c53a0 0x48110d18 0x48107000 0x48013000
4ff1aec0: 0x480c53a0 0x00000000 0x00000000 0x00000000 0x480c53a0 0x48110d18 0x4ff242e4 0x000005c7
4ff1aee0: 0x48194828 0x48110014 0x48194830 0x4ff10042 0x480c53a0 0x48110d18 0x4ff242e4 0x000005c7
4ff1af00: 0x480c53a0 0x48194830 0x48110000 0x4ff0fc62 0x480c53a0 0x4ff25558 0x4ff25594 0x4ff0103c
4ff1af20: 0x4ff24eac 0x4ff24e70 0x4ff25500 0x4801303a 0x480c53a0 0x0000000c 0x4ff2bcf8 0x4801729c
4ff1af40: 0x480c53a0 0x4ff2b5b4 0x4ff2bcf8 0x48017366 0x4ff2b3b8 0x4ff1afac 0x4ff2b5b4 0x4800c16e
4ff1af60: 0x00000000 0x4ff2b5b4 0x4ff242e4 0x4800c1cc 0x480c53a0 0x00000000 0x4ff1afac 0x4800bfd0
4ff1af80: 0x00000096 0x00000076 0x0000008b 0x0000009f 0x00000086 0x000000b3 0x00000092 0x480bba8e
4ff1afa0: 0x00000000 0x00000000 0x480c4000 0x4ff27214 0x4ff27214 0x00000001 0x4ff2b464 0x4ff2b470
4ff1afc0: 0x4ff2b470 0x480ce778 0x00000003 0x480ba0ea 0x00000000 0x00000000 0x00000000 0x00000000
4ff1afe0: 0x00000000 0x00000000 0x480c4000 0x480ba0ee 0x00000000 0x00001388 0x00000003 0x00000000
4ff1b000: 0x00000000 0x00000000 0x00000000 0x4ff0a506 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b020: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4ff1b040: 0x00000007 0x4ff1a06c 0x4ff1a160 0x00000000 0x4ff1a148 0x4ff1a070 0xa5a5a5a5 0xa5a5a5a5
4ff1b060: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000160 0x4ff1ae70 0x00000000 0x4ff15d84 0x4ff15d84
4ff1b080: 0x4ff1b070 0x4ff15d7c 0x00000018 0x4ff2c584 0x4ff2c584 0x4ff1b070 0x00000000 0x00000001
4ff1b0a0: 0x4ff1a160 0x6e69616d 0x00000000 0x00000000 0x00000000 0x00000000 0x4ff1b060 0x00000001
4ff1b0c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x4ff19160 0x4ff191c8 0x4ff19230 0x00000000
4ff1b0e0: 0x00000000 0x00000001 0x00000000 0x00000000 0x4ff2b464 0x4fc0aa82 0x00000000 0x00000000
4ff1b100: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b120: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b140: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b160: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b180: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b1a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000



ELF file SHA256: a99d69d10

Rebooting...
ESP-ROM:esp32p4-eco1-20240205
Build:Feb  5 2024
rst:0xc (SW_CPU_RESET),boot:0x30f (SPI_FAST_FLASH_BOOT)
Core0 Saved PC:0x4ff03772
Core1 Saved PC:0x4ff038ce
SPI mode:DIO, clock div:1
load:0x4ff33ce0,len:0x177c
load:0x4ff2abd0,len:0xf24
load:0x4ff2cbd0,len:0x33ec
entry 0x4ff2abda
I (33) boot: ESP-IDF v5.4-dev-3602-ga97a7b0962 2nd stage bootloader
I (33) boot: compile time Oct 20 2024 20:34:48
I (34) boot: Multicore bootloader
I (35) boot: chip revision: v0.1
I (38) boot: efuse block revision: v0.0
I (41) qio_mode: Enabling default flash chip QIO
I (46) boot.esp32p4: SPI Speed      : 80MHz
I (49) boot.esp32p4: SPI Mode       : QIO
I (53) boot.esp32p4: SPI Flash Size : 16MB
I (57) boot: Enabling RNG early entropy source...
I (62) boot: Partition Table:
I (64) boot: ## Label            Usage          Type ST Offset   Length
I (70) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (77) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (84) boot:  2 factory          factory app      00 00 00010000 007d0000
I (91) boot: End of partition table
I (93) esp_image: segment 0: paddr=00010020 vaddr=480c0020 size=4ddf8h (318968) map
I (137) esp_image: segment 1: paddr=0005de20 vaddr=30100000 size=0002ch (    44) load
I (138) esp_image: segment 2: paddr=0005de54 vaddr=3010002c size=0003ch (    60) load
I (142) esp_image: segment 3: paddr=0005de98 vaddr=4ff00000 size=02180h (  8576) load
I (150) esp_image: segment 4: paddr=00060020 vaddr=48000020 size=bbac0h (768704) map
I (242) esp_image: segment 5: paddr=0011bae8 vaddr=4ff02180 size=10ae0h ( 68320) load
I (253) esp_image: segment 6: paddr=0012c5d0 vaddr=4ff12c80 size=02edch ( 11996) load
I (260) boot: Loaded app from partition at offset 0x10000
I (260) boot: Disabling RNG early entropy source...
I (271) hex_psram: vendor id    : 0x0d (AP)
I (271) hex_psram: Latency      : 0x01 (Fixed)
I (272) hex_psram: DriveStr.    : 0x00 (25 Ohm)
I (272) hex_psram: dev id       : 0x03 (generation 4)
I (277) hex_psram: density      : 0x07 (256 Mbit)
I (281) hex_psram: good-die     : 0x06 (Pass)
I (285) hex_psram: SRF          : 0x02 (Slow Refresh)
I (290) hex_psram: BurstType    : 0x00 ( Wrap)
I (294) hex_psram: BurstLen     : 0x03 (2048 Byte)
I (299) hex_psram: BitMode      : 0x01 (X16 Mode)
I (303) hex_psram: Readlatency  : 0x04 (14 cycles@Fixed)
I (308) hex_psram: DriveStrength: 0x00 (1/1)
I (312) MSPI DQS: tuning success, best phase id is 2
I (499) MSPI DQS: tuning success, best delayline id is 12
I esp_psram: Found 32MB PSRAM device
I esp_psram: Speed: 200MHz
I (515) mmu_psram: .rodata xip on psram
I (551) mmu_psram: .text xip on psram
I (552) hex_psram: psram CS IO is dedicated
I (552) cpu_start: Multicore app
I (1046) esp_psram: SPI SRAM memory test OK
I (1055) cpu_start: Pro cpu start user code
I (1055) cpu_start: cpu freq: 360000000 Hz
I (1055) app_init: Application information:
I (1056) app_init: Project name:     human_face_detect
I (1060) app_init: App version:      v2.0-76-gd08d644
I (1065) app_init: Compile time:     Oct 20 2024 20:35:11
I (1070) app_init: ELF file SHA256:  a99d69d10...
I (1075) app_init: ESP-IDF:          v5.4-dev-3602-ga97a7b0962
I (1080) efuse_init: Min chip rev:     v0.1
I (1084) efuse_init: Max chip rev:     v0.99
I (1088) efuse_init: Chip rev:         v0.1
I (1092) heap_init: Initializing. RAM available for dynamic allocation:
I (1099) heap_init: At 4FF18BB0 len 00022410 (137 KiB): RAM
I (1104) heap_init: At 4FF3AFC0 len 00004BF0 (18 KiB): RAM
I (1109) heap_init: At 4FF40000 len 00040000 (256 KiB): RAM
I (1114) heap_init: At 30100068 len 00001F98 (7 KiB): TCM
I (1119) esp_psram: Adding pool of 31360K of PSRAM memory to heap allocator
I (1126) spi_flash: detected chip: generic
I (1130) spi_flash: flash io: qio
I (1134) main_task: Started on CPU0
I (1174) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1174) main_task: Calling app_main()
I (1254) dl::Model: model:torch-jit-export, version:0

I (1254) dl::Model: Conv_0: Conv
I (1254) dl::Model: Conv_2: Conv
I (1254) dl::Model: Conv_4: Conv
I (1254) dl::Model: Conv_5: Conv
I (1254) dl::Model: Conv_7: Conv
I (1264) dl::Model: Conv_8: Conv
I (1264) dl::Model: Conv_10: Conv
I (1264) dl::Model: Conv_26: Conv
I (1274) dl::Model: Conv_28: Conv
I (1274) dl::Model: Conv_29: Conv
I (1274) dl::Model: Conv_32: Conv
I (1274) dl::Model: Conv_48: Conv
I (1284) dl::Model: Conv_31: Conv
I (1284) dl::Model: Conv_34: Conv
I (1284) dl::Model: Conv_50: Conv
I (1294) dl::Model: Conv_35: Conv
I (1294) dl::Model: Conv_38: Conv
I (1294) dl::Model: Conv_66: Conv
I (1304) dl::Model: Conv_37: Conv
I (1304) dl::Model: Conv_40: Conv
I (1304) dl::Model: Conv_68: Conv
I (1314) dl::Model: Conv_41: Conv
I (1314) dl::Model: Conv_69: Conv
I (1314) dl::Model: Conv_72: Conv
I (1314) dl::Model: Conv_43: Conv
I (1324) dl::Model: Conv_71: Conv
I (1324) dl::Model: Conv_74: Conv
I (1324) dl::Model: Concat_44: Concat
I (1334) dl::Model: Conv_75: Conv
I (1334) dl::Model: Conv_78: Conv
I (1334) dl::Model: Conv_45: Conv
I (1344) dl::Model: Conv_46: Conv
I (1344) dl::Model: Conv_47: Conv
I (1344) dl::Model: Conv_77: Conv
I (1354) dl::Model: Conv_80: Conv
I (1354) dl::Model: Conv_81: Conv
I (1354) dl::Model: Conv_83: Conv
I (1354) dl::Model: Concat_84: Concat
I (1364) dl::Model: Conv_85: Conv
I (1364) dl::Model: Conv_86: Conv
I (1364) dl::Model: Conv_87: Conv
I (1374) MemoryManagerGreedy: Maximum mermory size: 202400

I (1384) dl::Model: model:torch-jit-export, version:0

I (1384) dl::Model: Conv_0: Conv
I (1384) dl::Model: PRelu_1: PRelu
I (1384) dl::Model: Conv_2: Conv
I (1394) dl::Model: PRelu_3: PRelu
I (1394) dl::Model: Conv_4: Conv
I (1394) dl::Model: PRelu_5: PRelu
I (1404) dl::Model: Conv_6: Conv
I (1404) dl::Model: Conv_7: Conv
I (1404) dl::Model: PRelu_8: PRelu
I (1404) dl::Model: Conv_9: Conv
I (1414) dl::Model: Conv_10: Conv
I (1414) dl::Model: PRelu_11: PRelu
I (1414) dl::Model: Conv_12: Conv
I (1424) dl::Model: PRelu_13: PRelu
I (1424) dl::Model: Conv_14: Conv
I (1424) dl::Model: Conv_15: Conv
I (1434) dl::Model: PRelu_16: PRelu
I (1434) dl::Model: Conv_17: Conv
I (1434) dl::Model: PRelu_18: PRelu
I (1444) dl::Model: Conv_19: Conv
I (1444) dl::Model: Conv_20: Conv
I (1444) dl::Model: Conv_21: Conv
I (1444) dl::Model: Conv_22: Conv
I (1454) MemoryManagerGreedy: Maximum mermory size: 49232

I (1484) human_face_detect: [score: 1.000000, x1: 51, y1: 32, x2: 262, y2: 239]

I (1484) human_face_detect: left_eye: [137, 123], left_mouth: [109, 150], nose: [118, 139], right_eye: [159, 134], right_mouth: [178, 146]]


assert failed: tlsf_free tlsf.c:629 (!block_is_free(block) && "block already marked as free")
Core  0 register dump:
MEPC    : 0x4ff00cd4  RA      : 0x4ff09358  SP      : 0x4ff1adc0  GP      : 0x4ff13480
TP      : 0x4ff1b040  T0      : 0x37363534  T1      : 0x7271706f  T2      : 0x33323130
S0/FP   : 0x0000006a  S1      : 0x00000001  A0      : 0x4ff1adfc  A1      : 0x4ff14525
A2      : 0x00000001  A3      : 0x00000029  A4      : 0x00000001  A5      : 0x4ff18000
A6      : 0x0000000c  A7      : 0x76757473  S2      : 0x00000009  S3      : 0x4ff1af2d
S4      : 0x4ff14524  S5      : 0x48110d18  S6      : 0x480c53a0  S7      : 0x00000000
S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000
T3      : 0x6e6d6c6b  T4      : 0x6a696867  T5      : 0x66656463  T6      : 0x62613938
MSTATUS : 0x00011880  MTVEC   : 0x4ff00003  MCAUSE  : 0x00000002  MTVAL   : 0x00000000
MHARTID : 0x00000000

Stack memory:
4ff1adc0: 0x000000b2 0x00000092 0x480cd47c 0x4ff11bee 0x4ff14d80 0x480cd47c 0x4ff14d64 0x480c2693
4ff1ade0: 0x4ff14d90 0x4ff1adf4 0x4ff14d94 0x480c2c2c 0x4ff14524 0x00393236 0x00000000 0x65737361
4ff1ae00: 0x66207472 0x656c6961 0x74203a64 0x5f66736c 0x65657266 0x736c7420 0x3a632e66 0x20393236
4ff1ae20: 0x6c622128 0x5f6b636f 0x665f7369 0x28656572 0x636f6c62 0x2620296b 0x62222026 0x6b636f6c
4ff1ae40: 0x726c6120 0x79646165 0x72616d20 0x2064656b 0x66207361 0x22656572 0x4ff10029 0x4ff0fccc
4ff1ae60: 0x4ff0a70a 0x4ff0fccc 0x4ff1aee0 0x4ff13480 0x480c53a0 0x48110d18 0x00000000 0x00000000
4ff1ae80: 0x480c53a0 0x48110d18 0x00000000 0x4ff25ff4 0x4ff24e70 0x48110d18 0x4ff18f74 0x4ff0fccc
4ff1aea0: 0x4ff24e70 0x4ff25ff4 0x4ff18bb0 0x4ff0fc66 0x480c53a0 0x48110d18 0x48107000 0x48013000
4ff1aec0: 0x480c53a0 0x00000000 0x00000000 0x00000000 0x480c53a0 0x48110d18 0x4ff242e4 0x000005cc
4ff1aee0: 0x48194828 0x48110014 0x48194830 0x4ff10042 0x480c53a0 0x48110d18 0x4ff242e4 0x000005cc
4ff1af00: 0x480c53a0 0x48194830 0x48110000 0x4ff0fc62 0x480c53a0 0x4ff25558 0x4ff25594 0x4ff0103c
4ff1af20: 0x4ff24eac 0x4ff24e70 0x4ff25500 0x4801303a 0x480c53a0 0x0000000c 0x4ff2bcf8 0x4801729c
4ff1af40: 0x480c53a0 0x4ff2b5b4 0x4ff2bcf8 0x48017366 0x4ff2b3b8 0x4ff1afac 0x4ff2b5b4 0x4800c16e
4ff1af60: 0x00000000 0x4ff2b5b4 0x4ff242e4 0x4800c1cc 0x480c53a0 0x00000000 0x4ff1afac 0x4800bfd0
4ff1af80: 0x00000096 0x00000076 0x0000008b 0x0000009f 0x00000086 0x000000b2 0x00000092 0x480bba8e
4ff1afa0: 0x00000000 0x00000000 0x480c4000 0x4ff27214 0x4ff27214 0x00000001 0x4ff2b464 0x4ff2b470
4ff1afc0: 0x4ff2b470 0x480ce778 0x00000003 0x480ba0ea 0x00000000 0x00000000 0x00000000 0x00000000
4ff1afe0: 0x00000000 0x00000000 0x480c4000 0x480ba0ee 0x00000000 0x00001388 0x00000003 0x00000000
4ff1b000: 0x00000000 0x00000000 0x00000000 0x4ff0a506 0x00000000 0x00000000 0x00000000 0x00000000
4ff1b020: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
4ff1b040: 0x00000007 0x4ff1a06c 0x4ff1a160 0x00000000 0x4ff1a148 0x4ff1a070 0xa5a5a5a5 0xa5a5a5a5
4ff1b060: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000160 0x4ff1ae60 0x00000000 0x4ff15d84 0x4ff15d84
4ff1b080: 0x4ff1b070 0x4ff15d7c 0x00000018 0x4ff2c584 0x4ff2c584 0x4ff1b070 0x00000000 0x00000001
4ff1b0a0: 0x4ff1a160 0x6e69616d 0x00000000 0x00000000 0x00000000 0x00000000 0x4ff1b060 0x00000001
4ff1b0c0: 0x00000000 0x00000000 0x00000000 0x00000000 0x4ff19160 0x4ff191c8 0x4ff19230 0x00000000

Steps to reproduce the behavior

build example human_face_detect with Linux, then flash to esp32_p4_function_ev_board

Project release version

latest

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Linux

Operating system version

Ubuntu 20.04.6 LTS x86_64

Shell

ZSH

Additional context

No response

@github-actions github-actions bot changed the title The example "human_face_detect" crashes. The example "human_face_detect" crashes. (AIV-720) Oct 21, 2024
@sun-xiangyu sun-xiangyu added the bug Something isn't working label Oct 21, 2024
@100312dog
Copy link
Contributor

100312dog commented Oct 21, 2024

@TDA-2030 Thank you for your feedback. This problem is related to the ppa(Pixel-Processing Accelerator) driver.
Two ways to solve this.

  1. shutdown ppa, use software crop and resize.
    https://github.com/espressif/esp-dl/blob/master/esp-dl/vision/image/dl_image_preprocessor.hpp#L58
  2. modify esp-idf code manually.
    https://github.com/espressif/esp-idf/blob/master/components/esp_driver_ppa/src/ppa_srm.c#L246
    modify this line to
    uint32_t out_ext_window_len = config->out.pic_w * new_block_h * out_pixel_depth / 8;

@TDA-2030
Copy link
Author

@100312dog, That's great, this solved my problem.

Nitpicking a bit, this pointer human_face was allocated with heap_caps_malloc, but using delete to free it does not look good. 🐱

@100312dog
Copy link
Contributor

@TDA-2030 Oh, that's true. I'll fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants