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

SSC337DE: if you add something to the OSD template, Majestic causes a kernel error after 25 minutes #210

Open
MalgathThelamin opened this issue Oct 15, 2024 · 0 comments
Labels
low priority Not considered without funding

Comments

@MalgathThelamin
Copy link

Required information

  • SoC: ssc337de
  • OpenIPC version: 2.4.10.14-lite
  • Build: master+1b89fe0, 2024-10-14
  • Majestic: master+98571ed, 2024-10-14

Issue description

If I add literally anything, e. g. "abcdef", to the OSD template, the kernel error occurs ≈25 minutes after the restart. Majestic stops, Watchdog restarts the camera after 300 seconds. If I remove the suffix from the OSD template, it does not happen anymore.

majestic.yaml

system:
  webPort: 80
  httpsPort: 443
  logLevel: debug
isp:
  antiFlicker: disabled
  iqServer: false
image:
  mirror: false
  flip: false
  rotate: 0
  contrast: 50
  hue: 50
  saturation: 50
  luminance: 50
video0:
  enabled: true
  codec: h265
  fps: 30
  bitrate: 8192
  rcMode: vbr
  gopSize: 1.0
  profile: high
  size: 1920x1080
  sliceUnits: 0
video1:
  enabled: false
  codec: h264
  size: 704x576
  fps: 15
jpeg:
  enabled: true
  qfactor: 50
  fps: 5
  rtsp: false
osd:
  enabled: true
  font: "/usr/share/fonts/truetype/UbuntuMono-Regular.ttf"
  template: "%d.%m.%Y %H:%M:%S abcdef"
  posX: 16
  posY: 16
audio:
  enabled: true
  volume: 0
  srate: 8000
  codec: opus
  outputEnabled: false
  outputVolume: 0
  speakerPinInvert: false
rtsp:
  enabled: true
  port: 554
nightMode:
  colorToGray: true
  irCutSingleInvert: false
  lightMonitor: false
  lightSensorInvert: false
  backlightPin: 53
  irCutPin1: 79
  irCutPin2: 78
  monitorDelay: 0
motionDetect:
  enabled: false
  visualize: false
  debug: false
records:
  enabled: false
  path: "/mnt/mmcblk0p1/%F"
  split: 20
  maxUsage: 95
outgoing:
  enabled: true
  naluSize: 1200
  server: rtmp://a.rtmp.youtube.com/live2/{key}
watchdog:
  enabled: true
  timeout: 300
hls:
  enabled: false

The end of logread output (full output)

Oct 15 19:54:04 openipc-ssc337de kern.alert kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000002
Oct 15 19:54:04 openipc-ssc337de kern.alert kernel: pgd = c0004000
Oct 15 19:54:04 openipc-ssc337de kern.alert kernel: [00000002] *pgd=00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: Internal error: Oops: 5 [#1] PREEMPT THUMB2
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: Modules linked in: sensor_gc4653_mipi(PO) mi_venc(PO) mi_vpe(PO) mi_vif(PO) mi_divp(PO) mi_shadow(PO) mi_sensor(PO) mi_ao(PO) mi_ai(PO) mi_rgn(PO) mi_sys(PO) mi_common(PO) mhal(PO) exfat(O)
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: CPU: 0 PID: 694 Comm: RGN BUF WQ Tainted: P           O    4.9.84 #2
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: Hardware name: SStar Soc (Flattened Device Tree)
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: task: c35c8e40 task.stack: c26f2000
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: PC is at HalMoveDma_MoveData+0xe0/0x1f0
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: LR is at _raw_spin_unlock_irqrestore+0x9/0x2a
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: pc : [<c01ad294>]    lr : [<c02514bd>]    psr: 28000033
Oct 15 19:54:04 openipc-ssc337de user.debug majestic[646]: ^[[1;33m[MI WRN ]: MI_AI_GetFrame[7284]: 
Oct 15 19:54:04 openipc-ssc337de user.debug majestic[646]: Dev0 Chn0 Buffer(s) is lost due to slow fetching!!!
Oct 15 19:54:04 openipc-ssc337de user.debug majestic[646]: ^[[0m
Oct 15 19:54:04 openipc-ssc337de user.debug majestic[646]: ^[[1;33m[MI WRN ]: MI_AI_GetFrame[7286]: 
Oct 15 19:54:04 openipc-ssc337de user.debug majestic[646]: Current buf index[11917], recording buf index[11916].
Oct 15 19:54:04 openipc-ssc337de user.debug majestic[646]: ^[[0m
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: sp : c26f3cf0  ip : 00000000  fp : 04bc2000
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: r10: c26f3ea8  r9 : c26f3e40  r8 : c26f3e30
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: r7 : 00000000  r6 : 00000002  r5 : c26f3d1c  r4 : fd201600
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: r3 : 00000002  r2 : 000004bc  r1 : 88000013  r0 : 00000004
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment none
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: Control: 50c53c7d  Table: 22f20059  DAC: 00000051
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: Process RGN BUF WQ (pid: 694, stack limit = 0xc26f2210)
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: Stack: (0xc26f3cf0 to 0xc26f4000)
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3ce0:                                     00000001 00000278 00000000 c01ae701
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3d00: 00000000 c302ce40 88000193 00000278 00000280 00000278 00000280 00000002
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3d20: 0429a000 00000000 04bc2000 00000000 00007680 c01ae66d 00000000 00000001
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3d40: c26f3d0c 00000002 00000278 bf9ddbc5 00516c00 00000000 0000059d 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3d60: 1a40eb5a 00000000 00000000 c26f3db8 bfb34918 00000000 0429a000 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3d80: 00000030 00000030 00000000 00000000 00000000 00000000 00000000 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3da0: 0429a000 00000000 04bc2000 00000000 00000280 00000280 00000278 00000278
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3dc0: 00007680 00000000 00000000 00000000 c2710990 c27109d0 c26f3f20 c26f3f20
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3de0: c30e1ac8 c30e1ac8 00000000 bf9d2b3d c26f3e38 bfa52da1 c0010ba1 c0118417
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3e00: c03c08bc ffffffff 00000002 c0029f89 ffffffff c03c0c38 00000002 c2fe2000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3e20: ffffffff c03bd88c 00000000 c002a033 00000000 00300278 00000000 00300278
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3e40: 00000000 00000009 00000000 00000000 00000000 00000000 00300278 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3e60: 00000000 00000000 04bc2000 00000000 00000000 00000000 00000000 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3e80: 00000280 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3ea0: 00000000 00000000 00000000 00000009 00000000 00000000 00000000 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3ec0: 00300278 00000000 00000000 00000000 0429a000 00000000 00000000 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3ee0: 00000000 00000000 00000280 00000000 00000000 00000000 00000000 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3f00: 00000000 00000000 00000000 00000000 c2710980 c30e1ac0 bfa59a44 bfa52ea1
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3f20: c26f3f20 c26f3f20 c26d1cc0 c26f2000 00000000 00000000 bfa5305d 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3f40: 00000000 bfa5306b 00000000 c00293c3 a826f3f5 00000000 c30657c0 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3f60: 00000000 00000001 dead4ead ffffffff ffffffff c26f3f74 c26f3f74 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3f80: 00000001 dead4ead ffffffff ffffffff c26f3f90 c26f3f90 c26d1cc0 c002932d
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3fa0: 00000000 00000000 00000000 c000d041 00000000 00000000 00000000 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 f826f3ff 07d90c00
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: [<c01ad294>] (HalMoveDma_MoveData) from [<c01ae701>] (msys_dma_blit+0x79/0x98)
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: [<c01ae701>] (msys_dma_blit) from [<bf9ddbc5>] (MI_SYS_IMPL_BufBlitPa+0x3c0/0x418 [mi_sys])
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: [<bf9ddbc5>] (MI_SYS_IMPL_BufBlitPa [mi_sys]) from [<bf9d2b3d>] (mi_sys_BufBlitPa+0x6/0x8 [mi_sys])
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: [<bf9d2b3d>] (mi_sys_BufBlitPa [mi_sys]) from [<bfa52da1>] (_mi_rgn_drv_window_update+0xa74/0xc44 [mi_rgn])
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: [<bfa52da1>] (_mi_rgn_drv_window_update [mi_rgn]) from [<bfa52ea1>] (_mi_rgn_drv_window_update+0xb74/0xc44 [mi_rgn])
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: [<bfa52ea1>] (_mi_rgn_drv_window_update [mi_rgn]) from [<bfa5306b>] (_mi_rgn_drv_buf_work_thread+0xe/0x1c [mi_rgn])
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: [<bfa5306b>] (_mi_rgn_drv_buf_work_thread [mi_rgn]) from [<c00293c3>] (kthread+0x97/0xa8)
Oct 15 19:54:04 openipc-ssc337de kern.err kernel: [<c00293c3>] (kthread) from [<c000d041>] (ret_from_fork+0x11/0x30)
Oct 15 19:54:04 openipc-ssc337de kern.emerg kernel: Code: d176 6aae 2e00 d069 (6832) 2a01 
Oct 15 19:54:04 openipc-ssc337de kern.warn kernel: ---[ end trace ca70fe971f1da38e ]---
@flyrouter flyrouter added the low priority Not considered without funding label Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority Not considered without funding
Projects
None yet
Development

No branches or pull requests

2 participants