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 623646 - Crash when RGBA is enabled
Crash when RGBA is enabled
Status: RESOLVED OBSOLETE
Product: gnome-subtitles
Classification: Other
Component: general
unspecified
Other Linux
: Normal major
: ---
Assigned To: Maintainers of GNOME subtitles
Maintainers of GNOME subtitles
: 738224 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-07-06 02:24 UTC by cakekong
Modified: 2018-09-21 16:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description cakekong 2010-07-06 02:24:05 UTC
(this bug was first reported on Launchpad : https://bugs.launchpad.net/ubuntu/+sour … bug/602094)

Binary package hint: gnome-subtitles

- I launch 'gnome-subtitles' in a terminal
- if I modify a .srt file, I have no problem
- but when I select a sub-title located in a folder with a video, this video having the same name as my sub-tittle (which allows me to launch the video and the sub-title at the same time, without changing the subtitle), then gnome-subtitles crashes with the following log :

tony@tony-laptop:~$ gnome-subtitles

progname=gnome-subtitles; RGBA=on
Got 12 languages.

(gnome-subtitles:7548): Gtk-WARNING **: Attempting to read the recently used resources file at `/home/tony/.recently-used.xbel', but the parser failed: Erreur de lecture du fichier « /home/tony/.recently-used.xbel » : est un dossier.
Detected encodings: windows-1252
Trying the encoding Windows-1252
Trying to autodetect the subtitle format.
[*] opened /home/tony/Bureau/Lost/Saison 2/Episode 16/Lost - S02E16 - The Whole Truth.srt with encoding I18N.West.CP1252 and format SubRip
Got video info: width=608, height=336, aspect_Ratio=1,809524, frame_rate=23,97602, has_audio=True, has_video=True
Got video duration: 00:42:12.2880000
The program 'gnome-subtitles' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 53 error_code 8 request_code 132 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.)

Same log if I launch with the following command-line:
$ gnome-subtitles --sync

Remark : this crash happens only recently, as before i could do this operation without any problem. I did not install anything that could do this bug.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gnome-subtitles 0.9.1-2
ProcVersionSignature: Ubuntu 2.6.32-23.37-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-23-generic i686
Architecture: i386
Date: Tue Jul 6 03:50:44 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANG=fr_FR.utf8
 SHELL=/bin/bash
SourcePackage: gnome-subtitles
Comment 1 Yann 2010-07-06 10:54:46 UTC
original bug report on Launchpad : https://bugs.launchpad.net/gnome-subtitles/+bug/602094
Comment 2 Pedro Castro 2010-07-06 21:08:20 UTC
Hi, and thanks for the bug report. I have some questions:
1) Are you opening the file directly from nautilus or using File->Open?
2) If you open just the subtitle file, and then open the video separately, will it crash opening the video?
3) Does the error occur if you disable the "Automatically Choose Video to Open" option in the Preferences?
Comment 3 cakekong 2010-07-06 21:14:27 UTC
1) File -> Open
2) Yes
3)If I desable this option and then open the video : crash
Comment 4 Pedro Castro 2010-07-06 22:12:04 UTC
Ok, very good. Is Totem Movie Player working correctly?

Please try reinstalling the gnome-subtitles package. If that doesn't work, try reinstalling libgstreamer-plugins-base0.10 and libgstreamer0.10. This really looks like an installation issue.
Comment 5 cakekong 2010-07-06 22:22:04 UTC
Totem works correctly.
After reinstalling ... always broken ...
Comment 6 Pedro Castro 2010-07-06 22:53:36 UTC
Googling a bit found this link which may be the same problem:
http://ohioloco.ubuntuforums.org/showthread.php?p=9307478

Please try running gnome-subtitles as root to see if it works. If yes, this "RGBA" thing needs to be investigated, and why it's not working with gnome-subtitles+gstreamer.
Comment 7 cakekong 2010-07-06 23:00:53 UTC
As root, it works !!
What do I do now ? Waiting ? ^^
Comment 8 Pedro Castro 2010-07-07 21:40:04 UTC
According to this page (https://wiki.ubuntu.com/DesktopTeam/RgbaGtkWithPPA/), it seems RGBA in Gnome isn't stable yet, as many applications are crashing. Also:
Q: Why doesn't Totem run with RGBA?
A: Because it has an embedded (gstreamer) window. Most applications with embedded windows don't seem to work well with RGBA.

There seems to be a fix implemented in Totem though, in bug #618597.

On the meanwhile, the best will be to either disable RGBA or add gnome-subtitles to its blacklist, as mentioned in the thread I posted before.
Comment 9 Yann 2010-07-09 02:03:44 UTC
Hi,
sorry, Cakekong and i don't understand this RBA thing. Is it installed by default in Lucid ?
If not, then I suppose that Cakekong does not have to disable or blacklist it.
If yes, how to disable or blacklist it ? I found "add it to your RGBA blacklist in ~/.profile" (in this post: http://ohioloco.ubuntuforums.org/showpost.php?p=9307583&postcount=16), but I could not find any .profile file in my home or system.
Comment 10 Pedro Castro 2010-07-11 23:04:16 UTC
RGBA isn't installed by default in lucid, have you checked for any installed packages containing "rgba" on their names?
Comment 11 Yann 2010-07-12 06:00:52 UTC
I just checked with Synaptic, there is no Lucid package with "rgba" in its name.
Comment 12 Pedro Castro 2010-07-25 13:52:45 UTC
Do you have gnome-color-chooser installed? If affirmative, according to https://wiki.ubuntu.com/DesktopTeam/LucidRgbaGtk there should be an option under the theme Preferences to enable or disable RGBA.
Comment 13 cakekong 2010-07-25 13:56:28 UTC
Don't work ...
Comment 14 Pedro Castro 2010-07-25 14:28:18 UTC
Try taking a look at the "/etc/profile.d/gtkrgba.sh" file, in case you have it. Other than that, I suggest you try the Ubuntu forums, they should have knowledge on RGBA.
Comment 15 Pedro Castro 2015-01-18 22:40:32 UTC
According to a comment on bug #738224, adding the following lines to ~/.profile prevents Gnome Subtitles from crashing when the crash is due to RGBA:

export GTK_MODULES=rgba
export GTK_RGBA_APPS=allbut:gnome-subtitles
Comment 16 Pedro Castro 2015-01-18 22:42:29 UTC
*** Bug 738224 has been marked as a duplicate of this bug. ***
Comment 17 GNOME Infrastructure Team 2018-09-21 16:07:34 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-subtitles/issues/46.