vlc-android play http video crash

*nix specific usage questions
playing
Blank Cone
Blank Cone
Posts: 36
Joined: 16 Mar 2011 10:18

vlc-android play http video crash

Postby playing » 20 Apr 2011 17:20

i trace it
it crash in src/network/tcp.c net_Connect function when call poll

do
/* NOTE: timeout screwed up if we catch a signal (EINTR) */
val = poll (ufd, sizeof (ufd) / sizeof (ufd[0]), timeout);
while ((val == -1) && (net_errno == EINTR));

i add a poll function into tcp.c, and comment //# include <poll.h>

and then it crash at modules/access/http.c Request when call

net_Printf( p_access, p_sys->fd, pvs,
"GET %s HTTP/1.%d\r\nHost: %s\r\n",
psz_path, p_sys->i_version, p_sys->url.psz_host );


here is log :
04-20 06:33:16.702: VERBOSE/LibVLC(548): Reading http://forum.ea3w.com/coll_ea3w/attach/ ... 832415.3gp
04-20 06:33:16.763: DEBUG/vlc(548): [0x313c04] main input debug: Creating an input for 'http://forum.ea3w.com/coll_ea3w/attach/ ... 832415.3gp'
04-20 06:33:16.832: DEBUG/vlc(548): [0x313c04] main input debug: thread started
04-20 06:33:16.832: DEBUG/vlc(548): [0x313c04] main input debug: using timeshift granularity of 50 MiB
04-20 06:33:16.832: DEBUG/vlc(548): [0x313c04] main input debug: using timeshift path '/tmp'
04-20 06:33:16.852: DEBUG/vlc(548): [0x313c04] main input debug: `http://forum.ea3w.com/coll_ea3w/attach/ ... 832415.3gp' gives access `http' demux `' path `forum.ea3w.com/coll_ea3w/attach/2008_10/12237832415.3gp'
04-20 06:33:16.852: DEBUG/vlc(548): [0x313c04] main input debug: creating demux: access='http' demux='' location='forum.ea3w.com/coll_ea3w/attach/2008_10/12237832415.3gp' file='(null)'
04-20 06:33:16.892: DEBUG/vlc(548): [0x31b624] main demux debug: looking for access_demux module: 0 candidates
04-20 06:33:16.892: DEBUG/vlc(548): [0x31b624] main demux debug: no access_demux module matched "http"
04-20 06:33:16.911: DEBUG/vlc(548): [0x31b624] main demux debug: TIMER module_need() : 18.531 ms - Total 18.531 ms / 1 intvls (Avg 18.531 ms)
04-20 06:33:16.961: DEBUG/vlc(548): [0x313c04] main input debug: creating access 'http' location='forum.ea3w.com/coll_ea3w/attach/2008_10/12237832415.3gp', path='(null)'
04-20 06:33:17.021: DEBUG/vlc(548): [0x2fb574] main access debug: looking for access module: 2 candidates
04-20 06:33:17.021: DEBUG/vlc(548): [0x2fb574] access_http access debug: http: server='forum.ea3w.com' port=80 file='/coll_ea3w/attach/2008_10/12237832415.3gp'
04-20 06:33:17.052: DEBUG/vlc(548): [0x2fb574] main access debug: net: connecting to forum.ea3w.com port 80
04-20 06:33:17.232: DEBUG/vlc(548): [0x2fb574] main access debug: connection succeeded (socket = 35)
04-20 06:33:17.351: INFO/DEBUG(31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-20 06:33:17.361: INFO/DEBUG(31): Build fingerprint: 'generic/sdk/generic/:2.2/FRF91/43546:eng/test-keys'
04-20 06:33:17.421: INFO/DEBUG(31): pid: 548, tid: 563 >>> vlc.android <<<
04-20 06:33:17.421: INFO/DEBUG(31): signal 11 (SIGSEGV), fault addr 37eb946c
04-20 06:33:17.453: INFO/DEBUG(31): r0 00000001 r1 00000200 r2 4797c988 r3 00000010
04-20 06:33:17.453: INFO/DEBUG(31): r4 00000023 r5 4797c980 r6 00000001 r7 00000001
04-20 06:33:17.462: INFO/DEBUG(31): r8 829e5d29 r9 4797c950 10 37eb94f4 fp ffffffff
04-20 06:33:17.462: INFO/DEBUG(31): ip f053cba4 sp 4797c7b0 lr 822c47a4 pc 822c4658 cpsr 60000010
04-20 06:33:19.481: INFO/DEBUG(31): #00 pc 002c4658 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.481: INFO/DEBUG(31): #01 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.491: INFO/DEBUG(31): #02 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.521: INFO/DEBUG(31): #03 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.521: INFO/DEBUG(31): #04 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.541: INFO/DEBUG(31): #05 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.541: INFO/DEBUG(31): #06 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.573: INFO/DEBUG(31): #07 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.573: INFO/DEBUG(31): #08 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.602: INFO/DEBUG(31): #09 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.602: INFO/DEBUG(31): #10 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.622: INFO/DEBUG(31): #11 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.622: INFO/DEBUG(31): #12 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.662: INFO/DEBUG(31): #13 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.662: INFO/DEBUG(31): #14 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.702: DEBUG/dalvikvm(66): GC_EXPLICIT freed 496 objects / 22384 bytes in 414ms
04-20 06:33:19.722: INFO/DEBUG(31): #15 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.722: INFO/DEBUG(31): #16 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.722: INFO/DEBUG(31): #17 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.732: INFO/DEBUG(31): #18 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.752: INFO/DEBUG(31): #19 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.752: INFO/DEBUG(31): #20 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.792: INFO/DEBUG(31): #21 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.792: INFO/DEBUG(31): #22 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.812: INFO/DEBUG(31): #23 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.812: INFO/DEBUG(31): #24 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.842: INFO/DEBUG(31): #25 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.842: INFO/DEBUG(31): #26 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.871: INFO/DEBUG(31): #27 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.871: INFO/DEBUG(31): #28 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.891: INFO/DEBUG(31): #29 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.891: INFO/DEBUG(31): #30 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.932: INFO/DEBUG(31): #31 pc 002c47a0 /data/data/vlc.android/lib/libvlcjni.so
04-20 06:33:19.932: INFO/DEBUG(31): code around pc:
04-20 06:33:19.941: INFO/DEBUG(31): 822c4638 e1a0c2c8 13811008 e28d9e1a e1a0c10c
04-20 06:33:19.941: INFO/DEBUG(31): 822c4648 11c210b6 e089a00c e208101f e1a01117
04-20 06:33:19.951: INFO/DEBUG(31): 822c4658 e51aa088 e0852003 e3a09000 e111000a
04-20 06:33:19.962: INFO/DEBUG(31): 822c4668 e2866001 e1c290b6 0affffb8 e3a0a001
04-20 06:33:19.962: INFO/DEBUG(31): 822c4678 e28d9e1a e1c2a0b6 e089a00c e51aa108
04-20 06:33:19.974: INFO/DEBUG(31): code around lr:
04-20 06:33:19.974: INFO/DEBUG(31): 822c4784 eaffff59 e3a0c000 e59d1014 e59d200c
04-20 06:33:19.981: INFO/DEBUG(31): 822c4794 e59d3010 e2840001 e58dc000 ebf6e61d
04-20 06:33:19.991: INFO/DEBUG(31): 822c47a4 eaffff39 000003ff 10624dd3 e92d4ff0
04-20 06:33:19.991: INFO/DEBUG(31): 822c47b4 e28db020 e24dd014 e1a04001 e50b002c
04-20 06:33:20.001: INFO/DEBUG(31): 822c47c4 eb0073cf e3540000 e1a05000 0a00019a
04-20 06:33:20.001: INFO/DEBUG(31): stack:
04-20 06:33:20.031: INFO/DEBUG(31): 4797c770 00000000
04-20 06:33:20.031: INFO/DEBUG(31): 4797c774 00000000
04-20 06:33:20.031: INFO/DEBUG(31): 4797c778 00000000
04-20 06:33:20.031: INFO/DEBUG(31): 4797c77c 00000000
04-20 06:33:20.042: INFO/DEBUG(31): 4797c780 00000000
04-20 06:33:20.042: INFO/DEBUG(31): 4797c784 4797c724
04-20 06:33:20.042: INFO/DEBUG(31): 4797c788 00000000
04-20 06:33:20.042: INFO/DEBUG(31): 4797c78c 00000000
04-20 06:33:20.051: INFO/DEBUG(31): 4797c790 00000000
04-20 06:33:20.051: INFO/DEBUG(31): 4797c794 00000000
04-20 06:33:20.063: INFO/DEBUG(31): 4797c798 4797c7c8
04-20 06:33:20.063: INFO/DEBUG(31): 4797c79c 00000000
04-20 06:33:20.071: INFO/DEBUG(31): 4797c7a0 00000023
04-20 06:33:20.071: INFO/DEBUG(31): 4797c7a4 4797c980
04-20 06:33:20.071: INFO/DEBUG(31): 4797c7a8 df002777
04-20 06:33:20.081: INFO/DEBUG(31): 4797c7ac e3a070ad
04-20 06:33:20.081: INFO/DEBUG(31): #01 4797c7b0 00000000
04-20 06:33:20.081: INFO/DEBUG(31): 4797c7b4 00000000
04-20 06:33:20.091: INFO/DEBUG(31): 4797c7b8 00000000
04-20 06:33:20.091: INFO/DEBUG(31): 4797c7bc 4797c848
04-20 06:33:20.111: INFO/DEBUG(31): 4797c7c0 4797c7c8
04-20 06:33:20.111: INFO/DEBUG(31): 4797c7c4 4797c8c8
04-20 06:33:20.111: INFO/DEBUG(31): 4797c7c8 00000000
04-20 06:33:20.111: INFO/DEBUG(31): 4797c7cc 00000000
04-20 06:33:20.111: INFO/DEBUG(31): 4797c7d0 00000000
04-20 06:33:20.123: INFO/DEBUG(31): 4797c7d4 00000000
04-20 06:33:20.123: INFO/DEBUG(31): 4797c7d8 00000000
04-20 06:33:20.131: INFO/DEBUG(31): 4797c7dc 00000000
04-20 06:33:20.131: INFO/DEBUG(31): 4797c7e0 00000000
04-20 06:33:20.141: INFO/DEBUG(31): 4797c7e4 00000000
04-20 06:33:20.141: INFO/DEBUG(31): 4797c7e8 00000000
04-20 06:33:20.151: INFO/DEBUG(31): 4797c7ec 00000000
04-20 06:33:20.151: INFO/DEBUG(31): 4797c7f0 00000000
04-20 06:33:20.151: INFO/DEBUG(31): 4797c7f4 00000000
04-20 06:33:21.771: DEBUG/Zygote(33): Process 548 terminated by signal (11)
04-20 06:33:21.802: INFO/ActivityManager(66): Process vlc.android (pid 548) has died.

anyone know how to fix?

playing
Blank Cone
Blank Cone
Posts: 36
Joined: 16 Mar 2011 10:18

Re: vlc-android play http video crash

Postby playing » 21 Apr 2011 05:30

in net_Printf it call net_Write function
and net_Write call poll again
if (poll (ufd, sizeof (ufd) / sizeof (ufd[0]), -1) == -1)

playing
Blank Cone
Blank Cone
Posts: 36
Joined: 16 Mar 2011 10:18

Re: vlc-android play http video crash

Postby playing » 22 Apr 2011 14:50

i replace poll to ffmpeg 's poll function , and it don't crash , but can't play also

log:
04-22 09:27:30.704: WARN/vlc(503): [0x31a39c] ps demux warning: found sync code
04-22 09:27:30.704: DEBUG/vlc(503): [0x3123b4] main input debug: selecting program id=0
04-22 09:27:30.713: DEBUG/vlc(503): [0x31a39c] ps demux debug: es id=0xf0 format unknown
04-22 09:27:30.713: DEBUG/vlc(503): [0x3228d4] main decoder debug: looking for decoder module: 26 candidates
04-22 09:27:30.884: DEBUG/vlc(503): [0x3228d4] avcodec decoder debug: libavcodec initialized (interface 0x346c00)
04-22 09:27:30.984: DEBUG/vlc(503): [0x3228d4] avcodec decoder debug: trying to use direct rendering
04-22 09:27:31.024: DEBUG/vlc(503): [0x3228d4] avcodec decoder debug: ffmpeg codec (MPEG-1/2 Video) started
04-22 09:27:31.024: DEBUG/vlc(503): [0x3228d4] main decoder debug: using decoder module "avcodec"
04-22 09:27:31.024: DEBUG/vlc(503): [0x3228d4] main decoder debug: TIMER module_need() : 306.919 ms - Total 306.919 ms / 1 intvls (Avg 306.919 ms)
04-22 09:27:31.024: DEBUG/vlc(503): [0x3234b4] main packetizer debug: looking for packetizer module: 21 candidates
04-22 09:27:31.074: DEBUG/vlc(503): [0x3234b4] main packetizer debug: using packetizer module "packetizer_mpegvideo"
04-22 09:27:31.084: DEBUG/vlc(503): [0x3234b4] main packetizer debug: TIMER module_need() : 48.375 ms - Total 48.375 ms / 1 intvls (Avg 48.375 ms)
04-22 09:27:31.114: DEBUG/vlc(503): [0x3228d4] main decoder debug: thread started
04-22 09:27:31.124: DEBUG/vlc(503): [0x31a39c] ps demux debug: es id=0xf1 format unknown
04-22 09:27:31.124: DEBUG/vlc(503): [0x31a39c] ps demux debug: es id=0xf5 format unknown
04-22 09:27:31.124: DEBUG/vlc(503): [0x31a39c] ps demux debug: es id=0xf3 format unknown
04-22 09:27:31.124: DEBUG/vlc(503): [0x31a39c] ps demux debug: es id=0xfb format unknown
04-22 09:27:31.124: WARN/vlc(503): [0x31a39c] ps demux warning: garbage at input, trying to resync...
04-22 09:27:31.304: WARN/vlc(503): [0x31a39c] ps demux warning: found sync code
04-22 09:27:31.324: DEBUG/vlc(503): [0x327124] main decoder debug: looking for decoder module: 26 candidates
04-22 09:27:31.355: DEBUG/vlc(503): [0x327124] avcodec decoder debug: libavcodec already initialized
04-22 09:27:31.364: DEBUG/vlc(503): [0x327124] avcodec decoder debug: trying to use direct rendering
04-22 09:27:31.364: DEBUG/vlc(503): [0x327124] avcodec decoder debug: ffmpeg codec (MPEG-1/2 Video) started
04-22 09:27:31.374: DEBUG/vlc(503): [0x327124] main decoder debug: using decoder module "avcodec"
04-22 09:27:31.404: DEBUG/vlc(503): [0x327124] main decoder debug: TIMER module_need() : 96.666 ms - Total 96.666 ms / 1 intvls (Avg 96.666 ms)
04-22 09:27:31.404: DEBUG/vlc(503): [0x3352cc] main packetizer debug: looking for packetizer module: 21 candidates
04-22 09:27:31.404: DEBUG/vlc(503): [0x3352cc] main packetizer debug: using packetizer module "packetizer_mpegvideo"
04-22 09:27:31.404: DEBUG/vlc(503): [0x3352cc] main packetizer debug: TIMER module_need() : 3.457 ms - Total 3.457 ms / 1 intvls (Avg 3.457 ms)
04-22 09:27:31.444: DEBUG/vlc(503): [0x327124] main decoder debug: thread started
04-22 09:27:31.444: DEBUG/vlc(503): [0x3123b4] main input debug: EOF reached
04-22 09:27:31.454: DEBUG/vlc(503): [0x3228d4] main decoder debug: removing module "avcodec"
04-22 09:27:31.454: DEBUG/vlc(503): [0x3228d4] avcodec decoder debug: ffmpeg codec (MPEG-1/2 Video) stopped
04-22 09:27:31.454: DEBUG/vlc(503): [0x3228d4] main decoder debug: killing decoder fourcc `mpgv', 0 PES in FIFO
04-22 09:27:31.454: DEBUG/vlc(503): [0x3234b4] main packetizer debug: removing module "packetizer_mpegvideo"
04-22 09:27:31.475: DEBUG/vlc(503): [0x327124] main decoder debug: removing module "avcodec"
04-22 09:27:31.475: DEBUG/vlc(503): [0x327124] avcodec decoder debug: ffmpeg codec (MPEG-1/2 Video) stopped
04-22 09:27:31.475: DEBUG/vlc(503): [0x327124] main decoder debug: killing decoder fourcc `mpgv', 1 PES in FIFO
04-22 09:27:31.475: DEBUG/vlc(503): [0x3352cc] main packetizer debug: removing module "packetizer_mpegvideo"
04-22 09:27:31.494: DEBUG/vlc(503): [0x31a39c] main demux debug: removing module "ps"
04-22 09:27:31.514: DEBUG/vlc(503): [0x3123b4] main input debug: Program doesn't contain anymore ES
04-22 09:27:31.514: DEBUG/vlc(503): [0x31a1d4] main stream debug: removing module "stream_filter_record"
04-22 09:27:31.534: DEBUG/vlc(503): [0x2f9f74] main access debug: removing module "access_http"
04-22 09:27:31.544: DEBUG/dalvikvm(281): GC_EXPLICIT freed 881 objects / 58784 bytes in 8300ms
04-22 09:27:31.554: DEBUG/vlc(503): [0x2f9f74] main access debug: waitpipe: object killed
04-22 09:27:31.554: DEBUG/vlc(503): [0x3123b4] main input debug: thread ended
04-22 09:30:05.643: DEBUG/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol

playing
Blank Cone
Blank Cone
Posts: 36
Joined: 16 Mar 2011 10:18

Re: vlc-android play http video crash

Postby playing » 25 Apr 2011 15:50

the problem have solved


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 47 guests