majestic
majestic copied to clipboard
majstic crash when alarm activated
Required information
- Camera board id: t31n (t31 family) Xiaomi MJSXJ03HL
- OpenIPC version: 2.3.09.06-lite
- installation method: UART
Issue description
When I activate alarm "Enable motion detection" by IHM and reboot, majectic crashes. Either same result if I eddit the config file and restart process majestic.
Steps to reproduce
- vi /etc/majestic.yaml > motionDetect: enabled: true
- run majectic
- Error log :
20:49:17 < majestic> [ main] main@123 Majestic Lite for Ingenic, version master+3b4f3d8, built on 2023-09-03
20:49:17 < majestic> [app_conf] load_config@106 Using /etc/majestic.yaml as main configuration
20:49:18 < majestic> [watchdog] watchdog_start@101 Detected jz Watchdog
20:49:18 < majestic> [watchdog] watchdog_start@121 Watchdog timeout set to 10 seconds
20:49:18 < majestic> [sns_conf] try_sensor_config@13 SENSOR=jxq03p
20:49:18 < majestic> [sns_conf] load_sensor_config@44 Using /etc/sensor/jxq03p.yaml as sensor config
20:49:18 < majestic> [sns_conf] parse_sensor_config@125 VI: jxq03p @ 0x40 [2304x1296]
20:49:18 < majestic> [ sdk] start_sdk@1247 CPU T31-N, SDK SYSUTILS-1.1.6, model Swan, devID 5624000c
---- FPGA board is ready ----
Board UID : 30AB6E51
Board HW ID : 72000460
Board rev. : 5DE5A975
Board date : 20190326
-----------------------------
20:49:18 < majestic> [ sdk] imp_system_init@438 ImpSystemInit success
20:49:18 < majestic> [ sdk] start_sdk@1390 [0] H.264 2304x1296 25fps 4096Kbit [VB:1]
20:49:18 < majestic> [ osd] init_osd@147 OSD initialized
20:49:18 < majestic> [ log] printf@268 VBMCreatePool[335] poolid = 2 IMP_ALLOC failed size = 706560
20:49:18 < majestic> [ sdk] imp_framesource_streamon@828 IMP_FrameSource_EnableChn(-1) error: 2
20:49:18 < majestic> [ sdk] start_sdk@1474 ImpStreamOn failed
20:49:18 < majestic> [ main] main@209 Shutdown main thread
Expected :
20:48:40 < majestic> [ main] main@123 Majestic Lite for Ingenic, version master+3b4f3d8, built on 2023-09-03
20:48:40 < majestic> [app_conf] load_config@106 Using /etc/majestic.yaml as main configuration
20:48:40 < majestic> [watchdog] watchdog_start@101 Detected jz Watchdog
20:48:40 < majestic> [watchdog] watchdog_start@121 Watchdog timeout set to 10 seconds
20:48:40 < majestic> [sns_conf] try_sensor_config@13 SENSOR=jxq03p
20:48:40 < majestic> [sns_conf] load_sensor_config@44 Using /etc/sensor/jxq03p.yaml as sensor config
20:48:40 < majestic> [sns_conf] parse_sensor_config@125 VI: jxq03p @ 0x40 [2304x1296]
20:48:40 < majestic> [ sdk] start_sdk@1247 CPU T31-N, SDK SYSUTILS-1.1.6, model Swan, devID 5624000c
---- FPGA board is ready ----
Board UID : 30AB6E51
Board HW ID : 72000460
Board rev. : 5DE5A975
Board date : 20190326
-----------------------------
20:48:41 < majestic> [ sdk] imp_system_init@438 ImpSystemInit success
20:48:41 < majestic> [ sdk] start_sdk@1390 [0] H.264 2304x1296 25fps 4096Kbit [VB:1]
20:48:41 < majestic> [ osd] init_osd@147 OSD initialized
20:48:41 < majestic> [ sdk] start_sdk@1497 Ingenic SDK started
20:48:41 < majestic> [ httpd] new_http_server@368 HTTP server started on :::80
20:48:41 < majestic> [ rtsp] rtsp_init@31 RTSP server started on port 554
20:48:41 < majestic> [ gpio] set_gpio@25 set_gpio(49, 0)
20:48:41 < majestic> [ gpio] set_gpio@25 set_gpio(50, 0)
20:48:41 < majestic> [ gpio] set_gpio@25 set_gpio(60, 0)
20:48:41 < majestic> [ gpio] set_gpio@25 set_gpio(49, 1)
20:48:41 < majestic> [ gpio] set_gpio@25 set_gpio(50, 0)
20:48:41 < majestic> [ gpio] set_gpio@25 set_gpio(49, 0)
20:48:41 < majestic> [ gpio] set_gpio@25 set_gpio(50, 1)
20:48:41 < majestic> [ gpio] set_gpio@25 set_gpio(49, 0)
20:48:41 < majestic> [ gpio] set_gpio@25 set_gpio(50, 0)