Bug 287991 - black screen after searching for image in active image viewer
Summary: black screen after searching for image in active image viewer
Status: RESOLVED FIXED
Alias: None
Product: Active
Classification: Plasma
Component: Applications (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: unscheduled
Assignee: active
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-01 15:16 UTC by Fania Bremmer
Modified: 2011-12-07 16:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fania Bremmer 2011-12-01 15:16:37 UTC
Version:           unspecified (using Devel) 
OS:                Linux

happens on: 2011-11-30-19-05-basyskom-active-devel-meego-usb-live

- black screen with virtual keyboard after searching for an image by name in active image viewer

Reproducible: Always

Steps to Reproduce:
- open "Images" app
- type in search the word "metro"
- touch the image "metrostation" -> it opens
- go back with the back arrow
- touch the image again: the Images app only shows black, while the keyboard stays open

Actual Results:  
black screen on second attemp to open the image

Expected Results:  
should open and show the image properly every time
Comment 1 Javier Llorente 2011-12-07 10:49:04 UTC
Already fixed on 2011-12-06-18-24-basyskom-plasma-active-devel-meego-usb-live.iso
Comment 2 Lamarque V. Souza 2011-12-07 11:19:07 UTC
I still can reproduce this problem in 2011-12-06-18-24-basyskom-plasma-active-devel-meego-usb-live.iso here. I spent most of yesterday trying to fix this problem but no real solution yet. The only thing I have found that could prevent it is resetting the query string in the MetadataModel used to search for images in nepomuk.

It seems the mainImage element (a QML Image element) in plasma-mobile/applications/imageviewer/package/contents/ui/FullScreenDelegate.qml does not reset its source property when clicking on the back button. The backIcon button's onClick slot resets resourceInstance.uri to "" and that should do the trick but it does not. I am trying to figure out why.
Comment 3 Javier Llorente 2011-12-07 11:31:06 UTC
Oops :)
I can only reproduce it with "Concept_Active.jpg" It works fine with the rest demo images.
Comment 4 Lamarque V. Souza 2011-12-07 12:00:15 UTC
I can reproduce it with any image :-/

I notice another problem: the search box is case sensitive. Just search for the word "active". It should return "active_routes.png" and "Concept_Active.jpg", it returns only the first one.
Comment 5 Lamarque V. Souza 2011-12-07 15:26:56 UTC
Git commit cd920e79f8ffbcc7127fd5a6af757221dd65620a by Lamarque V. Souza.
Committed on 07/12/2011 at 16:25.
Pushed by lvsouza into branch 'master'.

Do not try to load an empty mainImage.source or it will mess up with
mainImage.scale and make the next valid url fail to load.

BUG: 287991

M  +3    -1    applications/imageviewer/package/contents/ui/FullScreenDelegate.qml

http://commits.kde.org/plasma-mobile/cd920e79f8ffbcc7127fd5a6af757221dd65620a
Comment 6 Lamarque V. Souza 2011-12-07 16:35:38 UTC
Git commit f706c1bb152c85d4deeab5de652ce27f2a979251 by Lamarque V. Souza.
Committed on 07/12/2011 at 17:33.
Pushed by lvsouza into branch 'master'.

Hide "Loading..." text even with invalid Image.source or it will appear
next time a valid Image.source is loaded.

CCBUG: 287991

M  +8    -3    applications/imageviewer/package/contents/ui/FullScreenDelegate.qml

http://commits.kde.org/plasma-mobile/f706c1bb152c85d4deeab5de652ce27f2a979251