esp32-idf-sqlite3
esp32-idf-sqlite3 copied to clipboard
sqlite3MallocZero at sqlite3.c:26659
Hi,
I am using ESP32 with 4mb flash without spiram but i am getting following error while opening a database
` Core 0 register dump: PC : 0x00000000 PS : 0x00060530 A0 : 0x800e086b A1 : 0x3ffb1de0 A2 : 0x000001c0 A3 : 0x00000000 A4 : 0x000000a4 A5 : 0x3ffbc0f4 A6 : 0x00000000 A7 : 0x00000000 A8 : 0x800dddda A9 : 0x000001bf A10 : 0x000001c0 A11 : 0x3ffbc050 A12 : 0x00000001 A13 : 0x00000000 A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000016 EXCCAUSE: 0x00000014 EXCVADDR: 0x00000000 LBEG : 0x4008c4c4 LEND : 0x4008c4e0 LCOUNT : 0x00000000 0x4008c4c4: memcpy at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/memcpy.S:175 0x4008c4e0: memcpy at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/memcpy.S:197
Backtrace: 0xfffffffd:0x3ffb1de0 0x400e0868:0x3ffb1e10 0x400e5fae:0x3ffb1e30 0x400e61f2:0x3ffb1e70 0x400dc598:0x3ffb1e90 0x400dc1ac:0x3ffb1ed0 0x4019596f:0x3ffb1f20 0x400923bd:0x3ffb1f50 0x400e0868: sqlite3MallocZero at components/sqlite3/sqlite3.c:26659 0x400e5fae: openDatabase atcomponents/sqlite3/sqlite3.c:154770 0x400e61f2: sqlite3_open at components/sqlite3/sqlite3.c:155072 0x400dc598: sqlite_init at components/sqlite/src/sqlite.c:19 0x400dc1ac: app_main at main/main.c:93 0x4019596f: main_task at C:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos/app_startup.c:208 (discriminator 13) 0x400923bd: vPortTaskWrapper at C:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162 ` Any help would be grateful.
Hi it's looks like out of memory. Please free up memory and try. Please try one of the examples so it is easier to figure out.
---- On Sun, 05 May 2024 13:35:31 +0530 @.*** wrote ----
Hi,
I am using ESP32 with 4mb flash without spiram but i am getting following error while opening a database
` Core 0 register dump: PC : 0x00000000 PS : 0x00060530 A0 : 0x800e086b A1 : 0x3ffb1de0 A2 : 0x000001c0 A3 : 0x00000000 A4 : 0x000000a4 A5 : 0x3ffbc0f4 A6 : 0x00000000 A7 : 0x00000000 A8 : 0x800dddda A9 : 0x000001bf A10 : 0x000001c0 A11 : 0x3ffbc050 A12 : 0x00000001 A13 : 0x00000000 A14 : 0x00000000 A15 : 0x00000000 SAR : 0x00000016 EXCCAUSE: 0x00000014 EXCVADDR: 0x00000000 LBEG : 0x4008c4c4 LEND : 0x4008c4e0 LCOUNT : 0x00000000 0x4008c4c4: memcpy at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/memcpy.S:175 0x4008c4e0: memcpy at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/memcpy.S:197
Backtrace: 0xfffffffd:0x3ffb1de0 0x400e0868:0x3ffb1e10 0x400e5fae:0x3ffb1e30 0x400e61f2:0x3ffb1e70 0x400dc598:0x3ffb1e90 0x400dc1ac:0x3ffb1ed0 0x4019596f:0x3ffb1f20 0x400923bd:0x3ffb1f50 0x400e0868: sqlite3MallocZero at components/sqlite3/sqlite3.c:26659 0x400e5fae: openDatabase atcomponents/sqlite3/sqlite3.c:154770 0x400e61f2: sqlite3_open at components/sqlite3/sqlite3.c:155072 0x400dc598: sqlite_init at components/sqlite/src/sqlite.c:19 0x400dc1ac: app_main at main/main.c:93 0x4019596f: main_task at C:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos/app_startup.c:208 (discriminator 13) 0x400923bd: vPortTaskWrapper at C:/Espressif/frameworks/esp-idf-v5.1.2/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162 ` Any help would be grateful.
— Reply to this email directly, view it on GitHub[https://github.com/siara-cc/esp32-idf-sqlite3/issues/25], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ADDCTHFWDNWNSIR5EBG72O3ZAXR4XAVCNFSM6AAAAABHHQNYLOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TSMZYGM3TCMY]. You are receiving this because you are subscribed to this thread.Message ID: