Scraht Don't open file with extension .srt

Bug #1090184 reported by tanot18
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Scratch
Fix Released
Medium
Unassigned

Bug Description

I can't open file extension *.srt with Scratch this files are used in subtitle of the movies.

ProblemType: Bug
DistroRelease: elementary OS 0.2
Package: scratch-text-editor 1.1.1+r963-0+pkg39~precise1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.2.0-34.53-generic-pae 3.2.33
Uname: Linux 3.2.0-34-generic-pae i686
ApportVersion: 2.0.1-0ubuntu15+elementary3~precise1
Architecture: i386
CrashDB: scratch_text_editor
Date: Thu Dec 13 18:28:12 2012
ExecutablePath: /usr/bin/scratch-text-editor
InstallationMedia: elementary OS 0.2 "Luna" - Beta 1 i386 (20121114)
MarkForUpload: True
SourcePackage: scratch-text-editor
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
tanot18 (tonytoh1) wrote :
Revision history for this message
Mario Guerriero (mefrio-g) wrote :

What do you mean with "I can't open that"? Could you attach the file you "can't open"?

Changed in scratch:
status: New → Incomplete
Revision history for this message
tanot18 (tonytoh1) wrote :

Apologize for my English. I try say is ... Scratch can't open files with extension .str

I attach file

Revision history for this message
juanmatias (juanmatias) wrote :

Hi all.
I have a problem like this.

Indeed, Scratch does open the file, but show it empty.
I think it's an encoding issue since it happens with Spanish subtitles.

At the end I will paste the Scratch's output when I run it from command line.

I'm attaching two files, the English version is opened without trouble. The Spanish one doesn't.

I'm using Scratch 1.1.1.

Is there a way to collect more info about this? I mean, try to debug Scratch or something like this?

Thanks.

________________________________

(scratch-text-editor:6033): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:340:30: '0' is not a valid color name
[_LOG_LEVEL_INFO 13:50:05.329616] Application.vala:75: Scratch version: 1.1.1
[_LOG_LEVEL_INFO 13:50:05.329769] Application.vala:77: Kernel version: 3.2.0-36-generic
[_LOG_LEVEL_DEBUG 13:50:05.330182] Settings.vala:155: Loading settings from schema 'org.elementary.Scratch.SavedState'
[_LOG_LEVEL_DEBUG 13:50:05.331047] Settings.vala:155: Loading settings from schema 'org.elementary.Scratch.Settings'
[_LOG_LEVEL_DEBUG 13:50:05.334427] Settings.vala:155: Loading settings from schema 'org.elementary.Scratch.Services'
[_LOG_LEVEL_DEBUG 13:50:05.407952] [Gtk] Connecting to session manager
[_LOG_LEVEL_WARN 13:50:05.457493] [GLib-GObject] invalid (NULL) pointer instance
[_LOG_LEVEL_FATAL 13:50:05.457629] [GLib-GObject] g_signal_connect_object: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
[_LOG_LEVEL_FATAL 13:50:05.457721] Scratch will not function properly.
[_LOG_LEVEL_FATAL 13:50:18.487334] [Gtk] gtk_container_remove: assertion `GTK_IS_CONTAINER (container)' failed
[_LOG_LEVEL_FATAL 13:50:18.487436] Scratch will not function properly.
[_LOG_LEVEL_FATAL 13:50:18.488228] [Gtk] gtk_container_remove: assertion `GTK_IS_CONTAINER (container)' failed
[_LOG_LEVEL_FATAL 13:50:18.488328] Scratch will not function properly.
[_LOG_LEVEL_WARN 13:50:18.795391] Encoding.vala:271: Could not execute "/usr/share/scratch/scripts/chardetect.py": Failed to execute child process "python" (No such file or directory)
[_LOG_LEVEL_WARN 13:50:18.795565] Encoding.vala:274: Could not automatically detect encoding, assuming UTF-8
[_LOG_LEVEL_WARN 13:50:18.795905] Encoding.vala:293: Invalid byte sequence in conversion input
[_LOG_LEVEL_WARN 13:50:18.796088] Document.vala:273: Couldn't read file's content: My Neighbor Totoro.esp.srt
[_LOG_LEVEL_FATAL 13:50:18.800580] [Gtk] gtk_text_buffer_set_text: assertion `text != NULL' failed
[_LOG_LEVEL_FATAL 13:50:18.800691] Scratch will not function properly.
[_LOG_LEVEL_FATAL 13:50:19.719946] [Gtk] gtk_widget_event: assertion `WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
[_LOG_LEVEL_FATAL 13:50:19.720027] Scratch will not function properly.

Revision history for this message
Atom Stark (atomstark) wrote :

Same for me, scratch shows an empty file with the exactky same errors than juanmatias.

Changed in scratch:
status: Incomplete → Confirmed
Revision history for this message
Mario Guerriero (mefrio-g) wrote :

This files can be opened in Scratch 2.0

Changed in scratch:
status: Confirmed → Fix Released
importance: Undecided → Medium
milestone: none → 2.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.