I have been experiencing crashes with y4mstabiliser for a while now.
even with a proper pipe and mjpegtools.
Cheers
E

Hervé wrote:
(update)
hello, I'm not developper but it could not be a buffer concern? (it's  
just an idea)

uname -a
Darwin MacMini-2.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31  
22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386

tests with the official release 190 (and not an RC nor recent CVS)
CL = … | /y4mstabilizer -v -v

---------

commun parts to all tests (PS: I tried with y4mscaler or ppmtoy4m or  
ffmpeg, same results with all 444 converters):

[...]
    INFO: [ppmtoy4m] Output Stream parameters:
[...]
    INFO: [ppmtoy4m]         chroma:  4:4:4 (no subsampling)
    INFO: [ppmtoy4m]     frame rate:  25/1 fps (~25.000000)
    INFO: [ppmtoy4m]      interlace:  none/progressive
    INFO: [ppmtoy4m]   sample aspect ratio:  1:1
[...]
    INFO: [y4mstabilizer]       chroma:  4:4:4 (no subsampling)
[...]
    INFO: [y4mstabilizer]    interlace:  none/progressive
    INFO: [y4mstabilizer] sample aspect ratio:  1:1
    INFO: [y4mstabilizer] Frame 1
    INFO: [y4mstabilizer] global motion xy*2=<0,2> Accumulated  
xy=<0,1> shift xy=0,-1>
[...]


---------

test one: an HD file (720p)
crashed immediately:
    INFO: [y4mstabilizer]   frame size:  1280x720 pixels (2764800 bytes)
    INFO: [y4mstabilizer]       chroma:  4:4:4 (no subsampling)
    INFO: [y4mstabilizer]   frame rate:  25/1 fps (~25.000000)
    INFO: [y4mstabilizer]    interlace:  none/progressive
no outputed frame

---------

test two: the same HD file (720p) but I rescaled it (720x576) before  
sending it to y4mscaler

    INFO: [y4mstabilizer]   frame size:  720x576 pixels (1244160 bytes)
    INFO: [y4mstabilizer]       chroma:  4:4:4 (no subsampling)
    INFO: [y4mstabilizer]   frame rate:  25/1 fps (~25.000000)
    INFO: [y4mstabilizer]    interlace:  none/progressive
    INFO: [y4mstabilizer] sample aspect ratio:  1:1
    INFO: [y4mstabilizer] Frame 1
    INFO: [y4mstabilizer] global motion xy*2=<0,2> Accumulated  
xy=<0,1> shift xy=0,-1>

    INFO: [y4mstabilizer] Frame 2
    INFO: [y4mstabilizer] global motion xy*2=<0,0> Accumulated  
xy=<0,0.95> shift xy=0,-1>
[...]
    INFO: [y4mstabilizer] Frame 265
    INFO: [y4mstabilizer] global motion xy*2=<0,-5> Accumulated  
xy=<-1.45501,-19.4269> shift xy=1,19>

    INFO: [y4mstabilizer] Frame 266
(crashed)

---------

test 3: the same HD file (720p) but I rescaled it (320*240) before  
sending it to y4mscaler

    INFO: [y4mstabilizer]   frame size:  320x240 pixels (230400 bytes)
    INFO: [y4mstabilizer]       chroma:  4:4:4 (no subsampling)
    INFO: [y4mstabilizer]   frame rate:  25/1 fps (~25.000000)
    INFO: [y4mstabilizer]    interlace:  none/progressive
    INFO: [y4mstabilizer] sample aspect ratio:  1:1
    INFO: [y4mstabilizer] Frame 1
    INFO: [y4mstabilizer] global motion xy*2=<0,1> Accumulated  
xy=<0,0.5> shift xy=0,-1>
[...]
    INFO: [y4mstabilizer] Frame 1415
    INFO: [y4mstabilizer] global motion xy*2=<0,-20> Accumulated  
xy=<3.60354,36.8782> shift xy=-4,-37>

    INFO: [y4mstabilizer] Frame 1416
(crashed)

---------

test 4: the same HD file (720p) but I rescaled it (160*120) before  
sending it to y4mscaler

    INFO: [y4mstabilizer]   frame size:  160x120 pixels (57600 bytes)
[...]
    INFO: [y4mstabilizer] Frame 1
    INFO: [y4mstabilizer] global motion xy*2=<0,0> Accumulated  
xy=<0,0> shift xy=0,0>
[...]
    INFO: [y4mstabilizer] Frame 1421
    INFO: [y4mstabilizer] global motion xy*2=<-1,-8> Accumulated  
xy=<-0.721807,-10.8797> shift xy=1,11>

    INFO: [y4mstabilizer] Frame 1422
(and crash)

---------

so,
littler size, more frames …seems that size matters (spam joke ;-))

---------

crash log:

Process:         y4mstabilizer [65490]
Path:            /Users/herve/_Tools/_CVS/_MjpegTools/mjpegtools/ 
mjpegtools-1.9.0release_BIN/intel_Tiger-2009:02:20-25/y4mstabilizer
Identifier:      y4mstabilizer
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  bash [65469]

Interval Since Last Report:          1056 sec
Crashes Since Last Report:           10
Per-App Interval Since Last Report:  0 sec
Per-App Crashes Since Last Report:   10

Date/Time:       2009-06-03 15:29:00.352 +0200
OS Version:      Mac OS X 10.5.7 (9J61)
Report Version:  6
Anonymous UUID:  8CDFC8BB-54FD-4F31-AF37-8EEF871D4795

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000000fd000
Crashed Thread:  0

Thread 0 Crashed:
0   y4mstabilizer                 	0x000017c7 subsample + 75  
(y4mstabilizer.c:396)
1   y4mstabilizer                 	0x0000480b main + 1214  
(y4mstabilizer.c:215)
2   y4mstabilizer                 	0x0000175e _start + 216
3   y4mstabilizer                 	0x00001685 start + 41

Thread 0 crashed with X86 Thread State (32-bit):
   eax: 0x003fa680  ebx: 0x0000435e  ecx: 0x00000500  edx: 0x00000063
   edi: 0x000fd000  esi: 0x003fa400  ebp: 0xbffff318  esp: 0xbffff2f4
    ss: 0x0000001f  efl: 0x00010202  eip: 0x000017c7   cs: 0x00000017
    ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
   cr2: 0x000fd000

Binary Images:
     0x1000 -     0x8fff +y4mstabilizer ??? (???) /Users/herve/_Tools/ 
_CVS/_MjpegTools/mjpegtools/mjpegtools-1.9.0release_BIN/ 
intel_Tiger-2009:02:20-25/y4mstabilizer
0x8fe00000 - 0x8fe2db43  dyld 97.1 (???)  
<b0ea42e222a36a182e4ea30c3d71ce68> /usr/lib/dyld
0x92032000 - 0x92199ff3  libSystem.B.dylib ??? (???)  
<b47c8e6e45aef620730710a732bf1930> /usr/lib/libSystem.B.dylib
0x9278e000 - 0x92792fff  libmathCommon.A.dylib ??? (???) /usr/lib/ 
system/libmathCommon.A.dylib
0xffff0000 - 0xffff1780  libSystem.B.dylib ??? (???) /usr/lib/ 
libSystem.B.dylib




bye
PS: result is great, congratulations to its developper :-)



Le 3 juin 09 à 03:17, Richard Archer a écrit :

  
  INFO: [y4mstabilizer] global motion xy*2=<0,1> Accumulated  
xy=<0,0.5> shift xy=0,-1>

  INFO: [y4mstabilizer] Frame 2
  INFO: [y4mstabilizer] global motion xy*2=<0,0> Accumulated  
xy=<0,0.475> shift xy=0,0>

  INFO: [y4mstabilizer] Frame 3
  INFO: [y4mstabilizer] global motion xy*2=<1,-2> Accumulated  
xy=<0.5,-0.54875> shift xy=-1,1>

  INFO: [y4mstabilizer] Frame 4
Segmentation fault (core dumped)

$ ls
core.6857
test.m2v
test.ac3

$ gdb
GNU gdb Red Hat Linux (6.5-37.el5rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and  
you are
welcome to change it and/or distribute copies of it under certain  
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for  
details.
This GDB was configured as "x86_64-redhat-linux-gnu".
(gdb) file /usr/bin/y4mstabilizer
Reading symbols from /usr/bin/y4mstabilizer...Reading symbols from / 
usr/lib/debug/usr/bin/y4mstabilizer.debug...(no debugging symbols  
found)...done.
Using host libthread_db library "/lib64/libthread_db.so.1".
(no debugging symbols found)...done.
(gdb) core core.6857
Reading symbols from /usr/lib64/libmjpegutils-1.9.so.0...Reading  
symbols from /usr/lib/debug/usr/lib64/libmjpegutils-1.9.so. 
0.0.0.debug...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libmjpegutils-1.9.so.0
Reading symbols from /lib64/libm.so.6...(no debugging symbols  
found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols  
found)...done.
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libc.so.6...
(no debugging symbols found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging  
symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `y4mstabilizer -v -v'.
Program terminated with signal 11, Segmentation fault.
#0  0x00000000004027a4 in calc_SAD_noaccel ()
(gdb) bt
#0  0x00000000004027a4 in calc_SAD_noaccel ()
#1  0x0000000000402602 in motion ()
#2  0x0000000000402378 in gmotion ()
#3  0x0000000000401935 in main ()
#4  0x000000345281d8b4 in __libc_start_main () from /lib64/libc.so.6
#5  0x0000000000401139 in _start ()
(gdb)


And there ends my ability to debug this problem :(

I'm happy to follow instructions to help isolate the bug and
to apply patches and rebuild to test a solution.

Thank you!

...Richard.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the  
latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

    

Hervé

øº°`°ºø,¸¸,øº°`°ºø,¸¸,øº°`°ºø,¸¸,øº°`°ºø,¸¸,øº°`°ºø

ALLEZ FAIRE UN TOUR SUR
http://herve.flores.online.fr
http://movieconverter.online.fr

Hervé & Virginie Flores
Illustrateurs-graphistes
27, avenue Germaine - 06800 - Cagnes-sur-Mer
tel ou fax : 04 92 02 89 36
e-mail : herve.flo...@free.fr

øº°`°ºø,¸¸,øº°`°ºø,¸¸,øº°`°ºø,¸¸,øº°`°ºø,¸¸,øº°`°ºø


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

  
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to