[Pidgin] #8457: Pidgin crashed caused by a developing perl plugin

Pidgin trac at pidgin.im
Wed Feb 18 14:05:34 EST 2009


#8457: Pidgin crashed caused by a developing perl plugin
---------------------------------------------------+------------------------
 Reporter:  linleno                                |           Owner:  deryni 
     Type:  defect                                 |          Status:  new    
Milestone:                                         |       Component:  plugins
  Version:  2.5.4                                  |      Resolution:         
 Keywords:  timeout, timeout_remove, plugin, perl  |   Launchpad_bug:         
---------------------------------------------------+------------------------
Changes (by deryni):

  * owner:  => deryni


Comment:

 First things first. Callbacks added via Purple::timeout_add need to return
 a value, either true or false. If they return true they will automatically
 be called again when the next timeout interval ocurs, if they return false
 they will be stopped. So you don't need to constantly remove and re-add
 the timeout to keep it happening.

 That will likely avoid (but possibly not solve) the crash. So if you could
 print out the contents of 'handler' in frame 0 in your backtrace I would
 appreciate it (also the contents of handler->callback if you can).

-- 
Ticket URL: <http://developer.pidgin.im/ticket/8457#comment:1>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list