• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 12
Green screen instead of video with ATI/AMD graphics
#16
Has anyone had any luck working around this issue? I tried the code changes suggested by Charly (I also have a mobility 9600), but there was no change for me; I still have a green screen and 2fps when playing video.
Reply
#17
Try the latest SVN and see if the issue persists. If it does, please provide a gdb backtrace (if it crashes) and paste your xbmc.log.

BTW, don't forget to revert any local changes you might have made (see tips below).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#18
Hi,
Compiled the latest SVN, but I don't see any video Blush
Here are some pieces from XBMC.LOG:
Code:
08:19:13 T:3070748480 M:414285824    INFO: XRANDR: /home/####/XBMC/BUILD/xbmc-xrandr --output default --mode 0x7c
08:19:13 T:3070748480 M:412622848    INFO: GLX Info: NOT Using destination window
08:19:13 T:3070748480 M:404697088    INFO: GLX Info: Using parent window
08:19:13 T:3070748480 M:404697088    INFO: GLX Info: Creating unshared context
08:19:13 T:3070748480 M:402006016    INFO: GL: OpenGL Vendor String: ATI Technologies Inc.

Starting a video:
Code:
08:19:27 T:3070748480 M:367341568 WARNING: GetLabel - Unknown nodetype requested 12
08:19:28 T:3070748480 M:366923776  NOTICE: DVDPlayer: Opening: smb://KANTOOR02/TWO_200/Video/TV Shows/Criminal Minds/Seizoen 1/Criminal Minds 1x01 Extreme Aggressor.avi
08:19:28 T:3070748480 M:366923776  NOTICE: CDVDPlayer::CloseFile()
08:19:28 T:3070748480 M:366923776 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
08:19:28 T:3070748480 M:366923776  NOTICE: DVDPlayer: waiting for threads to exit
08:19:28 T:3070748480 M:366923776  NOTICE: DVDPlayer: finished waiting
08:19:28 T:3070748480 M:366923776 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
08:19:28 T:2867792784 M:366882816  NOTICE: Creating InputStream
08:19:28 T:2867792784 M:365654016  NOTICE: Creating Demuxer
08:19:29 T:2867792784 M:361340928    INFO: ffmpeg: Input #0, avi, from 'smb://KANTOOR02/TWO_200/Video/TV Shows/Criminal Minds/Seizoen 1/Criminal Minds 1x01 Extreme Aggressor.avi':
08:19:29 T:2867792784 M:361340928    INFO: ffmpeg:   Duration: 00:40:43.4, start: 0.000000, bitrate: 1201 kb/s
08:19:29 T:2867792784 M:361340928    INFO: ffmpeg:     Stream #0.0: Video: mpeg4, yuv420p, 624x352 [PAR 1:1 DAR 39:22], 23.98 tb(r)
08:19:29 T:2867792784 M:361340928    INFO: ffmpeg:     Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
08:19:29 T:2867792784 M:361340928    INFO: Loading skin file: DialogProgress.xml
08:19:29 T:2867792784 M:361340928    INFO: CDVDFactorySubtitle::GetSubtitles, searching subtitles
08:19:29 T:2867792784 M:361328640    INFO:  cached subtitle Criminal Minds 1x01 Extreme Aggressor.srt->/tmp/xbmc/subtitle.srt
08:19:29 T:2867792784 M:361328640    INFO: CDVDFactorySubtitle::GetSubtitles, searching subtitles done
08:19:29 T:2867792784 M:361328640  NOTICE: Opening audio stream: 1
08:19:29 T:2867792784 M:361328640  NOTICE: Finding audio codec for: 86017
08:19:29 T:2867792784 M:361107456  NOTICE: Creating audio thread
08:19:29 T:2867792784 M:361070592  NOTICE: Opening video stream: 0
08:19:29 T:2867792784 M:361070592  NOTICE: Creating video codec with codec id: 13
08:19:29 T:2867792784 M:361070592  NOTICE: Creating video thread
08:19:29 T:2854103952 M:361070592  NOTICE: running thread: CDVDPlayerAudio::Process()
08:19:29 T:2845711248 M:361070592    INFO: GLX Info: Using destination window
08:19:29 T:2845711248 M:361070592    INFO: GLX Info: Creating shared context
08:19:29 T:2845711248 M:359153664    INFO: GL: OpenGL version 0.0 detected
08:19:29 T:2845711248 M:359153664    INFO: GL: NPOT textures are supported through GL_ARB_texture_rectangle extension
08:19:29 T:2845711248 M:359153664  NOTICE: GL: Selecting YUV 2 RGB Progressive Shader
08:19:29 T:2845711248 M:359153664   ERROR: GL: Error compiling shader
08:19:29 T:2845711248 M:359153664   ERROR: Ì—{·
08:19:29 T:2845711248 M:359153664   ERROR: GL: Error compiling vertex shader
08:19:29 T:2845711248 M:359153664   ERROR: GL: Error enabling YUV2RGB GLSL shader
08:19:29 T:2845711248 M:359153664   ERROR: GL: Falling back to Software YUV2RGB
08:19:29 T:2845711248 M:359153664  NOTICE: running thread: video_thread
08:19:29 T:2854103952 M:359153664  NOTICE: Creating audio device with codec id: 86017, channels: 2, sample rate: 48000, no pass-through
08:19:29 T:3070748480 M:358006784    INFO: Loading skin file: VideoOverlay.xml
08:19:30 T:2845711248 M:352571392  NOTICE:  fps: 23.976000, pwidth: 624, pheight: 352, dwidth: 623, dheight: 352
08:19:30 T:2845711248 M:352571392  NOTICE: Display resolution AUTO : 1024x768 (Desktop) (12)
08:19:30 T:2845711248 M:352571392    INFO: GL: OpenGL version 0.0 detected
08:19:30 T:2845711248 M:352571392    INFO: GL: NPOT textures are supported through GL_ARB_texture_rectangle extension
08:19:30 T:2845711248 M:352571392  NOTICE: GL: Creating power of two texture of size 1024 x 512
08:19:30 T:2845711248 M:352571392  NOTICE: GL: Creating power of two texture of size 1024 x 256
08:19:30 T:2845711248 M:352571392  NOTICE: GL: Creating power of two texture of size 1024 x 256
08:19:30 T:2845711248 M:352571392  NOTICE: GL: Creating power of two texture of size 1024 x 512
08:19:30 T:2845711248 M:352571392  NOTICE: GL: Creating power of two texture of size 1024 x 256
08:19:30 T:2845711248 M:352571392  NOTICE: GL: Creating power of two texture of size 1024 x 256
08:19:30 T:3070748480 M:355631104    INFO: Loading skin file: VideoFullScreen.xml
08:19:30 T:3070748480 M:355631104    INFO: Loading skin file: VideoOSD.xml
08:19:30 T:3070748480 M:355409920    INFO: Loading skin file: VideoOSDSettings.xml
08:19:30 T:3070748480 M:354672640    INFO: Loading skin file: VideoOSDSettings.xml
08:19:30 T:2845711248 M:354488320 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 11926, consumed: 9
08:19:30 T:2845711248 M:354488320 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 3104, consumed: 9
08:19:30 T:2845711248 M:354340864 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 2265, consumed: 9
08:19:30 T:2845711248 M:354340864 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 1949, consumed: 9
08:19:39 T:3070748480 M:352124928  NOTICE: CDVDPlayer::CloseFile()
08:19:39 T:2867792784 M:352124928  NOTICE: CDVDPlayer::OnExit()
08:19:39 T:2867792784 M:352124928  NOTICE: DVDPlayer: closing audio stream
08:19:39 T:2867792784 M:352124928  NOTICE: Closing audio stream
08:19:39 T:2867792784 M:352124928  NOTICE: waiting for audio thread to exit
08:19:39 T:2854103952 M:352124928   ERROR: AddPackets - More bytes left than can be stored in buffer
08:19:39 T:2854103952 M:352124928  NOTICE: Closing audio device
08:19:39 T:2854103952 M:352124928  NOTICE: thread end: CDVDPlayerAudio::OnExit()
08:19:39 T:2867792784 M:352124928  NOTICE: Deleting audio codec
08:19:39 T:2867792784 M:352124928  NOTICE: DVDPlayer: closing video stream
08:19:39 T:2867792784 M:352124928  NOTICE: Closing video stream
08:19:39 T:2867792784 M:352124928  NOTICE: waiting for video thread to exit
08:19:39 T:3070748480 M:352124928  NOTICE: DVDPlayer: waiting for threads to exit
08:19:39 T:2845711248 M:351387648   ERROR:  - Timeout waiting for previous frame to be presented
08:19:39 T:2845711248 M:351387648  NOTICE: uninitting video device
08:19:39 T:2845711248 M:351387648  NOTICE: thread end: video_thread
08:19:39 T:2845711248 M:351387648   ERROR: thread terminated and still owns graphic context. releasing it.
08:19:39 T:2867792784 M:351387648  NOTICE: deleting video codec
08:19:39 T:2867792784 M:351387648  NOTICE: DVDPlayer: closing video stream
08:19:39 T:2867792784 M:351387648  NOTICE: Closing subtitle stream
08:19:39 T:2867792784 M:351387648  NOTICE: CDVDPlayer::OnExit() deleting demuxer
08:19:39 T:2867792784 M:357838848  NOTICE: CDVDPlayer::OnExit() deleting input stream
08:19:39 T:3070748480 M:357838848  NOTICE: DVDPlayer: finished waiting
08:19:40 T:3070748480 M:357838848  NOTICE: CDVDPlayer::CloseFile()
08:19:40 T:3070748480 M:357838848 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
08:19:40 T:3070748480 M:357838848  NOTICE: DVDPlayer: waiting for threads to exit
08:19:40 T:3070748480 M:357838848  NOTICE: DVDPlayer: finished waiting

glxinfo:
Code:
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_OML_swap_method,
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,
    GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer
client glx vendor string: ATI
client glx version string: 1.3
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
    GLX_ARB_get_proc_address, GLX_SGI_video_sync, GLX_ARB_multisample,
    GLX_ATI_pixel_format_float, GLX_ATI_render_texture
GLX version: 1.2
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context,
    GLX_ARB_multisample
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI MOBILITY RADEON 9600/9700 Series
OpenGL version string: 2.0.6473 (8.37.6)

Ubuntu 7.10, installed restricted drivers for ATI card.
(Without those restriced drivers, i have video-playback, but only in green color. FPS is about 23-25 then).
Reply
#19
Latest SVN (r11367) locks up xbmc completely instead of green screen.

I get this in system log:
Code:
[  239.680000] [fglrx:firegl_free_mutex] *ERROR* mutex id 0x00000002 not found in mutex list
[  242.100000] [fglrx:firegl_free_mutex] *ERROR* mutex id 0x00000002 not found in mutex list
[  243.780000] [fglrx:firegl_free_mutex] *ERROR* mutex id 0x00000002 not found in mutex list

I'll see if I can produce some kind of stack trace.
Reply
#20
Not sure how to get the stack trace since xbmc doesn't crash but just locks up?!


I did find this in xbmc.log tho which is the last entries:

Code:
20:34:11 T:2712521616 M: 10952704    INFO: GL: OpenGL version 0.0 detected
20:34:11 T:2712521616 M: 10952704    INFO: GL: NPOT textures are supported through GL_ARB_texture_rectangle extension
20:34:11 T:2712521616 M: 10952704  NOTICE: GL: Creating power of two texture of size 1024 x 512
20:34:11 T:2712521616 M: 10952704  NOTICE: GL: Creating power of two texture of size 1024 x 256
20:34:11 T:2712521616 M: 10952704  NOTICE: GL: Creating power of two texture of size 1024 x 256
20:34:11 T:2712521616 M: 10952704  NOTICE: GL: Creating power of two texture of size 1024 x 512
20:34:11 T:2712521616 M: 10952704  NOTICE: GL: Creating power of two texture of size 1024 x 256
20:34:11 T:2712521616 M: 10952704  NOTICE: GL: Creating power of two texture of size 1024 x 256
20:34:12 T:2766138256 M:  8929280   ERROR: thread terminated and still owns graphic context. releasing it.
Reply
#21
i get same in log as maudib
video is a garbage still picture

time for a dev to get a ATI card Smile
Reply
#22
Is there anything we can do to help debug this problem ?
I really would like to use my laptop (with ATI GPU) to run XBMC.
Reply
#23
Please give r11435+ a shot and report back. Note that a 'make clean' is required if you're doing a manual build.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#24
d4rk Wrote:Please give r11435+ a shot and report back. Note that a 'make clean' is required if you're doing a manual build.

Big GrinBig Grin
Fresh install Ubuntu 7.10
ATI Radeon Mobility 9600/9700 serie chip.
Installed restricted driver, and FULL-COLOR video.
Thanks a lot !
Reply
#25
Deleted the XBMC Dir and did a fresh build today.
Now i see the video but it is in Greyscale and unzoomed up in the left-top corner:
Image
I see no errors in XBMC.log.
I've tried Fullscreen.
Ati Radeon X300 and restricted drivers, ran envy a couple of days ago...
This is from the Console:
Code:
WARNING: The XBMC_HOME environment variable is not set.
++ WARN: could not retrieve file info for `image.nrg': No such file or directory
++ WARN: can't open nrg image file image.nrg for reading
CritSect[0x0x8aca664] WARNING: Some other thread trying to leave our critical section.
CritSect[0x0x8aca664] WARNING: Some other thread trying to leave our critical section.
CRITSEC[0x0x8aca664]: Trying to enter destroyed section.
CritSect[0x0x8aca664] WARNING: Some other thread trying to leave our critical section.
CRITSEC[0x0x8aca664]: Trying to exit destroyed section.
CRITSEC[0x0x8aca664]: Trying to restore destroyed section.
Reply
#26
ajje Wrote:Deleted the XBMC Dir and did a fresh build today.
Now i see the video but it is in Greyscale and unzoomed up in the left-top corner:

Same problem here on x1200
Reply
#27
TheWoert Wrote:Big GrinBig Grin
Fresh install Ubuntu 7.10
ATI Radeon Mobility 9600/9700 serie chip.
Installed restricted driver, and FULL-COLOR video.
Thanks a lot !

Blush
Same config, but used Envy to install ATI drivers, and now the same weird display as mentioned by maudib and ajje Blush
Reply
#28
Can you post the GL related parts of the log
Code:
cat xbmc.log | grep GL
Always read the XBMC online-manual, FAQ and search the forum before posting.
Please read and follow the forum rules.
For troubleshooting and bug reporting, please make sure you read this first.


Image
Reply
#29
TheWoert Wrote:Blush
Same config, but used Envy to install ATI drivers, and now the same weird display as mentioned by maudib and ajje Blush

Then I guess its more a ATI problem than a XBMC problem if the ubuntu drivers are fine but the envy drivers suck
Reply
#30
d4rk Wrote:Can you post the GL related parts of the log
Code:
cat xbmc.log | grep GL
At this moment I can only supply that for my " working" xbmc.log, the one with only the "restricted driver" :
Code:
23:15:38 T:3070052160 M:113180672    INFO: GLX Info: NOT Using destination window
23:15:39 T:3070052160 M:105295872    INFO: GLX Info: Using parent window
23:15:39 T:3070052160 M:105295872    INFO: GLX Info: Creating unshared context
23:15:39 T:3070052160 M:103632896    INFO: GL: OpenGL Vendor String: ATI Technologies Inc.
23:15:52 T:2903042960 M: 84631552   DEBUG: GL: Sharing screen surface for thread 2903042960
23:15:53 T:3070052160 M: 77414400  NOTICE: GL: OpenGL version 2.0 detected
23:15:53 T:3070052160 M: 77414400  NOTICE: GL: NPOT textures are supported through GL_ARB_texture_rectangle extension
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating Y NPOT texture of size 1280 x 720
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating U NPOT texture of size 640 x 360
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating V NPOT texture of size 640 x 360
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating Y NPOT texture of size 1280 x 720
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating U NPOT texture of size 640 x 180
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating V NPOT texture of size 640 x 180
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating Y NPOT texture of size 1280 x 720
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating U NPOT texture of size 640 x 180
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating V NPOT texture of size 640 x 180
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating Y NPOT texture of size 1280 x 720
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating U NPOT texture of size 640 x 360
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating V NPOT texture of size 640 x 360
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating Y NPOT texture of size 1280 x 720
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating U NPOT texture of size 640 x 180
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating V NPOT texture of size 640 x 180
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating Y NPOT texture of size 1280 x 720
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating U NPOT texture of size 640 x 180
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Creating V NPOT texture of size 640 x 180
23:15:53 T:3070052160 M: 77414400  NOTICE: GL: Selecting YUV 2 RGB Progressive Shader
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Shader compilation log:
23:15:53 T:3070052160 M: 77414400   DEBUG: GL: Shader compilation log:
23:19:19 T:2894650256 M: 52621312   DEBUG: GL: Sharing screen surface for thread 2894650256
23:19:19 T:2894650256 M: 52850688   DEBUG: GL: Deleting texture field 1 plane 1
23:19:19 T:2894650256 M: 52850688   DEBUG: GL: Deleting texture field 1 plane 2
23:19:19 T:2894650256 M: 52850688   DEBUG: GL: Deleting texture field 1 plane 3
23:19:19 T:2894650256 M: 52850688   DEBUG: GL: Deleting texture field 2 plane 1
23:19:19 T:2894650256 M: 52850688   DEBUG: GL: Deleting texture field 2 plane 2
23:19:19 T:2894650256 M: 52850688   DEBUG: GL: Deleting texture field 2 plane 3
23:19:19 T:2894650256 M: 52850688   DEBUG: GL: Deleting texture field 3 plane 1
23:19:19 T:2894650256 M: 52850688   DEBUG: GL: Deleting texture field 3 plane 2
23:19:19 T:2894650256 M: 52850688   DEBUG: GL: Deleting texture field 3 plane 3
23:19:19 T:2894650256 M: 54771712   DEBUG: GL: Deleting texture field 1 plane 1
23:19:19 T:2894650256 M: 54771712   DEBUG: GL: Deleting texture field 1 plane 2
23:19:19 T:2894650256 M: 54771712   DEBUG: GL: Deleting texture field 1 plane 3
23:19:19 T:2894650256 M: 54771712   DEBUG: GL: Deleting texture field 2 plane 1
23:19:19 T:2894650256 M: 54771712   DEBUG: GL: Deleting texture field 2 plane 2
23:19:19 T:2894650256 M: 54771712   DEBUG: GL: Deleting texture field 2 plane 3
23:19:19 T:2894650256 M: 54771712   DEBUG: GL: Deleting texture field 3 plane 1
23:19:19 T:2894650256 M: 54771712   DEBUG: GL: Deleting texture field 3 plane 2
23:19:19 T:2894650256 M: 54771712   DEBUG: GL: Deleting texture field 3 plane 3

I did a complete new install Ubuntu 7.10, and this time without the "Envy ATI" drivers, just the restricted drivers (from Ubuntu).
XBMC runs smooth (full-color). Cool

Played a little to get 3D-desktop working:
Installed xserver-xgl: 3D-desktop works fine, but XBMC doesn't even startup.
Removed xserver-xgl, and XBMC runs smooth (full-color).
Installed Envy ATI driver: 3D-desktop works fine, XBMC runs, but SLOW. Video playback is like ajje mentioned in post 166141.

Jezz_X Wrote:Then I guess its more a ATI problem than a XBMC problem if the ubuntu drivers are fine but the envy drivers suck
What can I say, YES, in a way you are correct. XBMC does a fine job in displaying video on my laptop with ATI chip.
And for a HTPC that is all it should do.
I'm new to Linux, started using it 2 weeks ago, as a (future) replacement for my "real" XBOX with XBMC.
I also tried some other video-displaying tools (Freevo, MythTv, VLC) and they work fine even with the 3D-desktop.
So, even if the ATI drivers suck, they seem to work from other software packages.
I'm trying to help getting this solved, not just for me, but there seem so be more ATI users having same problems.

Bottom-line: On my laptop (Compaq nc6000) I can view a 720p video with XBMC now. And That's awesome !!!
Reply
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 12

Logout Mark Read Team Forum Stats Members Help
Green screen instead of video with ATI/AMD graphics3