This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

"Division by zero in kernel" error in IPNC AV_SERVER

Hi all:

         I had tryed to update the AV_SERVER to match this request:

                    1). Capture number is 1.

                     2). Encode number may be 1, 2, or 3, all encode resolution are the same one.

                     3). Need enable the KTNF feature.

         when I try to reduce the numCaptureStream to 1, the "Division by zero in kernel"  will happened, I use the IPNC SDK V1.5.

         Any help would be appreciate!!!!

         Here is the detail for you reference:

  Check ID success!
APPRO Setting Applied
 CAPTURE: Create...DONE
VIDEO_swosdCreate(729): SWOSD_WINDOWS_MAX=7,SWOSD_WINDOWS_ID_MAX=3,SWOSD_WINDOWS_TEXT_0=3

string_patern= !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~


 DM365MM Init Successful AVSERVER MAIN: Create encodeTsk ...
 ENCODE: Recevied CMD = 0x0300
 ENCODE: Create...
Creat queue id:0
queue id:0
Rate Control Type: IVIDEO_NONERate Control Type: IVIDEO_NONE ALG: ImgEnc: XDM_GETBUFINFO: min in bufs:2 buf(0):122880 buf(1):61440
 AVSERVER MAIN: Create streamTsk ...
 STREAM: Recevied CMD = 0x0300
 STREAM: Create...
 STREAM: Ext 0: 320x240
 STREAM: Ext 1: 320x240
Creat queue id:32769
queue id:32769
Creat queue id:65538
queue id:65538
Creat queue id:98307
queue id:98307
Creat queue id:131076
queue id:131076
 STREAM: Create...DONE
 AVSERVER MAIN: Create fdTsk ...
 FD: Recevied CMD = 0x0300
 FD: Create...
FF: FF open

DavinciDisplay DavinciDisplay.1: Before finishing with S_FMT:
layer.pix_fmt.bytesperline = 736,
 layer.pix_fmt.width = 720,
 layer.pix_fmt.height = 480,
 layer.pix_fmt.sizeimage =529920


 FR : 0 usersDavinciDisplay DavinciDisplay.1: pixfmt->width = 720,
 layer->layer_info.config.line_length= 736
 registered from exsiting face album
FF: FF open done.

  AVSERVER MAIN: Create displayTsk ...
 DISPLAY: Recevied CMD = 0x0300
 DISPLAY: Create...
 FD: Create...DONE
 AVSERVER MAIN: Create aewbTsk ...
 2A: Recevied CMD = 0x0300
 2A: Create...
APPRO 2A Created
 DISPLAY: Create...DONE
EE SETUP SHIFT VALUE: 3
GBCE in EVAL MODE
 2A: Create...DONE
 AVSERVER MAIN: Create audioTsk ...
 AVSERVER MAIN: Create motionTsk ...
 MOTION: Recevied CMD = 0x0300
 MOTION: Create...
Creat queue id:163845
queue id:163845
 AVSERVER MAIN: Create swosdTsk ...
 MOTION: Create...DONE
 SWOSD: Recevied CMD = 0x0300
 AVSERVER MAIN: Allocing Buffers ...
 AVSERVER MAIN: Allocating buffers ...
 AVSERVER MAIN: Stream 0: Allocating LDC buffers: 0 of size 221312 bytes
 AVSERVER MAIN: Stream 0: Allocating VNF buffers: 0 of size 221312 bytes
 AVSERVER MAIN: Stream 0: Allocating Encode IN buffers: 3 of size 221312 bytes
 AVSERVER MAIN: Stream 0: Assigning Resize IN buffers: 0 of size 221312 bytes
 AVSERVER MAIN: Stream 0: Getting Capture OUT buffers
 AVSERVER MAIN: Stream 0: Capture OUT buffers 0
 AVSERVER MAIN: StrDivision by zero in kernel.
eam 0: Capture OUT buffers 1
 AVSERVER MAIN: Stream 0: Capture OUT buffers 2
 AVSERVER MAIN: Allocating FD buffers: 3 of size 184448 bytes
 AVSERVER MAIN: Assigning Display buffers: 3 of size 184448 bytes
 AVSERVER MAIN: Stream 0: Allocating Encrypt buffers: 0 of size 38912 bytes
 AVSERVER MAIN: Stream 0: Allocating Stream buffers: 3 of size 389Division by zero in kernel.
12 bytes
 AVSERVER MAIN: Stream 1: Allocating Encrypt buffers: 0 of size 38912 bytes
 AVSERVER MAIN: Stream 1: Allocating Stream buffers: 3 of size 38912 bytes
 AVSERVER MAIN: Stream 2: Allocating Encrypt buffers: 0 of size 77824 bytes
 AVSERVER MAIN: Stream 2: Allocating Stream buffers: 3 of size 77824 bytes
 AVSERVER MAIN: Allocating buffers .Division by zero in kernel.
..DONE
 AVSERVER MAIN: Start aewbTsk ...
 2A: Start...
 2A: Start...DONE
 AVSERVER MAIN: Start captureTsk ...
 CAPTURE: Start...