Photograph screen not opening

Bug #238560 reported by Charclo
4
Affects Status Importance Assigned to Milestone
Entertainer Media Center
Triaged
High
Unassigned

Bug Description

When there is a ' in a folder that is indexed, the photograph screen doesn't open and this error is seen in the terminal:

Traceback (most recent call last):
  File "/home/michael/Projects/Entertainer/bug-228033/src/frontend/gui/user_interface.py", line 421, in handle_keyboard_event
    self.handle_user_event(UserEvent(UserEvent.NAVIGATE_SELECT))
  File "/home/michael/Projects/Entertainer/bug-228033/src/frontend/gui/user_interface.py", line 525, in handle_user_event
    self.current.handle_user_event(event)
  File "/home/michael/Projects/Entertainer/bug-228033/src/frontend/gui/screens/main_screen.py", line 377, in handle_user_event
    self.ui.changeScreen(self.ui.createScreen("photo_albums"),
  File "/home/michael/Projects/Entertainer/bug-228033/src/frontend/gui/user_interface.py", line 308, in createScreen
    return PhotoAlbumsScreen(self, self.frontend)
  File "/home/michael/Projects/Entertainer/bug-228033/src/frontend/gui/screens/photoalbums_screen.py", line 93, in __init__
    self._create_album_menu()
  File "/home/michael/Projects/Entertainer/bug-228033/src/frontend/gui/screens/photoalbums_screen.py", line 173, in _create_album_menu
    albums = self.library.get_albums()
  File "/home/michael/Projects/Entertainer/bug-228033/src/frontend/medialibrary/images.py", line 68, in get_albums
    albums.append(ImageAlbum(row[0]))
  File "/home/michael/Projects/Entertainer/bug-228033/src/frontend/medialibrary/images.py", line 121, in __init__
    % path)
pysqlite2.dbapi2.OperationalError: near "s": syntax error

Revision history for this message
Jamie Bennett (jamiebennett) wrote :

I have observed this behaviour too.

Changed in entertainer:
importance: Undecided → Medium
status: New → Confirmed
Paul Hummer (rockstar)
Changed in entertainer:
importance: Medium → High
milestone: none → entertainer-0.1.1
status: Confirmed → Triaged
Changed in entertainer:
assignee: nobody → charclo-michael
Paul Hummer (rockstar)
Changed in entertainer:
milestone: entertainer-0.1.1 → entertainer-0.2
Paul Hummer (rockstar)
Changed in entertainer:
milestone: entertainer-0.2 → none
Revision history for this message
Jamie Bennett (jamiebennett) wrote :

Just retested this on the latest trunk with the file name beagle's.jpg. Photo screen is now opening with no errors but the first character of the file name and the first character after the ' is being capitalised. See attached image.

Changed in entertainer:
assignee: charclo-michael → jamiebennett
status: Triaged → In Progress
Revision history for this message
Paul Hummer (rockstar) wrote :

Jamie, don't mean to steal this bug from you. I've got the new photograph screen working, and I think I actually have this fixed.

Changed in entertainer:
assignee: jamiebennett → rockstar
milestone: none → entertainer-0.3
Revision history for this message
Paul Hummer (rockstar) wrote :

Turns out that the album and photograph screens brought up some HEAVY issues with threads.

Changed in entertainer:
assignee: rockstar → nobody
milestone: entertainer-0.3 → none
status: In Progress → Triaged
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.