Wont start up. IndexError: string index out of range

Bug #617873 reported by DebianSidUser
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-schedule (Debian)
Fix Released
Unknown
gnome-schedule (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gnome-schedule

bash@debian:~$ gnome-schedule
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
/usr/share/gnome-schedule/mainWindow.py:158: DeprecationWarning: Use the new widget gtk.Tooltip
  tip = gtk.Tooltips ()
/usr/share/gnome-schedule/mainWindow.py:159: DeprecationWarning: Use the new widget gtk.Tooltip
  tip.enable ()
Traceback (most recent call last):
  File "/usr/share/gnome-schedule/gnome-schedule.py", line 74, in <module>
    mainWindow = mainWindow.main(debug_flag, False, pr, manual_poscorrect)
  File "/usr/share/gnome-schedule/mainWindow.py", line 257, in __init__
    self.schedule_reload ()
  File "/usr/share/gnome-schedule/mainWindow.py", line 308, in schedule_reload
    data = self.at.read ()
  File "/usr/share/gnome-schedule/at.py", line 514, in read
    array_or_false = self.parse (line)
  File "/usr/share/gnome-schedule/at.py", line 174, in parse
    if script[-1] == "\n":
IndexError: string index out of range

I did some googling and some people said delete everything in ./gnome/gnome-schedule/crontab/ but that didn't really do anything...

Revision history for this message
DebianSidUser (raza) wrote :

I'm using gnome-schedule 2.1.1-3

Revision history for this message
GauteHope (eg) wrote :

Could you provide the output of:
$ atq

and at -c [job id] of the task, it might be that one of your scheduled at scripts are causing this bug. This is a one time task and the files for those are located in gnome-schedule/at. I don't necessarily recommend deleting everything in those folders thou.

- Gaute

Revision history for this message
DebianSidUser (raza) wrote :

174 Sat Aug 14 12:59:00 2010 a bash
185 Sat Aug 14 12:59:00 2010 a bash
172 Sat Aug 14 12:59:00 2010 a bash
189 Sat Aug 14 12:59:00 2010 a bash
188 Sat Aug 14 12:59:00 2010 a bash
127 Sun Aug 15 11:08:00 2010 a bash
204 Sat Aug 14 21:55:00 2010 a bash
183 Sat Aug 14 12:59:00 2010 a bash
175 Sat Aug 14 12:59:00 2010 a bash
186 Sat Aug 14 12:59:00 2010 a bash
177 Sat Aug 14 12:59:00 2010 a bash
187 Sat Aug 14 12:59:00 2010 a bash
173 Sat Aug 14 12:59:00 2010 a bash
176 Sat Aug 14 12:59:00 2010 a bash
201 Sun Aug 15 12:00:00 2010 a bash
179 Sat Aug 14 12:59:00 2010 a bash
181 Sat Aug 14 12:59:00 2010 a bash
191 Sat Aug 14 12:59:00 2010 a bash
192 Sat Aug 14 12:59:00 2010 a bash
125 Sun Aug 15 11:08:00 2010 a bash
124 Sun Aug 15 11:08:00 2010 a bash
180 Sat Aug 14 12:59:00 2010 a bash
178 Sat Aug 14 12:59:00 2010 a bash
184 Sat Aug 14 12:59:00 2010 a bash
126 Sun Aug 15 11:08:00 2010 a bash
190 Sat Aug 14 12:59:00 2010 a bash
203 Sat Aug 14 22:00:00 2010 a bash
123 Sun Aug 15 11:08:00 2010 a bash
171 Sat Aug 14 12:59:00 2010 a bash
122 Sun Aug 15 11:08:00 2010 a bash
182 Sat Aug 14 12:59:00 2010 a bash

Revision history for this message
DebianSidUser (raza) wrote :

bash@debian:~$ at -c 122
#!/bin/sh
# atrun uid=1000 gid=1000
# mail bash 0
umask 22
GDM_KEYBOARD_LAYOUT=us; export GDM_KEYBOARD_LAYOUT
GNOME_KEYRING_PID=24134; export GNOME_KEYRING_PID
USER=bash; export USER
SSH_AGENT_PID=24193; export SSH_AGENT_PID
ORBIT_SOCKETDIR=/tmp/orbit-bash; export ORBIT_SOCKETDIR
HOME=/home/bash; export HOME
XDG_SESSION_COOKIE=cea3fd00c80fb58c8ee4e20400000008-1281796053.947465-710316905; export XDG_SESSION_COOKIE
DESKTOP_SESSION=default; export DESKTOP_SESSION
GTK_MODULES=canberra-gtk-module; export GTK_MODULES
GTK_RC_FILES=/etc/gtk/gtkrc:/home/bash/.gtkrc-1.2-gnome2; export GTK_RC_FILES
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bDPui9TprC,guid=faa50bdf7dd7cd74bf4c18df0001f7b1; export DBUS_SESSION_BUS_ADDRESS
GNOME_KEYRING_CONTROL=/tmp/keyring-lf04k7; export GNOME_KEYRING_CONTROL
LOGNAME=bash; export LOGNAME
POSIXLY_CORRECT=enabled; export POSIXLY_CORRECT
USERNAME=bash; export USERNAME
GNOME_DESKTOP_SESSION_ID=this-is-deprecated; export GNOME_DESKTOP_SESSION_ID
WINDOWPATH=8; export WINDOWPATH
GDM_LANG=en_CA.utf8; export GDM_LANG
SESSION_MANAGER=local/debian:@/tmp/.ICE-unix/24158,unix/debian:/tmp/.ICE-unix/24158; export SESSION_MANAGER
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games; export PATH
LANG=en_CA.utf8; export LANG
XAUTHORITY=/var/run/gdm3/auth-for-bash-LPs6ZK/database; export XAUTHORITY
SSH_AUTH_SOCK=/tmp/keyring-lf04k7/ssh; export SSH_AUTH_SOCK
GDMSESSION=default; export GDMSESSION
GPG_AGENT_INFO=/tmp/seahorse-wed8UR/S.gpg-agent:24207:1; export GPG_AGENT_INFO
PWD=/home/bash; export PWD
XDG_DATA_DIRS=/usr/share/gnome:/usr/share/gdm/:/usr/local/share/:/usr/share/; export XDG_DATA_DIRS
PYTHONPATH=::/usr/lib/python2.5/site-packages/gtk-2.0/:; export PYTHONPATH
cd /home/bash || {
  echo 'Execution directory inaccessible' >&2
  exit 1
}
###### ---- GNOME_SCHEDULE_SCRIPT_DELIMITER #####
unset POSIXLY_CORRECT
DISPLAY=:0.0; export DISPLAY;
XAUTHORITY=/home/bash/.Xauthority; export XAUTHORITY;
PYTHONPATH=::/usr/lib/python2.5/site-packages/gtk-2.0/:$PYTHONPATH /usr/bin/python /usr/share/gnome-schedule/xwrapper.py a

xwrapper=$?;
if [ $xwrapper -eq 0 ]; then
    echo "all fine";
else
    echo "xwrapper failed.";
    exit;
fi
vlc ~/Music/RetsaM\ -\ You\ Just\ Want\ To\ Go\ \(Glacius\ Remix\).mp3

Revision history for this message
GauteHope (eg) wrote :

Could you try to replace /usr/share/gnome-schedule/at.py with the attached file.

It tries a simpler approach for trimming the script; for your reference, patch here: http://ix.io/185

- gaute

Revision history for this message
GauteHope (eg) wrote :

Please let me know if this solved the problem.

- gaute

Revision history for this message
Archish (archish) wrote :

The patch works well. Thanks :)

Tested with Ubuntu 10.04

Revision history for this message
GauteHope (eg) wrote :

Great! The patch is included in the newest release: http://gaute.vetsj.com/2010/09/16/gnome-schedule-2-1-2-released.html

- gaute

Changed in gnome-schedule (Ubuntu):
status: New → Fix Released
status: Fix Released → Fix Committed
Revision history for this message
JC Hulce (soaringsky) wrote :

This bug has been marked as Fix Committed for over a year. If the fix has made it into Ubuntu, please mark this bug as Fix Released. If the fix has been released upstream, but not Ubuntu, create a new bug asking for the new version and tag it with upgrade-software-version. If this bug has not been fixed anywhere, change the status back to Confirmed.

Revision history for this message
GauteHope (eg) wrote :

I do not have an Ubuntu installation, and this package is well out of sync with upstream. This specific bug has been fixed in newer releases.

http://gaute.vetsj.com/2011/11/24/gnome-schedule-2-2-0.html

Regards, Gaute

Changed in gnome-schedule (Ubuntu):
status: Fix Committed → Confirmed
Changed in gnome-schedule (Debian):
status: Unknown → New
Changed in gnome-schedule (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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