Editing author from song editor causes traceback

Bug #812289 reported by Andreas Preikschat
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenLP
Fix Released
Medium
Raoul Snyman

Bug Description

Hello,

http://support.openlp.org/issues/238

1) Edit a song
2) Go to the "Authors, Topics, Song Book" tab
3) Click "Manage Authors, Topics, Song Books"
4) Edit an author
5) Save the author and close the dialog
6) Save the song

Result:
The following traceback is shown

Traceback (most recent call last):
  File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/songs/lib/mediaitem.py", line 354, in onEditClick
    self.onSongListLoad()
  File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/songs/lib/mediaitem.py", line 239, in onSongListLoad
    item = self.buildServiceItem(self.editItem)
  File "/home/andreas/Projekte/openlp/trunk/openlp/core/lib/mediamanageritem.py", line 579, in buildServiceItem
    if self.generateSlideData(serviceItem, item, xmlVersion):
  File "/home/andreas/Projekte/openlp/trunk/openlp/plugins/songs/lib/mediaitem.py", line 397, in generateSlideData
    item_id = self._getIdOfItemToGenerate(item, self.remoteSong)
  File "/home/andreas/Projekte/openlp/trunk/openlp/core/lib/mediamanageritem.py", line 624, in _getIdOfItemToGenerate
    item_id = (item.data(QtCore.Qt.UserRole)).toInt()[0]
RuntimeError: underlying C/C++ object has been deleted

Related branches

description: updated
Revision history for this message
Stevan Pettit (elderp-deactivatedaccount) wrote :

I cannot duplicate this problem

Revision history for this message
Jonathan Springer (springermac) wrote :

I can confirm this bug with openlp trunk revision 1695. I get the same traceback with the outlined steps to reproduce.

Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :

@Stevan:

I also reproduced this on Windows.

Changed in openlp:
status: New → Confirmed
Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

Unable to reproduce this bug on Kubuntu Linux 11.04.

Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :

I just enabled/disabled different settings and you seem to have to enable "Update service from song edit" in the songs settings.

Revision history for this message
John Cegalis (jseagull1) wrote :

I can confirm this on Ubuntu 11.04 trunk 1710 and WinXP 1710

Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

Ah, OK, I was able to reproduce it.

Changed in openlp:
assignee: nobody → Raoul Snyman (raoul-snyman)
Changed in openlp:
status: Confirmed → Fix Committed
Changed in openlp:
status: Fix Committed → Fix Released
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.