← Back to team overview

openlp-core team mailing list archive

[Bug 812289] [NEW] Editing author from song editor causes traceback

 

Public bug reported:

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

** Affects: openlp
     Importance: Medium
         Status: New


** Tags: support-system

** Description changed:

  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) Click Ok
+ 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]
+   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

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/812289

Title:
  Editing author from song editor causes traceback

Status in OpenLP - Worship Presentation Software:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/812289/+subscriptions


Follow ups

References