After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 672048 - SIGABRT after connect from xbox360
SIGABRT after connect from xbox360
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: general
0.13.x
Other Linux
: Normal major
: ---
Assigned To: rygel-maint
rygel-maint
Depends on:
Blocks:
 
 
Reported: 2012-03-14 12:59 UTC by lakostis
Modified: 2012-03-16 08:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
core: Do not abort on invalid indices (1.84 KB, patch)
2012-03-14 16:03 UTC, Jens Georg
committed Details | Review
core: Return 404 on missing thumbnail (2.49 KB, patch)
2012-03-15 07:57 UTC, Jens Georg
committed Details | Review
rygel-http-get.vala (7.30 KB, text/x-vala)
2012-03-15 09:07 UTC, lakostis
  Details

Description lakostis 2012-03-14 12:59:26 UTC
When I trying to share media from my linux box to xbox360, rygel abort execution just after beginning file browse:

(rygel:23463): Rygel-DEBUG: rygel-browse.vala:105: Fetching 1000 children of container '0' from index 0..                                                     
(rygel:23463): Rygel-DEBUG: rygel-browse.vala:112: Fetched 1000 children of container '0' from index 0.                                                       
(rygel:23463): Rygel-DEBUG: rygel-media-query-action.vala:176: searching for object 'Filesystem'..                                                            
(rygel:23463): Rygel-DEBUG: rygel-media-query-action.vala:183: object 'Filesystem' found.                                                                     
(rygel:23463): Rygel-DEBUG: rygel-browse.vala:105: Fetching 1000 children of container 'Filesystem' from index 0..                                            
(rygel:23463): Rygel-DEBUG: rygel-browse.vala:112: Fetched 1000 children of container 'Filesystem' from index 0.                                              
(rygel:23463): Rygel-DEBUG: rygel-media-query-action.vala:176: searching for object '12035d71c369dfa2f39983e2ce28c38b'..                                      
(rygel:23463): Rygel-DEBUG: rygel-media-query-action.vala:183: object '12035d71c369dfa2f39983e2ce28c38b' found.                                               
(rygel:23463): Rygel-DEBUG: rygel-browse.vala:105: Fetching 1000 children of container '12035d71c369dfa2f39983e2ce28c38b' from index 0..                      
(rygel:23463): Rygel-DEBUG: rygel-browse.vala:112: Fetched 1000 children of container '12035d71c369dfa2f39983e2ce28c38b' from index 0.                        
(rygel:23463): Rygel-DEBUG: rygel-dbus-thumbnailer.vala:82: Queueing thumbnail creation for 40 files                                                          
(rygel:23463): Rygel-DEBUG: rygel-http-server.vala:148: HTTP GET request for URI 'http://192.168.1.100:33061/MediaExport/i/NzkxMDcyNzhhMGVlZTRjOWNiNmM1ZDViOTIyYWZlYzg=.avi?albumArt=true'. Headers:                                                                                                                        
(rygel:23463): Rygel-DEBUG: rygel-http-server.vala:152: User-Agent : Xbox Live Client/2.0.14719.0                                                             
(rygel:23463): Rygel-DEBUG: rygel-http-server.vala:152: Connection : Keep-alive                                                                               
(rygel:23463): Rygel-DEBUG: rygel-http-server.vala:152: Host : 192.168.1.100:33061                                                                            
(rygel:23463): Rygel-DEBUG: rygel-http-server.vala:148: HTTP GET request for URI 'http://192.168.1.100:33061/MediaExport/i/MDhjYjMxNDc1YTg5OWJhNTlkNWE2ZGMxYWE4YTFmNmM=.avi?albumArt=true'. Headers:                                                                                                                        
(rygel:23463): Rygel-DEBUG: rygel-http-server.vala:152: User-Agent : Xbox Live Client/2.0.14719.0                                                             
(rygel:23463): Rygel-DEBUG: rygel-http-server.vala:152: Connection : Keep-alive                                                                               
(rygel:23463): Rygel-DEBUG: rygel-http-server.vala:152: Host : 192.168.1.100:33061                                                                            
**                                                                                                                                                            
ERROR:arraylist.c:518:gee_array_list_real_get: assertion failed: (_tmp1_ < _tmp2_)                                                                            
                                                                                                                                                              
Program received signal SIGABRT, Aborted.                                                                                                                     
0xb78a3a97 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64                                                                                     
64        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);                                                                                               
(gdb) bt                                                                                                                                                      
  • #0 raise
    at ../nptl/sysdeps/unix/sysv/linux/raise.c line 64
  • #1 abort
    at abort.c line 92
  • #2 g_assertion_message
    at gtestutils.c line 1425
  • #3 g_assertion_message_expr
    at gtestutils.c line 1436
  • #4 gee_array_list_real_get
    at arraylist.c line 518
  • #5 gee_abstract_list_get
    at abstractlist.c line 318
  • #6 rygel_http_get_real_find_item_co
    at rygel-http-get.c line 1060
  • #7 g_simple_async_result_complete
    at gsimpleasyncresult.c line 749
  • #8 rygel_http_request_real_find_item_co
    at rygel-http-request.c line 603
  • #9 g_simple_async_result_complete
    at gsimpleasyncresult.c line 749
  • #10 rygel_media_export_root_container_real_find_object_co
    at rygel-media-export-root-container.c line 742
  • #11 g_simple_async_result_complete
    at gsimpleasyncresult.c line 749
  • #12 complete_in_idle_cb
    at gsimpleasyncresult.c line 761
  • #13 g_idle_dispatch
    at gmain.c line 4801
  • #14 g_main_dispatch
    at gmain.c line 2441
  • #15 g_main_context_dispatch
    at gmain.c line 3011
  • #16 g_main_context_iterate
    at gmain.c line 3089
  • #17 g_main_loop_run
    at gmain.c line 3297
  • #18 rygel_main_run
    at rygel-main.c line 439
  • #19 rygel_main_main
    at rygel-main.c line 1232
  • #20 main
    at rygel-main.c line 1265

Rygel version: rygel-0.13.3

browsing/playing from other clients like BubbleUPNP or UPNPlay from Android phone is okay.
Comment 1 Jens Georg 2012-03-14 15:24:45 UTC
I suppose this is browsing for videos?
Comment 2 Jens Georg 2012-03-14 16:02:54 UTC
Yes it was.
Comment 3 Jens Georg 2012-03-14 16:03:18 UTC
Created attachment 209746 [details] [review]
core: Do not abort on invalid indices

Check if the thumbnail or subtitle a client requestes actually exists.
Otherwise libgee just aborts.
Comment 4 Jens Georg 2012-03-14 16:03:47 UTC
Attachment 209746 [details] pushed as 2a0a4b7 - core: Do not abort on invalid indices
Comment 5 lakostis 2012-03-14 21:43:58 UTC
It doesn't help - I got same error again:

(rygel:10391): Rygel-DEBUG: rygel-browse.vala:105: Fetching 1000 children of container '0' from index 0..
(rygel:10391): Rygel-DEBUG: rygel-browse.vala:112: Fetched 1000 children of container '0' from index 0.
(rygel:10391): Rygel-DEBUG: rygel-media-query-action.vala:176: searching for object 'Filesystem'..
(rygel:10391): Rygel-DEBUG: rygel-media-query-action.vala:183: object 'Filesystem' found.
(rygel:10391): Rygel-DEBUG: rygel-browse.vala:105: Fetching 1000 children of container 'Filesystem' from index 0..
(rygel:10391): Rygel-DEBUG: rygel-browse.vala:112: Fetched 1000 children of container 'Filesystem' from index 0.
(rygel:10391): Rygel-DEBUG: rygel-media-query-action.vala:176: searching for object '12035d71c369dfa2f39983e2ce28c38b'..
(rygel:10391): Rygel-DEBUG: rygel-media-query-action.vala:183: object '12035d71c369dfa2f39983e2ce28c38b' found.
(rygel:10391): Rygel-DEBUG: rygel-browse.vala:105: Fetching 1000 children of container '12035d71c369dfa2f39983e2ce28c38b' from index 0..
(rygel:10391): Rygel-DEBUG: rygel-browse.vala:112: Fetched 1000 children of container '12035d71c369dfa2f39983e2ce28c38b' from index 0.
(rygel:10391): Rygel-DEBUG: rygel-dbus-thumbnailer.vala:82: Queueing thumbnail creation for 40 files
(rygel:10391): Rygel-DEBUG: rygel-http-server.vala:148: HTTP GET request for URI 'http://192.168.1.100:39638/MediaExport/i/NzkxMDcyNzhhMGVlZTRjOWNiNmM1ZDViOTIyYWZlYzg=.avi?albumArt=true'. Headers:
(rygel:10391): Rygel-DEBUG: rygel-http-server.vala:152: User-Agent : Xbox Live Client/2.0.14719.0
(rygel:10391): Rygel-DEBUG: rygel-http-server.vala:152: Connection : Keep-alive
(rygel:10391): Rygel-DEBUG: rygel-http-server.vala:152: Host : 192.168.1.100:39638
(rygel:10391): Rygel-DEBUG: rygel-http-server.vala:148: HTTP GET request for URI 'http://192.168.1.100:39638/MediaExport/i/MDhjYjMxNDc1YTg5OWJhNTlkNWE2ZGMxYWE4YTFmNmM=.avi?albumArt=true'. Headers:
(rygel:10391): Rygel-DEBUG: rygel-http-server.vala:152: User-Agent : Xbox Live Client/2.0.14719.0
(rygel:10391): Rygel-DEBUG: rygel-http-server.vala:152: Connection : Keep-alive
(rygel:10391): Rygel-DEBUG: rygel-http-server.vala:152: Host : 192.168.1.100:39638
**
ERROR:arraylist.c:518:gee_array_list_real_get: assertion failed: (_tmp1_ < _tmp2_)
Comment 6 lakostis 2012-03-14 21:45:02 UTC
$ git describe upstream
RYGEL_0_13_3-5-g2a0a4b7
Comment 7 Jens Georg 2012-03-15 07:45:21 UTC
can you attach rygel-http-get.c ?
Comment 8 Jens Georg 2012-03-15 07:57:29 UTC
Created attachment 209806 [details] [review]
core: Return 404 on missing thumbnail
Comment 9 lakostis 2012-03-15 09:07:10 UTC
Created attachment 209809 [details]
rygel-http-get.vala
Comment 10 lakostis 2012-03-15 09:26:46 UTC
Last patch helps at least this error doesn't occur any more. Thanks!
Comment 11 Jens Georg 2012-03-16 08:22:01 UTC
(In reply to comment #10)
> Last patch helps at least this error doesn't occur any more. Thanks!

Ok. First patch worked for me but had the issue that it returned the video file instead of saying 404.
Comment 12 Jens Georg 2012-03-16 08:22:59 UTC
Attachment 209806 [details] pushed as 1e3b36d - core: Return 404 on missing thumbnail