Media players failure

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
lugligino
Posts: 46
Joined: Thu 10 Jan 2008, 13:37
Location: Italy

Media players failure

#1 Post by lugligino »

Hi all,
when I try to start gxine or mplayer or vlc they crash. :(
If I run in console the message is

Code: Select all

# gxine
AFD changed from -2 to -1
The program 'gxine' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 369 error_code 11 request_code 140 minor_code 19)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
while the second time player doesn't crash and only the message below i displayed:

Code: Select all

# gxine
AFD changed from -2 to -1
A similar situation occurs also when the browser play some content using a plugin like gxine: first time the page is loaded, the plugin starts and crashes, if I reload the page the plugin run regularly. :?
I googled a little and find that the badalloc errors are common and related often to xorg. Some video cards are not so smartly recognized by xorg but some changes can be done in the file xorg.conf, often some memory options can be set with the right parameters solving the problem.
Unfortunately I wasn't able to find a remedy for my hardware. You can see below my xorg.conf, is there anything wrong?

Code: Select all

Special base config file used in Puppy Linux.

# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
	Load "synaptics"

# This loads the DBE extension module.

    Load        "dbe"  	# Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the font modules
    Load        "type1"
    Load        "freetype"

# This loads xtrap extension, used by xrandr
    Load       "xtrap"

# This loads the GLX module (if present)
    Load       "glx"

# This loads dri module (if present)
    Load       "dri"

EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath	"/usr/X11R7/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)

    FontPath   "/usr/X11R7/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R7/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R7/lib/X11/fonts/TTF/"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option "DontVTSwitch"

# Enables mode switching with xrandr
# There is a report that this can cause Xorg not to work on some
# video hardware, so default is commented-out...
# but i want to use it in xorgwizard so leave on...

    Option "RandR" "on"

EndSection

#everything past here is auto-generated by Puppy's Xorg Wizard...


Section "ServerLayout"
	InputDevice "Synaptics Mouse" "AlwaysCore"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "XkbRules" "xorg"
	Option      "XkbModel" "pc102"
	Option      "XkbLayout" "it" #xkeymap0
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2" #mouse0protocol
	Option	    "Device" "/dev/mouse"
	#Option      "Emulate3Buttons"
	#Option      "Emulate3Timeout" "50"
	Option      "ZAxisMapping" "4 5" #scrollwheel
EndSection

Section "InputDevice"
	Identifier "Synaptics Mouse"
	Driver "synaptics"
	Option "Device" "/dev/psaux"
	Option "Protocol" "auto-dev"
	Option "LeftEdge" "1700"
	Option "RightEdge" "5300"
	Option "TopEdge" "1700"
	Option "BottomEdge" "4200"
	Option "FingerLow" "25"
	Option "FingerHigh" "30"
	Option "MaxTapTime" "0"
	Option "MaxTapMove" "220"
	Option "VertScrollDelta" "100"
	Option "MinSpeed" "0.10"
	Option "MaxSpeed" "0.30"
	Option "AccelFactor" "0.0030"
	Option "SHMConfig" "on"
	#Option "Repeater" "/dev/ps2mouse"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
	HorizSync    31.5-37
	VertRefresh  40-70
	#UseModes     "Modes0" #monitor0usemodes
	Option      "PreferredMode" "800x600"
	EndSection
	
Section "Modes"
	Identifier "Modes0"
	#modes0modeline0
EndSection

Section "Device"
	### Available Driver options are:-
	### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
	### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
	### [arg]: arg optional
	#Option     "pci_burst"          	# [<bool>]
	#Option     "fifo_conservative"  	# [<bool>]
	#Option     "fifo_moderate"      	# [<bool>]
	#Option     "fifo_aggressive"    	# [<bool>]
	#Option     "pci_retry"          	# [<bool>]
	#Option     "NoAccel"            	# [<bool>]
	#Option     "set_mclk"           	# <freq>
	#Option     "show_cache"         	# [<bool>]
	#Option     "HWCursor"           	# [<bool>]
	#Option     "SWCursor"           	# [<bool>]
	#Option     "ShadowFB"           	# [<bool>]
	#Option     "Rotate"             	# [<str>]
	#Option     "VideoKey"           	# <i>
	#Option     "ByteSwap"           	# [<bool>]
	#Option     "Interlaced"         	# [<bool>]
	#Option     "UseBIOS"            	# [<bool>]
	#Option     "ZoomOnLCD"          	# [<bool>]
	#Option     "Dualhead"           	# [<bool>]
	#Option     "AccelMethod"        	# <str>
	Identifier  "Card0"
	Driver      "siliconmotion" #card0driver
	VendorName  "Silicon Motion, Inc."
	BoardName   "SM710 LynxEM"
	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
    DefaultDepth 24
    Subsection "Display"
        Depth       24
        Modes       "800x600"
    EndSubsection
EndSection

#PuppyHardwareProfile=Silicon_Motion_SM710
I'm running Puppy 4.3.1 full install in a HP Omnibook Xe2 DD with BIOS PhoenixBios DD.M2.03, PII 366 MHz, 256MB RAM, 4GB HD.
I'm waiting your comments.
Bye

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#2 Post by Béèm »

If you didn't do so already, make a swap file/partition of at least 1 1/2 your ram size.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
lugligino
Posts: 46
Joined: Thu 10 Jan 2008, 13:37
Location: Italy

#3 Post by lugligino »

Béèm wrote:If you didn't do so already, make a swap file/partition of at least 1 1/2 your ram size.
Hi Béèm,
I partitioned my disk in this way (I read from gparted):

Partition Filesystem Mount point Size
/dev/sda1 ext2 / 3.98GB
/dev/sda2 [lock] linux-swap 572MB

sda1 is strangely not active but if I try to mount it results just mounted probably a false indication. sda2 results active (I hope it's true). sda2 is loaded successfully in the initial boot.

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#4 Post by Béèm »

Are you sure the swap is used?
You can verify this by typing free in a console/terminal.

There is that indication of insufficient resource, so that's how I came on insufficient memory to do the operation.

So if swap is active, I don't know what could be causing this isue.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
lugligino
Posts: 46
Joined: Thu 10 Jan 2008, 13:37
Location: Italy

#5 Post by lugligino »

The command output is:

Code: Select all

# free
                     total         used         free       shared      buffers
  Mem:       254532       212976        41556            0          204
 Swap:       586364            0           586364
Total:         840896       212976       627920
# 
What's your opinion?

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#6 Post by Béèm »

OK, the swap seems to be there, altho not used at the moment you issued free
One other thing comes to mind: a hardware memory failure.
You can test memory with the ultimate boot CD
I used that one already.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
lugligino
Posts: 46
Joined: Thu 10 Jan 2008, 13:37
Location: Italy

#7 Post by lugligino »

Béèm wrote:OK, the swap seems to be there, altho not used at the moment you issued free
One other thing comes to mind: a hardware memory failure.
You can test memory with the ultimate boot CD
I used that one already.
I dowloaded the UBCD 4.1.1 and run memtest-86 for several hours. No errors at all.
I noted that someone was able to solve similar problem but with different video card. For example see a solution in http://ubuntuforums.org/archive/index.php/t-336459.html at near the last posts. It consists adding an option line in xorg.conf. The solution is for i810 device, but I can't see anything similar for my device SM710 LynxEM. Any idea?

User avatar
lugligino
Posts: 46
Joined: Thu 10 Jan 2008, 13:37
Location: Italy

#8 Post by lugligino »

Hi
I tried to read a flash file with gxine. Console output was:

Code: Select all

# gxine /root/FlashTR92TF 
CDROMREADTOCHDR: No medium found
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
AFD changed from -2 to -1
The program 'gxine' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 371 error_code 11 request_code 140 minor_code 19)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
# gxine /root/FlashTR92TF 
CDROMREADTOCHDR: No medium found
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
AFD changed from -2 to -1

Note that I have to play gxine two times.
Generally on the first run gxine [video file] fails on my system also if player is called by the browser but it's not a fatal error because if I run again or reload the page gxine works.
Only with flv players also the second run fails.
gxine time indication goes accelerating to the end of the film and gxine stops (no crash).
I try several codecs distro but no way.
Any hint?

User avatar
xman
Posts: 144
Joined: Thu 24 Sep 2009, 06:31

#9 Post by xman »

lugligino wrote:Note that I have to play gxine two times. Generally on the first run gxine [video file] fails on my system also if player is called by the browser but it's not a fatal error because if I run again or reload the page gxine works.
I solved this double clicking problem by changing gxine's default video driver setting from auto to xshm. If you want to try the same, open gxine and go to File>>Configure>>Preferences>>gui, and change experience level from Beginner to Advanced. After that, you can see gxine's video menu. Open it and change video driver to xshm.

User avatar
lugligino
Posts: 46
Joined: Thu 10 Jan 2008, 13:37
Location: Italy

#10 Post by lugligino »

xman wrote:
lugligino wrote:Note that I have to play gxine two times. Generally on the first run gxine [video file] fails on my system also if player is called by the browser but it's not a fatal error because if I run again or reload the page gxine works.
I solved this double clicking problem by changing gxine's default video driver setting from auto to xshm. If you want to try the same, open gxine and go to File>>Configure>>Preferences>>gui, and change experience level from Beginner to Advanced. After that, you can see gxine's video menu. Open it and change video driver to xshm.
Thanks xman. It worked. :)
Any hint for flv video?

Post Reply