bugGNU Solfege - Bugs: bug #51662, Annoying popups: "gu.py:334:...

 
 

bug #51662: Annoying popups: "gu.py:334: Warning: Source ID ⟨number⟩ was not found …"

Submitted by:  None
Submitted on:  Sat 05 Aug 2017 06:38:15 AM UTC  
 
Category:  None Severity:  3 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Release:  3.22.2

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 08 Sep 2019 07:53:40 AM UTC, comment #3: 

Hi,

I get the same bug.

GNUSolfege version 3.22.2-2
xubuntu 18.04 LTS
official depository ubuntu-bionic-universe

/usr/share/solfege/solfege/gu.py:334: Warning: Source ID 412 was not found when attempting to remove it
  gobject.source_remove(self.__timeout)

pat <pistache>
Sat 14 Oct 2017 07:31:42 AM UTC, comment #2: 

the patch should be applied to:
/usr/share/solfege/solfege/gu.py

Gregor <horli>
Sat 14 Oct 2017 07:24:15 AM UTC, comment #1: 

I submit a patch against the current debian stable source that seems to solve the issue.

(file #42142)

Gregor <horli>
Sat 05 Aug 2017 06:38:15 AM UTC, original submission:  

When clicking buttons, often a message window popups, saying:

> "/usr/share/solfege/solfege/gu.py:334: Warning: Source ID 226 was not found when attempting to remove it

  gobject.source_remove(self.__timeout)"

(The source ID always being something different, of course.)

The process itself seems not affected by this warning at all, but one has to close the message window every time in order to continue practising.

Here are lines 310–335 of my ´/usr/share/solfege/solfege/gu.py´:

       310     def display(self, txt, **kwargs):
       311         self.empty()
       312         r = re.compile("(\{\w+\})") # Unicode??
       313         self.set_size_request(-1, -1)
       314         for child in r.split(txt):
       315             m = r.match(child)
       316             if m:
       317                 varname = child[1:][:-1]
       318                 from solfege import lessonfilegui
       319                 if isinstance(kwargs[varname], basestring):
       320                     w = gtk.Label(kwargs[varname])
       321                     w.set_name("FlashBarLabel")
       322                 else:
       323                     w = lessonfilegui.new_labelobject(kwargs[varname])
       324             elif child: # don't create label for empty string
       325                 w = gtk.Label(child)
       326                 w.set_name("FlashBarLabel")
       327             self.__content.pack_start(w, False)
       328             w.show()
       329         sx, sy = self.size_request()
       330         self.m_sx = max(sx, self.m_sx)
       331         self.m_sy = max(sy, self.m_sy)
       332         self.set_size_request(self.m_sx, self.m_sy)
       333         if self.__timeout:
       334             gobject.source_remove(self.__timeout)
       335             self.__timeout = None

(I’m on Parabola GNU/linux.)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #42143:  gu.patch added by horli (388B - text/x-patch)
file #42142:  removevenet.patch added by horli (44B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pistache (Posted a comment)
  • -email is unavailable- added by horli (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-10-14 horli Attached File- => Added gu.patch, #42143
    2017-10-14 horli Attached File- => Added removevenet.patch, #42142

    Back to the top


    Powered by Savane 3.5