OpenIPC / majestic

Majestic Community edition integration kit
MIT License
36 stars 5 forks source link

Majestic exits with segmentation fault when motion detection is on. #168

Closed Andrei0xFF closed 2 months ago

Andrei0xFF commented 3 months ago

Majestic exits with segmentation fault when motion detection is on.

Processor t31l Family t31 Sensor gc2083_i2c Flash 8 MB

Firmware
Version    2.4.06.30-lite
Build    master+7c12bf3, 2024-06-30
Majestic    master+a31e5bf, 2024-06-17
U-Boot    U-Boot 2013.07-g90873ad (Jun 02 2024 - 15:00:15)
root@openipc-t31:/etc# uname -a
Linux openipc-t31 3.10.14__isvp_swan_1.0__ OpenIPC/majestic-webui#2 PREEMPT Sun Jun 30 00:15:43 UTC 2024 mips GNU/Linux
root@openipc-t31:/etc# cat majestic.yaml 
system:
  webPort: 80
  httpsPort: 443
  logLevel: debug
  buffer: 1024
  plugins: false
isp:
  antiFlicker: disabled
image:
  mirror: false
  flip: false
  rotate: 0
  contrast: 50
  hue: 50
  saturation: 50
  luminance: 50
video0:
  enabled: true
  codec: h264
  fps: 20
  bitrate: 4096
  rcMode: vbr
  gopSize: 1.0
video1:
  enabled: false
  codec: h264
  size: 704x576
  fps: 15
jpeg:
  enabled: true
  qfactor: 50
  fps: 5
osd:
  enabled: true
  font: "/usr/share/fonts/truetype/UbuntuMono-Regular.ttf"
  template: "%d.%m.%Y %H:%M:%S"
  posX: 16
  posY: 16
audio:
  enabled: false
  volume: 30
  srate: 8000
  codec: opus
  outputEnabled: false
  outputVolume: 30
rtsp:
  enabled: true
  port: 554
nightMode:
  colorToGray: true
  irCutSingleInvert: false
  lightMonitor: false
  lightSensorInvert: false
motionDetect:
  enabled: true
  visualize: true
  debug: false
  roi: 647x325x523x442
  sensitivity: 3
records:
  enabled: false
  path: "/mnt/mmcblk0p1/%F/%H.mp4"
  maxUsage: 95
outgoing:
  enabled: false
watchdog:
  enabled: true
  timeout: 300
hls:
  enabled: false
root@openipc-t31:/etc# majestic
00:24:28  <       majestic> [    main] main@237                      Majestic Lite for Ingenic, version master+a31e5bf, built on 2024-06-17
00:24:28  <       majestic> [watchdog] watchdog_start@94             Detected jz Watchdog
00:24:28  <       majestic> [watchdog] watchdog_start@115            Watchdog timeout set to 300 seconds
00:24:28  <       majestic> [   httpd] start_web_server@379          Set server path: /var/www
00:24:28  <       majestic> [   httpd] new_http_server@367           HTTP server started on :::80
00:24:28  <       majestic> [    main] init_sdk@66                   Loading main configuration: /etc/majestic.yaml
00:24:28  <       majestic> [sns_conf] try_sensor_config@15          SENSOR=gc2083
00:24:28  <       majestic> [sns_conf] load_sensor_config@46         Using /etc/sensor/gc2083.yaml as sensor config
00:24:28  <       majestic> [sns_conf] parse_sensor_config@127       VI: gc2083 @ 0x37 [1920x1080]
00:24:28  <       majestic> [     sdk] start_sdk@907                 CPU T31-L, SDK SYSUTILS-1.1.6, Model Swan, Dev 761c100c
---- FPGA board is ready ----
  Board UID : 30AB6E51
  Board HW ID : 72000460
  Board rev.  : 5DE5A975
  Board date  : 20190326
-----------------------------
00:24:29  <       majestic> [     sdk] start_sdk@1055                [0] H.264 1920x1080 20fps 4096Kbit [VB:1]
00:24:29  <       majestic> [     sdk] start_sdk@1154                Ingenic SDK started
00:24:29  <     MD_Process> [ mdetect] ivs_md_init@109               IVS count: 1, sensitivity: 3
00:24:29  <     MD_Process> [     log] printf@292                    Start(155):roi.x=106, roi.y=54, roi.width=-19, roi.height=19, wholeSize.width=320, wholeSize.height=180
Segmentation fault
root@openipc-t31:/etc# 
skilurius commented 2 months ago

Should be fixed on the next build, please re-open this issue if the problem is still present.