From owner-freebsd-multimedia@FreeBSD.ORG Sun Oct 16 18:22:56 2011 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC1BE106564A; Sun, 16 Oct 2011 18:22:56 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 5E8078FC0A; Sun, 16 Oct 2011 18:22:56 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id A0E481E00229; Sun, 16 Oct 2011 20:22:54 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p9GILHXC006449; Sun, 16 Oct 2011 20:21:17 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p9GILGJj006448; Sun, 16 Oct 2011 20:21:16 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sun, 16 Oct 2011 20:21:16 +0200 To: Juergen Lock Message-ID: <20111016182116.GA6061@triton8.kn-bremen.de> References: <20111014215450.GA74605@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111014215450.GA74605@triton8.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@FreeBSD.org, freebsd-x11@FreeBSD.org, decke@FreeBSD.org Subject: Re: Testing xbmc pvr; libGL threading issues... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2011 18:22:56 -0000 There were a bunch of commits to xbmc pvr yesterday so I now updated my port: http://people.freebsd.org/~nox/tmp/xbmcpvr-opdenkamp-20111015_19a.patch (Among other changes it now no longer segfaults at exit.) I also found out vdpau didn't seem to work for me at least with the previous version, vaapi using multimedia/vdpau-video does work tho. On Fri, Oct 14, 2011 at 11:54:50PM +0200, Juergen Lock wrote: > Hi! > > I had been playing with opdenkamp's xbmc pvr branch and pipelka's > xvdr xbmc addon and vdr plugin for a little while now, and finally > have something that more or less runs. One issue that took me a > while to figure out were crashes in libGL when switching live > channels: > > (gdb) bt > #0 0x00000008041abca7 in glIsTexture () from /usr/local/lib/libGL.so.1 > #1 0x0000000000b2a995 in CLinuxRendererGL::DeleteYV12Texture ( > this=0x8340b8800, index=0) at LinuxRendererGL.cpp:1690 > #2 0x0000000000b2eae2 in CLinuxRendererGL::UnInit (this=0x8340b8800) > at LinuxRendererGL.cpp:1059 > #3 0x0000000000b2ed9e in CLinuxRendererGL::PreInit (this=0x8340b8800) > at LinuxRendererGL.cpp:719 > #4 0x0000000000b29049 in CXBMCRenderManager::PreInit (this=0x1546920) > at RenderManager.cpp:324 > #5 0x0000000000b8bf4f in CDVDPlayerVideo::OpenStream (this=0x835400590, > hint=@0x7ffffdfcee20) at DVDPlayerVideo.cpp:183 > #6 0x0000000000b6d88e in CDVDPlayer::OpenVideoStream (this=0x835400000, > iStream=0, source=256) at DVDPlayer.cpp:2891 > #7 0x0000000000b79734 in CDVDPlayer::Process (this=0x835400000) > at DVDPlayer.cpp:1207 > #8 0x0000000000f4a74d in CThread::staticThread (data=0x835400010) > at Thread.cpp:177 > > turns out libGL keeps thread-local pointers and xbmc called into > libGL (glIsTexture()) from (apparently) a new thread where then > _x86_64_get_dispatch in: > > work/Mesa-7.6.1/src/mesa/x86-64/glapi_x86-64.S > > returned NULL and thus the glIsTexture wrapper in the same .S > got a segfault referencing that NULL pointer here: > > [...] > .p2align 4,,15 > .globl GL_PREFIX(IsTexture) > .type GL_PREFIX(IsTexture), @function > GL_PREFIX(IsTexture): > #if defined(GLX_USE_TLS) > call _x86_64_get_dispatch@PLT > movq 2640(%rax), %r11 > jmp *%r11 > #elif defined(PTHREADS) > pushq %rdi > call _x86_64_get_dispatch@PLT > popq %rdi > movq 2640(%rax), %r11 > ^^^^^^^^^^^^^^^^^^^^^^^^ segfault > jmp *%r11 > #else > [...] > > _x86_64_get_dispatch uses pthread_getspecific() and looks like this: > > [...] > #elif defined(PTHREADS) > > .extern _glapi_Dispatch > .extern _gl_DispatchTSD > .extern pthread_getspecific > > .p2align 4,,15 > _x86_64_get_dispatch: > movq _gl_DispatchTSD@GOTPCREL(%rip), %rax > movl (%rax), %edi > jmp pthread_getspecific@PLT > > #elif defined(THREADS) > [...] > > and some documentation about these thread-local pointers is here: > > work/Mesa-7.6.1/docs/dispatch.html > > After some googling I stumbled across this debian ticket that has a patch: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=536106 > > so I changed the libGL port's files/patch-src__mesa__x86-64__glapi_x86-64.S > into this: > > --------snip------ > --- ./src/mesa/x86-64/glapi_x86-64.S.orig 2009-03-13 04:28:49.000000000 +0100 > +++ ./src/mesa/x86-64/glapi_x86-64.S 2011-01-28 18:12:18.000000000 +0100 > @@ -73,7 +73,12 @@ _x86_64_get_dispatch: > > .p2align 4,,15 > _x86_64_get_dispatch: > - movq _gl_DispatchTSD(%rip), %rdi > + movq _glapi_Dispatch(%rip), %rax > + testq %rax,%rax > + je 1f > + ret > +1: movq _gl_DispatchTSD@GOTPCREL(%rip), %rax > + movl (%rax), %edi > jmp pthread_getspecific@PLT > > #elif defined(THREADS) > --------snip------ > > That fixed these crashes but now I got other crashes that seem to be > related to messages like: > > Recursive call into r300FlushCmdBufLocked! > > (this is using the xorg radeon drivers, the nvidia libGL blob on > the other box crashed in glIsTexture() too but obviously I cannot > easily debug that) - so I looked for another workaround. What I > finally ended up doing was this patch: > (files/patch-xbmc-cores-VideoRenderers-LinuxRendererGL.cpp) > > --- xbmc/cores/VideoRenderers/LinuxRendererGL.cpp.orig > +++ xbmc/cores/VideoRenderers/LinuxRendererGL.cpp > @@ -159,6 +159,10 @@ CLinuxRendererGL::CLinuxRendererGL() > m_rgbPbo = 0; > > m_dllSwScale = new DllSwScale; > + > +#ifdef __FreeBSD__ > + m_tid = NULL; > +#endif > } > > CLinuxRendererGL::~CLinuxRendererGL() > @@ -247,6 +251,9 @@ bool CLinuxRendererGL::ValidateRenderTar > (this->*m_textureCreate)(i); > > m_bValidated = true; > +#ifdef __FreeBSD__ > + m_tid = pthread_self(); > +#endif > return true; > } > return false; > @@ -716,6 +723,9 @@ unsigned int CLinuxRendererGL::PreInit() > CSingleLock lock(g_graphicsContext); > m_bConfigured = false; > m_bValidated = false; > +#ifdef __FreeBSD__ // XXX Will this leak? It's needed to avoid crashes... :( > + if (pthread_self() == m_tid) > +#endif > UnInit(); > m_resolution = g_guiSettings.m_LookAndFeelResolution; > if ( m_resolution == RES_WINDOW ) > > i.e. I only called into CLinuxRendererGL::UnInit() (where the original > crashes happened) if this was the same thread that created the textures > that CLinuxRendererGL::UnInit() tried to delete. I don't know if this > will leak memory, textures, or something else so I'd prefer libGL > to be fixed properly... (And as you might have guessed, this code runs > just fine unpatched on Linux...) > > Anyway, here are the preliminary ports: > > http://people.freebsd.org/~nox/tmp/xbmcpvr-opdenkamp.patch > (to be applied on top of the current xbmc port) > > http://people.freebsd.org/~nox/tmp/vdr-plugin-xvdr.shar > vdr plugin to connect to: > > http://people.freebsd.org/~nox/tmp/xbmc-addon-xvdr.shar > xbmc pvr addon to connect to vdr > > All are git snapshots so likely contain bugs; xbmc pvr has support > for mythtv (and tvheadend) too so you _might_ be able to test that too, > I only tested with vdr. (The xbmc pvr port at _least_ still needs > the commented out REINPLACE_CMD 's|/usr/local|${LOCALBASE}|g' fixed, > and I also would like to know where the remaining > libXBMC_addon-x86_64-linux.so etc references come from; I had to > symlink e.g. libXBMC_addon-x86_64-freebsd.so to the linux name.) > > Oh and I just saw the vdr-plugin-xvdr port's COMMENT still mentions > vnsi (the old name of the plugin) - will fix that later. > > Thanx, > Juergen From owner-freebsd-multimedia@FreeBSD.ORG Sun Oct 16 22:58:44 2011 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99F16106566B; Sun, 16 Oct 2011 22:58:44 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 724248FC0C; Sun, 16 Oct 2011 22:58:44 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9GMwiJP070928; Sun, 16 Oct 2011 22:58:44 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9GMwiR7070924; Sun, 16 Oct 2011 22:58:44 GMT (envelope-from eadler) Date: Sun, 16 Oct 2011 22:58:44 GMT Message-Id: <201110162258.p9GMwiR7070924@freefall.freebsd.org> To: eadler@FreeBSD.org, freebsd-multimedia@FreeBSD.org, vbox@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: kern/140453: [sound] [vbox] No sound inside Virtualbox on 50% volume X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2011 22:58:44 -0000 Old Synopsis: [sound] No sound inside Virtualbox on 50% volume New Synopsis: [sound] [vbox] No sound inside Virtualbox on 50% volume Responsible-Changed-From-To: freebsd-multimedia->vbox Responsible-Changed-By: eadler Responsible-Changed-When: Sun Oct 16 22:58:23 UTC 2011 Responsible-Changed-Why: over to (correct) maintainer http://www.freebsd.org/cgi/query-pr.cgi?pr=140453 From owner-freebsd-multimedia@FreeBSD.ORG Mon Oct 17 11:07:07 2011 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51493106564A for ; Mon, 17 Oct 2011 11:07:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3F1EC8FC16 for ; Mon, 17 Oct 2011 11:07:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9HB77xL099282 for ; Mon, 17 Oct 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9HB76QX099280 for freebsd-multimedia@FreeBSD.org; Mon, 17 Oct 2011 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 17 Oct 2011 11:07:06 GMT Message-Id: <201110171107.p9HB76QX099280@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-multimedia@FreeBSD.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2011 11:07:07 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/161631 multimedia Update port: audio/fluidsynth to 1.1.5 o ports/161568 multimedia [PATCH] audio/libsamplerate: samplerate.h has comma at o ports/161546 multimedia [PATCH] multimedia/mkvtoolnix: make some dependencies o kern/159236 multimedia [pcm] [patch] set PCM_CAP_DEFAULT for the default snd o ports/158987 multimedia multimedia/py-kaa-multimedia: fix build error for grap o kern/158979 multimedia [snd_uadio] snd_uaudio fails to initialize built-in mi o kern/158542 multimedia [snd_hda] hdac0: hdac_get_capabilities: Invalid corb s f kern/158424 multimedia [snd_hda] snd_hda driver doesn't expose 'rec' flag for o kern/156726 multimedia [snd_uaudio]: snd_uaudio(4) fails to detach when mixer o kern/156198 multimedia [snd_hda] [hang] loading snd_hda kernel module hangs s o kern/156165 multimedia [hdac] Missing card definition for hdac audio device, o kern/153920 multimedia [sound] [patch] Replace the GPL'd sound/maestro3 heade o kern/153901 multimedia [sound] [patch] Replace the GPL'd emu10k1-alsa.h with o ports/153846 multimedia graphics/libcaca 0.99.beta17 - Hidden dependency on Xl o kern/152622 multimedia [pcm] uaudio recording problem o kern/152500 multimedia [hdac] play interrupt timeout, channel dead o kern/152378 multimedia [sound][patch] Update snd_envy24ht to be MPSAFE and us f ports/150502 multimedia multimedia/gpac-libgpac 0.4.5_4,1 fails to compile on o kern/150284 multimedia [snd_hda] No gain with Audio o kern/149943 multimedia [pcm]: CS4236 audio problem o kern/148741 multimedia [sound] Headphones are deaf (do not work) on Lenovo Th o kern/147504 multimedia [oss] [panic] panic: dev_pager_getpage: map function r o kern/146031 multimedia [snd_hda] race condition when kldunload snd_hda sound o kern/144659 multimedia [pcm] The distortion of the sound playback of music at o kern/143505 multimedia [pcm] FreeBSD 8.0-RELEASE (x64) won't make sound card o kern/141826 multimedia [snd_hda] load of snd_hda module fails o kern/140591 multimedia [PATCH][sound] No sound output on lineout/headphone ja o kern/137589 multimedia [snd_uaudio] snd_uaudio.ko (USB audio driver) doesn't o kern/134767 multimedia [sound] [snd_hda] [regression] Sigmatel STAC9205X no s o kern/132848 multimedia [sound] [snd_emu10kx] driver problem with card init, s o kern/132511 multimedia [sound] [snd_hda] Probing ALC888 codec on ASRock K10N7 o kern/129604 multimedia [sound] Sound stops with error: pcm0:virtual:dsp0.vp0: o kern/127131 multimedia [bktr] /usr/src/sys/dev/bktr/bktr_os.c, line 469: wron s kern/125756 multimedia [sound] [patch] cannot detect soft-modem on HDA bus o kern/124319 multimedia [sound] [snd_emu10k1] [regression] Cannot record from o kern/122086 multimedia [sound] maestro sound driver is working, but mixer ini p kern/121156 multimedia [sound] [patch] Turn on inverted external amplifier se o kern/120857 multimedia [sound] [snd_emu10k1] snd_emu10k1 driver issues a warn o kern/120780 multimedia [sound] [snd_hda] snd_hda doesn't work on Dell Latitut o kern/119973 multimedia [sound] [snd_maestro] [regression] snd_maestro only wo o kern/119931 multimedia [sound] No sound card detected on ASUS "K8V-X SE R2.00 o kern/119759 multimedia [sound] [snd_emu10k1] [regression] Can not record anyt f kern/115666 multimedia [sound] Microphone does not work o kern/115300 multimedia [sound] [snd_hda] [regression] snd_hda(4) fails to att o kern/114760 multimedia [sound] [snd_cmi] snd_cmi driver causing sporadic syst o kern/111767 multimedia [sound] ATI SB450 High Definition Audio Controller sou o kern/107516 multimedia [sound] [snd_emu10k1] - skips, clicks and lag after a o kern/107051 multimedia [sound] only 2 channels output works for the ALC850 (o o kern/104874 multimedia [sound] [snd_emu10k1] kldload snd_emu10k1 hangs system o kern/104626 multimedia [sound] FreeBSD 6.2 does not support SoundBlaster Audi o kern/101417 multimedia [sound] 4-speakers output not possible on Asus A8V-Del o kern/100859 multimedia [sound] [snd_ich] snd_ich broken on GIGABYTE 915 syste o kern/98752 multimedia [sound] Intel ich6 82801 FB - on Packard Bell A8810 la o kern/98504 multimedia [sound] Sound is distorted with SB Live 5.1 o kern/98496 multimedia [sound] [snd_ich] some functions don't work in my soun o kern/97609 multimedia [sound] Load Sound Module - VIA8233 - fails o kern/97535 multimedia [sound] [snd_mss] doesn't work in 6.0-RELEASE and abov o kern/96538 multimedia [sound] emu10k1-driver inverts channels o kern/95086 multimedia [sound] uaudio line in problem with sbdm lx o kern/94279 multimedia [sound] [snd_neomagic] snd_neomagic crashes on FreeBSD o kern/93986 multimedia [sound] Acer TravelMate 4652LMi pcm0 channel dead o kern/92512 multimedia [sound] distorted mono output with emu10k1 o kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: record interrup s kern/83697 multimedia [sound] [snd_mss] [patch] support, docs added for full o kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work. o kern/81146 multimedia [sound] Sound isn't working AT ALL for Sis7012 onboard o kern/80632 multimedia [sound] pcm driver missing support for CMI8738 auxilla o kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: interrupt sto o kern/79905 multimedia [sound] sis7018 sound module problem o kern/79678 multimedia [sound] sound works except recording from any source o conf/75137 multimedia [sound] add snd_* modules support to /etc/rc.d/mixer f kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound nearly inaudible o kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestro-2E (still o o kern/60677 multimedia [sound] [patch] No reaction of volume controy key on I s kern/60599 multimedia [bktr] [partial patch] No sound for ATI TV Wonder (ste o kern/37600 multimedia [sound] [partial patch] t4dwave drive doesn't record. o kern/23546 multimedia [sound] [snd_csa] [patch] csa DMA-interrupt problem 77 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Sat Oct 15 08:49:48 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4616106566B for ; Sat, 15 Oct 2011 08:49:48 +0000 (UTC) (envelope-from hasanhasanli@mail.ru) Received: from fallback5.mail.ru (fallback5.mail.ru [94.100.176.59]) by mx1.freebsd.org (Postfix) with ESMTP id 5B1DA8FC08 for ; Sat, 15 Oct 2011 08:49:47 +0000 (UTC) Received: from f107.mail.ru (f107.mail.ru [94.100.178.76]) by fallback5.mail.ru (mPOP.Fallback_MX) with ESMTP id D76C96F0A34D for ; Sat, 15 Oct 2011 12:33:55 +0400 (MSK) Received: from mail by f107.mail.ru with local id 1REzgl-0002uX-00 for freebsd-multimedia@freebsd.org; Sat, 15 Oct 2011 12:33:51 +0400 Received: from [85.132.24.46] by e.mail.ru with HTTP; Sat, 15 Oct 2011 12:33:51 +0400 From: =?UTF-8?B?aGFzYW5oYXNhbmxpIEhhc2Fu?= To: freebsd-multimedia@freebsd.org Mime-Version: 1.0 X-Mailer: mPOP Web-Mail 2.19 X-Originating-IP: [85.132.24.46] Date: Sat, 15 Oct 2011 12:33:51 +0400 X-Priority: Message-Id: X-Spam: Not detected X-Mras: Ok X-Mras: Ok X-Mailman-Approved-At: Mon, 17 Oct 2011 16:10:34 +0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Kernel didn't kompile with IPSEC_ESP or IPSEC_NAT_N X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?UTF-8?B?aGFzYW5oYXNhbmxpIEhhc2Fu?= List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Oct 2011 08:49:48 -0000 SSBhZGRlZCB0d28gbGluZXMgaW4ga2VybmVsCm9wdGlvbnPCoMKgIElQU0VDX0VTUCBvciBvcHRp b25zIElQU0VDX05BVF9UCgovdXNyL3NyYy9zeXMvYW1kNjQvY29uZi9HRVRXQVk6IHVua25vd24g b3B0aW9uICJJUFNFQ19FU1AiCi91c3Ivc3JjL3N5cy9hbWQ2NC9jb25mL0dFVFdBWTogdW5rbm93 biBvcHRpb24gIklQU0VDX05BVF9UIgoKQ2FuIEkgYWRkIHRoaXM/Cgo= From owner-freebsd-multimedia@FreeBSD.ORG Tue Oct 18 21:00:45 2011 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3347D106564A; Tue, 18 Oct 2011 21:00:45 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0AD928FC1D; Tue, 18 Oct 2011 21:00:45 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9IL0i67046801; Tue, 18 Oct 2011 21:00:44 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9IL0iJu046794; Tue, 18 Oct 2011 21:00:44 GMT (envelope-from edwin) Date: Tue, 18 Oct 2011 21:00:44 GMT Message-Id: <201110182100.p9IL0iJu046794@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-multimedia@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/161783: [PATCH] multimedia/gpac-libgpac: Fix build with gcc46 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2011 21:00:45 -0000 Synopsis: [PATCH] multimedia/gpac-libgpac: Fix build with gcc46 Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-multimedia Responsible-Changed-By: edwin Responsible-Changed-When: Tue Oct 18 21:00:44 UTC 2011 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=161783 From owner-freebsd-multimedia@FreeBSD.ORG Fri Oct 21 03:09:19 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8113106564A for ; Fri, 21 Oct 2011 03:09:19 +0000 (UTC) (envelope-from mnorwick@centurytel.net) Received: from mail961c35.nsolutionszone.com (mail961c35.nsolutionszone.com [209.235.152.151]) by mx1.freebsd.org (Postfix) with ESMTP id 9988D8FC15 for ; Fri, 21 Oct 2011 03:09:19 +0000 (UTC) X-Authenticated-User: mnorwick.centurytel.net Received: from bucksnort.norwickhouse.net (174-124-37-123.dyn.centurytel.net [174.124.37.123]) (authenticated bits=0) by mail961c35.nsolutionszone.com (8.13.6/8.13.1) with ESMTP id p9L19Nbx030579 for ; Fri, 21 Oct 2011 01:09:25 GMT Message-ID: <4EA0C642.6080509@centurytel.net> Date: Thu, 20 Oct 2011 20:09:22 -0500 From: "Michael D. Norwick" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0) Gecko/20110829 Thunderbird/6.0 MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CSC: 0 X-CHA: v=1.1 cv=5evdw4iMqN/JdwfqWffyRdC2utGnej+UzE5jqTExdn8= c=1 sm=1 a=_tW4y8GFV1YA:10 a=3WPTVEtZbjMA:10 a=8nJEP1OIZ-IA:10 a=nRHtrj2pbMUmV2THcod+iQ==:17 a=UBb_-2KpAFYW75PSoqUA:9 a=uqx1wirB7mfgWF7kMAsA:7 a=wPNLvfGTeEIA:10 a=nRHtrj2pbMUmV2THcod+iQ==:117 Subject: Can't play an audio CD X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2011 03:09:20 -0000 Good Day; I am trying to get a Dell Latitude D630 laptop to play audio CD's without success. The following is the question I posed to freebsd-questions@; "It seems that I still cannot figure this out. No amount of searching the docs or mailing lists has gotten me closer to a solution. I csup'd the source tree again last night and built another kernel and world for; *default release=cvs tag=RELENG_9 *default delete use-rel-suffix /usr/src/sys/amd64/conf/KERNEL_101811 contains (among other things); # ATA controllers device ahci # AHCI-compatible SATA controllers device ata # Legacy ATA/SATA controllers options ATA_CAM # Handle legacy controllers with CAM options ATA_STATIC_ID # Static device numbering device mvs # Marvell 88SX50XX/88SX60XX/88SX70XX/SoC SATA device siis # SiliconImage SiI3124/SiI3132/SiI3531 SATA # SCSI Controllers # ATA/SCSI peripherals device scbus # SCSI bus (required for ATA/SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct ATA/SCSI access) device ses # SCSI Environmental Services (and SAF-TE) This resulted in; $uname -a FreeBSD ****.****.net 9.0-RC1 FreeBSD 9.0-RC1 #1: Wed Oct 19 05:37:43 CDT 2011 michael@****.****.net:/usr/obj/usr/src/sys/KERNEL_101811 amd64 and the following devices in /dev; $ ls -l cd* crw-rw-rw- 1 root operator 0, 105 Oct 19 19:08 cd0 lrwxr-xr-x 1 root wheel 8 Oct 19 19:08 cdrom -> /dev/cd0 /etc/devfs.conf contains; # Commonly used by many ports #link acd0 cdrom link /dev/cd0 cdrom perm /dev/cd0 0660 # Allow a user in the wheel group to query the smb0 device perm /dev/smb0 0660 # Allow members of group operator to cat things to the speaker #own speaker root:operator #perm speaker 0660 perm /dev/pass0 0660 perm /dev/xpt0 0660 perm /dev/pass1 0660 #perm /dev/xpt1 0660 perm /dev/mdctl 0660 perm /dev/md0 0660 perm /dev/bpf0 0660 perm /dev/bpf1 0660 perm /dev/bpf2 0660 perm /dev/bpf3 0660 perm /dev/bpf4 0660 link /tmp shm $ cat /boot/loader.conf atapicam_load="YES" hw.ata.atapi_dma=0 linux_load="YES" snd_hda_load="YES" $ cat /etc/rc.conf hostname="****.****.net" keymap=us.iso.kbd ifconfig_bge0=" inet 192.168.1.22 netmask 255.255.255.0" defaultrouter="192.168.1.1" hald_enable="YES" dbus_enable="YES" gdm_enable="YES" sshd_enable="YES" linux_enable="YES" abi_enable="YES" sysctl_enable="YES" ntpd_enable="YES" powerd_enable="YES" $dmesg cd0 at ata0 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, PIO 65534bytes) cd0: cd present [26466 x 2048 byte records] (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 0 67 61 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: HARDWARE FAILURE asc:3e,2 (Timeout on logical unit) (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 0 67 61 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: HARDWARE FAILURE asc:3e,2 (Timeout on logical unit) (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 0 67 61 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: HARDWARE FAILURE asc:3e,2 (Timeout on logical unit) (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 0 67 61 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: HARDWARE FAILURE asc:3e,2 (Timeout on logical unit) (cd0:ata0:0:0:0): READ(10). CDB: 28 0 0 0 67 61 0 0 1 0 (cd0:ata0:0:0:0): CAM status: SCSI Status Error (cd0:ata0:0:0:0): SCSI status: Check Condition (cd0:ata0:0:0:0): SCSI sense: HARDWARE FAILURE asc:3e,2 (Timeout on logical unit) (cd0:ata0:0:0:0): cddone: got error 0x5 back with a data CD in the drive during reboot. Trying to manually mount the drive results in; $ sudo mount_cd9660 /dev/cd0 /media/dvdrom mount_cd9660: /dev/cd0: Invalid argument $ cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# proc /proc procfs rw 0 0 /dev/ada0p2 / ufs rw 1 1 /dev/ada0p3 none swap sw 0 0 /dev/ada0p4 /var ufs rw 2 2 /dev/ada0p5 /usr ufs rw 2 2 /dev/ada0p6 /home ufs rw 2 2 linproc /compat/linux/proc linprocfs rw 0 0 /dev/cd0 /media/dvdrom cd9660 rw,noauto 0 0 $ cdcontrol info Starting track = 1, ending track = 1, TOC size = 18 bytes track start duration block length type ------------------------------------------------- 1 0:02.00 5:52.66 0 26466 data 170 5:54.66 - 26466 - - Before I recompiled the kernel, when I inserted a music CD, Gnome would display a folder containing the *.wav files but I could not play them (with or without the CLI tool). Now I cannot even access a data CD. Again, the machine is a Dell Latitude D630 laptop." Continuing to trouble shoot I changed I changed /boot/loader.conf to: $ cat /boot/loader.conf atapicam_load="YES" hw.ata.atapi_dma="0" linux_load="YES" lindev_load="YES" linprocfs_load="YES" linsysfs_load="YES" sound_load="YES" snd_hda_load="YES" pf_load="YES" I needed the linux and pf_load statements for another reason and those features work as expected. I have rebooted several times and tried the old original freebsd 9 kernel (%boot kernel.orig) from the initial install with the same result - can't play an audio CD. I can now - mount_cd9660 - a data CD with my custom kernel booted. I know sound works because gnome audio themes work. The current /etc/rc.conf is as follows; $ cat /etc/rc.conf hostname="****.****.net" keymap=us.iso.kbd ifconfig_bge0=" inet 192.168.1.22 netmask 255.255.255.0" defaultrouter="192.168.1.1" #hald_enable="YES" #dbus_enable="YES" #polkitd_enable="YES" gnome_enable="YES" gdm_enable="YES" sshd_enable="YES" linux_enable="YES" abi_enable="YES" sysctl_enable="YES" ntpd_enable="YES" powerd_enable="YES" $ cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# proc /proc procfs rw 0 0 /dev/ada0p2 / ufs rw 1 1 /dev/ada0p3 none swap sw 0 0 /dev/ada0p4 /var ufs rw 2 2 /dev/ada0p5 /usr ufs rw 2 2 /dev/ada0p6 /home ufs rw 2 2 linproc /compat/linux/proc linprocfs rw 0 0 #/dev/cd0 /media/dvdrom cd9660 rw,noauto 0 0 As was suggested, I have run the command line tools and have gotten mixed results, such as; $ camcontrol devlist at scbus1 target 0 lun 0 (pass0,cd0) at scbus2 target 0 lun 0 (ada0,pass1) and; $cdcontrol play 1 - results in drive activity but again, no audio. Any further wisdom or pointers would be greatly appreciated. Thank You, Michael From owner-freebsd-multimedia@FreeBSD.ORG Fri Oct 21 06:28:32 2011 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31621106567A for ; Fri, 21 Oct 2011 06:28:32 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from koala.droso.net (koala.droso.net [IPv6:2001:6c8:130:400::6]) by mx1.freebsd.org (Postfix) with ESMTP id AF0478FC21 for ; Fri, 21 Oct 2011 06:28:31 +0000 (UTC) Received: from koala.droso.net (localhost.droso.net [127.0.0.1]) by koala.droso.net (8.14.4/8.14.4) with ESMTP id p9L6SUDe039801 for ; Fri, 21 Oct 2011 08:28:30 +0200 (CEST) (envelope-from linimon@FreeBSD.org) Date: Fri, 21 Oct 2011 08:28:30 +0200 (CEST) Message-Id: <201110210628.p9L6SUDe039801@koala.droso.net> From: linimon@FreeBSD.org To: multimedia@FreeBSD.org Cc: Subject: FreeBSD ports that you maintain which are currently marked broken X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: portmgr-feedback@FreeBSD.org List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2011 06:28:32 -0000 Dear FreeBSD port maintainer: As part of an ongoing effort to reduce the number of problems in the FreeBSD ports system, we periodically notify users of ports that are marked as "broken" in their Makefiles. In many cases these ports are failing to compile on some subset of the FreeBSD build environments. The most common problem is that recent versions of -CURRENT include gcc4.2, which is much stricter than older versions. The next most common problem is that compiles succeed on the i386 architecture (e.g. the common Intel PC), but fail on one or more of the other architectures due to assumptions about things such as size of various types, byte-alignment issues, and so forth. In occasional cases we see that the same port may have different errors in different build environments. The script that runs on the build cluster uses heuristics to try to 'guess' the error type to help you isolate problems, but it is only a rough guide. One more note: on occasion, there are transient build errors seen on the build farm. Unfortunately, there is not yet any way for this algorithm to tell the difference (humans are much, much better at this kind of thing.) The errors are listed below. In the case where the same problem exists on more than one build environment, the URL points to the latest errorlog for that type. (By 'build environment' here we mean 'combination of 6.x/7.x/-current with target architecture'.) (Note: the dates are included to help you to gauge whether or not the error still applies to the latest version. The program that generates this report is not yet able to determine this automatically.) portname: audio/gstreamer-plugins-flite broken because: Doesn't work due to link problem in audio/flite build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=audio&portname=gstreamer-plugins-flite If these errors are ones that you are already aware of, please accept our apologies and ignore this message. On the other hand, if you no longer wish to maintain this port (or ports), please reply with a message stating that, and accept our thanks for your efforts in the past. Every effort has been made to make sure that these error reports really do correspond to a port that you maintain. However, due to the fact that this is an automated process, it may indeed generate false matches. If one of these errors fits that description, please forward this email to the author of this software, Mark Linimon , so that he can attempt to fix the problem in the future. Thanks for your efforts to help improve FreeBSD. From owner-freebsd-multimedia@FreeBSD.ORG Fri Oct 21 11:11:04 2011 Return-Path: Delivered-To: freebsd-multimedia@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 725781065677; Fri, 21 Oct 2011 11:11:04 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 495078FC12; Fri, 21 Oct 2011 11:11:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9LBB4a1037451; Fri, 21 Oct 2011 11:11:04 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9LBB46w037442; Fri, 21 Oct 2011 11:11:04 GMT (envelope-from edwin) Date: Fri, 21 Oct 2011 11:11:04 GMT Message-Id: <201110211111.p9LBB46w037442@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-multimedia@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/161871: [patch] multimedia/mjpegtools plist incorrect with QUICKTIME=true X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2011 11:11:04 -0000 Synopsis: [patch] multimedia/mjpegtools plist incorrect with QUICKTIME=true Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-multimedia Responsible-Changed-By: edwin Responsible-Changed-When: Fri Oct 21 11:11:03 UTC 2011 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=161871 From owner-freebsd-multimedia@FreeBSD.ORG Fri Oct 21 13:44:29 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8884B106564A for ; Fri, 21 Oct 2011 13:44:29 +0000 (UTC) (envelope-from stuartb@4gh.net) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 4BEB88FC12 for ; Fri, 21 Oct 2011 13:44:28 +0000 (UTC) Received: from mr16.lnh.mail.rcn.net ([207.172.157.36]) by smtp02.lnh.mail.rcn.net with ESMTP; 21 Oct 2011 09:15:03 -0400 Received: from smtp04.lnh.mail.rcn.net (smtp04.lnh.mail.rcn.net [207.172.157.104]) by mr16.lnh.mail.rcn.net (MOS 4.2.3-GA) with ESMTP id BJE75488; Fri, 21 Oct 2011 09:15:03 -0400 X-Auth-ID: stuartb.4gh@starpower.net Received: from 216-164-52-193.c3-0.slvr-ubr1.lnh-slvr.md.cable.rcn.com (HELO freeman.4gh.net) ([216.164.52.193]) by smtp04.lnh.mail.rcn.net with ESMTP; 21 Oct 2011 09:15:03 -0400 Received: by freeman.4gh.net (Postfix, from userid 1001) id B16BD130DDE; Fri, 21 Oct 2011 09:15:02 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by freeman.4gh.net (Postfix) with ESMTP id AB1FC130CE9; Fri, 21 Oct 2011 09:15:02 -0400 (EDT) Date: Fri, 21 Oct 2011 09:15:02 -0400 (EDT) From: Stuart Barkley To: "Michael D. Norwick" In-Reply-To: <4EA0C642.6080509@centurytel.net> Message-ID: References: <4EA0C642.6080509@centurytel.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-multimedia@freebsd.org Subject: Re: Can't play an audio CD X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2011 13:44:29 -0000 [Much of the original message trimmed. See thoughts below.] On Thu, 20 Oct 2011 at 21:09 -0000, Michael D. Norwick wrote: > I am trying to get a Dell Latitude D630 laptop to play audio CD's > without success. > > $uname -a > > FreeBSD ****.****.net 9.0-RC1 FreeBSD 9.0-RC1 #1: Wed Oct 19 05:37:43 CDT 2011 > michael@****.****.net:/usr/obj/usr/src/sys/KERNEL_101811 amd64 I'm still using FreeBSD 8 on my main server. > I have rebooted several times and tried the old original freebsd 9 > kernel (%boot kernel.orig) from the initial install with the same > result - can't play an audio CD. I can now - mount_cd9660 - a data > CD with my custom kernel booted. I know sound works because gnome > audio themes work. This is all good. > As was suggested, I have run the command line tools and have gotten > mixed results, such as; > > $ camcontrol devlist > at scbus1 target 0 lun 0 (pass0,cd0) > at scbus2 target 0 lun 0 (ada0,pass1) > > and; > > $cdcontrol play 1 > > results in drive activity but again, no audio. The most likely case is that your system does not support direct audio from the CD drive and that you need to play your CDs with a different application (instead of just a hardware command). It used to be common for an audio signal cable to be connected directly from the CD drive to a specific CD input on the audio mixer. The 'cdcontrol play' command directs the CD drive to start playing audio. After that everything was done in hardware/firmware with no further OS or application interaction needed. Many current system don't provide this direct audio connection anymore. The audio mixers don't all have input connectors and I don't know if the audio output is even on current DVD drives. I haven't paid attention on recent system hardware assemblies since I don't worry about this anymore. Things to try: We need to see the output of the 'mixer' command. It is possible that the volume control for the CD input is set to 0. My guess is that you don't even have a CD volume control. Look at the output from 'cdcontrol volume'. My system shows 255 for the left and right channels. It is possible that these are 0 on your system thus muting output. Try other audio player applications. Some of them should support playing CDs directly. These application will read the data from the drive and then send it to the system audio. I don't use any of these anymore, I rip everything to mp3 files. Stuart -- I've never been lost; I was once bewildered for three days, but never lost! -- Daniel Boone From owner-freebsd-multimedia@FreeBSD.ORG Fri Oct 21 18:57:20 2011 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5CE51065676; Fri, 21 Oct 2011 18:57:20 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 724648FC08; Fri, 21 Oct 2011 18:57:20 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id C688D1E00249; Fri, 21 Oct 2011 20:57:18 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p9LIv4sS048215; Fri, 21 Oct 2011 20:57:04 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p9LIv3gY048214; Fri, 21 Oct 2011 20:57:03 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Fri, 21 Oct 2011 20:57:03 +0200 To: Juergen Lock Message-ID: <20111021185703.GA48178@triton8.kn-bremen.de> References: <20111014215450.GA74605@triton8.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111014215450.GA74605@triton8.kn-bremen.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@FreeBSD.org, freebsd-x11@FreeBSD.org Subject: Re: Testing xbmc pvr; libGL threading issues... X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2011 18:57:20 -0000 On Fri, Oct 14, 2011 at 11:54:50PM +0200, Juergen Lock wrote: > Hi! > > I had been playing with opdenkamp's xbmc pvr branch and pipelka's > xvdr xbmc addon and vdr plugin for a little while now, and finally > have something that more or less runs. One issue that took me a > while to figure out were crashes in libGL when switching live > channels: > > (gdb) bt > #0 0x00000008041abca7 in glIsTexture () from /usr/local/lib/libGL.so.1 > #1 0x0000000000b2a995 in CLinuxRendererGL::DeleteYV12Texture ( > this=0x8340b8800, index=0) at LinuxRendererGL.cpp:1690 > #2 0x0000000000b2eae2 in CLinuxRendererGL::UnInit (this=0x8340b8800) > at LinuxRendererGL.cpp:1059 > #3 0x0000000000b2ed9e in CLinuxRendererGL::PreInit (this=0x8340b8800) > at LinuxRendererGL.cpp:719 > #4 0x0000000000b29049 in CXBMCRenderManager::PreInit (this=0x1546920) > at RenderManager.cpp:324 > #5 0x0000000000b8bf4f in CDVDPlayerVideo::OpenStream (this=0x835400590, > hint=@0x7ffffdfcee20) at DVDPlayerVideo.cpp:183 > #6 0x0000000000b6d88e in CDVDPlayer::OpenVideoStream (this=0x835400000, > iStream=0, source=256) at DVDPlayer.cpp:2891 > #7 0x0000000000b79734 in CDVDPlayer::Process (this=0x835400000) > at DVDPlayer.cpp:1207 > #8 0x0000000000f4a74d in CThread::staticThread (data=0x835400010) > at Thread.cpp:177 > > turns out libGL keeps thread-local pointers and xbmc called into > libGL (glIsTexture()) from (apparently) a new thread where then > _x86_64_get_dispatch in: > > work/Mesa-7.6.1/src/mesa/x86-64/glapi_x86-64.S > > returned NULL and thus the glIsTexture wrapper in the same .S > got a segfault referencing that NULL pointer here: > > [...] > .p2align 4,,15 > .globl GL_PREFIX(IsTexture) > .type GL_PREFIX(IsTexture), @function > GL_PREFIX(IsTexture): > #if defined(GLX_USE_TLS) > call _x86_64_get_dispatch@PLT > movq 2640(%rax), %r11 > jmp *%r11 > #elif defined(PTHREADS) > pushq %rdi > call _x86_64_get_dispatch@PLT > popq %rdi > movq 2640(%rax), %r11 > ^^^^^^^^^^^^^^^^^^^^^^^^ segfault > jmp *%r11 > #else > [...] > > _x86_64_get_dispatch uses pthread_getspecific() and looks like this: > > [...] > #elif defined(PTHREADS) > > .extern _glapi_Dispatch > .extern _gl_DispatchTSD > .extern pthread_getspecific > > .p2align 4,,15 > _x86_64_get_dispatch: > movq _gl_DispatchTSD@GOTPCREL(%rip), %rax > movl (%rax), %edi > jmp pthread_getspecific@PLT > > #elif defined(THREADS) > [...] > > and some documentation about these thread-local pointers is here: > > work/Mesa-7.6.1/docs/dispatch.html > > After some googling I stumbled across this debian ticket that has a patch: > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=536106 > > so I changed the libGL port's files/patch-src__mesa__x86-64__glapi_x86-64.S > into this: > > --------snip------ > --- ./src/mesa/x86-64/glapi_x86-64.S.orig 2009-03-13 04:28:49.000000000 +0100 > +++ ./src/mesa/x86-64/glapi_x86-64.S 2011-01-28 18:12:18.000000000 +0100 > @@ -73,7 +73,12 @@ _x86_64_get_dispatch: > > .p2align 4,,15 > _x86_64_get_dispatch: > - movq _gl_DispatchTSD(%rip), %rdi > + movq _glapi_Dispatch(%rip), %rax > + testq %rax,%rax > + je 1f > + ret > +1: movq _gl_DispatchTSD@GOTPCREL(%rip), %rax > + movl (%rax), %edi > jmp pthread_getspecific@PLT > > #elif defined(THREADS) > --------snip------ > > That fixed these crashes but now I got other crashes that seem to be > related to messages like: > > Recursive call into r300FlushCmdBufLocked! > > (this is using the xorg radeon drivers, the nvidia libGL blob on > the other box crashed in glIsTexture() too but obviously I cannot > easily debug that) - so I looked for another workaround. What I > finally ended up doing was this patch: > (files/patch-xbmc-cores-VideoRenderers-LinuxRendererGL.cpp) > > --- xbmc/cores/VideoRenderers/LinuxRendererGL.cpp.orig > +++ xbmc/cores/VideoRenderers/LinuxRendererGL.cpp > @@ -159,6 +159,10 @@ CLinuxRendererGL::CLinuxRendererGL() > m_rgbPbo = 0; > > m_dllSwScale = new DllSwScale; > + > +#ifdef __FreeBSD__ > + m_tid = NULL; > +#endif > } > > CLinuxRendererGL::~CLinuxRendererGL() > @@ -247,6 +251,9 @@ bool CLinuxRendererGL::ValidateRenderTar > (this->*m_textureCreate)(i); > > m_bValidated = true; > +#ifdef __FreeBSD__ > + m_tid = pthread_self(); > +#endif > return true; > } > return false; > @@ -716,6 +723,9 @@ unsigned int CLinuxRendererGL::PreInit() > CSingleLock lock(g_graphicsContext); > m_bConfigured = false; > m_bValidated = false; > +#ifdef __FreeBSD__ // XXX Will this leak? It's needed to avoid crashes... :( > + if (pthread_self() == m_tid) > +#endif > UnInit(); > m_resolution = g_guiSettings.m_LookAndFeelResolution; > if ( m_resolution == RES_WINDOW ) > > i.e. I only called into CLinuxRendererGL::UnInit() (where the original > crashes happened) if this was the same thread that created the textures > that CLinuxRendererGL::UnInit() tried to delete. I don't know if this > will leak memory, textures, or something else so I'd prefer libGL > to be fixed properly... (And as you might have guessed, this code runs > just fine unpatched on Linux...) And now I tested this with libGL and friends from xorg-dev, http://wiki.freebsd.org/Xorg and those no longer need this patch. (I didn't update all of xorg, just the stuff below graphics/ .) Just FYI, :) Juergen From owner-freebsd-multimedia@FreeBSD.ORG Sat Oct 22 03:10:28 2011 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0D1A1065673 for ; Sat, 22 Oct 2011 03:10:28 +0000 (UTC) (envelope-from mnorwick@centurytel.net) Received: from mail960c35.nsolutionszone.com (mail960c35.nsolutionszone.com [209.235.152.150]) by mx1.freebsd.org (Postfix) with ESMTP id 813368FC13 for ; Sat, 22 Oct 2011 03:10:27 +0000 (UTC) X-Authenticated-User: mnorwick.centurytel.net Received: from bucksnort.norwickhouse.net (174-124-37-123.dyn.centurytel.net [174.124.37.123]) (authenticated bits=0) by mail960c35.nsolutionszone.com (8.13.6/8.13.1) with ESMTP id p9M3APk3026334 for ; Sat, 22 Oct 2011 03:10:26 GMT Message-ID: <4EA23420.5010204@centurytel.net> Date: Fri, 21 Oct 2011 22:10:24 -0500 From: "Michael D. Norwick" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0) Gecko/20110829 Thunderbird/6.0 MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org References: <4EA0C642.6080509@centurytel.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-CSC: 0 X-CHA: v=1.1 cv=2xCENBmbyeZn6WhoOoEFpEbLTM7pfi+C5vFXndvBAu0= c=1 sm=1 a=_tW4y8GFV1YA:10 a=3WPTVEtZbjMA:10 a=8nJEP1OIZ-IA:10 a=nRHtrj2pbMUmV2THcod+iQ==:17 a=i5FPrspY0o2tOhbWoiIA:9 a=RnVlBA7q4WyOF4yYeY0A:7 a=wPNLvfGTeEIA:10 a=nRHtrj2pbMUmV2THcod+iQ==:117 Subject: Re: Can't play an audio CD X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Oct 2011 03:10:29 -0000 On 10/21/11 08:15, Stuart Barkley wrote: > [Much of the original message trimmed. See thoughts below.] > > On Thu, 20 Oct 2011 at 21:09 -0000, Michael D. Norwick wrote: > >> I am trying to get a Dell Latitude D630 laptop to play audio CD's >> without success. >> >> $uname -a >> >> FreeBSD ****.****.net 9.0-RC1 FreeBSD 9.0-RC1 #1: Wed Oct 19 05:37:43 CDT 2011 >> michael@****.****.net:/usr/obj/usr/src/sys/KERNEL_101811 amd64 > I'm still using FreeBSD 8 on my main server. > >> I have rebooted several times and tried the old original freebsd 9 >> kernel (%boot kernel.orig) from the initial install with the same >> result - can't play an audio CD. I can now - mount_cd9660 - a data >> CD with my custom kernel booted. I know sound works because gnome >> audio themes work. > This is all good. > >> As was suggested, I have run the command line tools and have gotten >> mixed results, such as; >> >> $ camcontrol devlist >> at scbus1 target 0 lun 0 (pass0,cd0) >> at scbus2 target 0 lun 0 (ada0,pass1) >> >> and; >> >> $cdcontrol play 1 >> >> results in drive activity but again, no audio. > The most likely case is that your system does not support direct audio > from the CD drive and that you need to play your CDs with a different > application (instead of just a hardware command). > > It used to be common for an audio signal cable to be connected > directly from the CD drive to a specific CD input on the audio mixer. > The 'cdcontrol play' command directs the CD drive to start playing > audio. After that everything was done in hardware/firmware with no > further OS or application interaction needed. > > Many current system don't provide this direct audio connection > anymore. The audio mixers don't all have input connectors and I don't > know if the audio output is even on current DVD drives. I haven't > paid attention on recent system hardware assemblies since I don't > worry about this anymore. > > Things to try: > > We need to see the output of the 'mixer' command. It is possible that > the volume control for the CD input is set to 0. My guess is that you > don't even have a CD volume control. > > Look at the output from 'cdcontrol volume'. My system shows 255 for > the left and right channels. It is possible that these are 0 on your > system thus muting output. > > Try other audio player applications. Some of them should support > playing CDs directly. These application will read the data from the > drive and then send it to the system audio. I don't use any of these > anymore, I rip everything to mp3 files. > > Stuart $ mixer Mixer vol is currently set to 100:100 Mixer pcm is currently set to 75:75 Mixer speaker is currently set to 75:75 Mixer rec is currently set to 75:75 Recording source: monitor and $ cdcontrol volume Left volume = 216, right volume = 216 with an audio CD in the drive after executing $cdcontrol play. Still no sound from the thing and though I have external speakers plugged into the headphone out jack, it doesn't matter if I unplug them. I have tried gnome sound juicer and abraca without success. I am using; $pkg_info -a pulseaudio-0.9.22_1 abraca-0.6.0 ffmpeg-0.7.5,1 gxmms2-0.7.1 libggi-2.2.2_3,1 sdl-1.2.14_2,2 xmms2-0.7_2 libdv-1.0.0_2 mplayer-1.0.r20110329_3 sound-juicer-2.32.0 alsa-lib-1.0.23 jackit-0.121.3 libao-1.1.0_1 swfdec-0.8.4_3 swfdec-gnome-2.30.1 In the Gnome multimedia selector tool, OSS is selected for default input and output. The tests on that page produce sound when the test buttons are clicked. Although I don't know why pulseaudio would not be a selection. It is not. Thank You, Michael