Bug 112483 - Impress Remote: Slide preview is blank
Summary: Impress Remote: Slide preview is blank
Status: RESOLVED FIXED
Alias: None
Product: Impress Remote
Classification: Unclassified
Component: Android Remote App (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Android
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 116169 118483 119778 127990 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-09-18 20:34 UTC by Michael Weghorn
Modified: 2019-11-11 11:34 UTC (History)
11 users (show)

See Also:
Crash report or crash signature:


Attachments
Patch that demonstrates a workaround (2.84 KB, patch)
2017-09-21 11:40 UTC, Michael Weghorn
Details
Patch that demonstrates a workaround (2.77 KB, patch)
2017-09-21 11:47 UTC, Michael Weghorn
Details
Logcat output when running in AVD (16.50 KB, text/x-log)
2018-03-12 21:39 UTC, Michael Weghorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weghorn 2017-09-18 20:34:11 UTC
With a custom build from the current version of Impress Remote's master branch (as of commit 7f080471b684c9a0d5b10ba870a803bf7f38df0e), the slides' contents are not shown in the Android app, but they are always blank/white.
This is the case both in the view where only a single slide and the corresponding speaker notes are shown and in the grid view.

The speaker notes for the slide are shown correctly. Switching slides etc. works as expected and the slides are also shown correctly on the PC that is being remote-controlled, just not in the Android app.

Steps to reproduce:

1) Start slide show on PC
2) Start Impress remote on Android device
3) Select computer to connect to

Actual Result:
* The slide show starts on the computer (as expected)
* The notes are shown on the smartphone. Above the "NOTES" section, there is a blank area.

Expected result:

Instead of the "white area" above the "NOTES" section, the slide content is being shown.


I have this problem both, when running over Wifi or Bluetooth.

I have tested this with a Samsung Galaxy S2 running LineageOS (based on Android 7.1.2) and different AVDs (Android Virtual Devices) in the emulator, running Android 5.1, 6.0, and 7.1.1.

The LibreOffice version on the PC is 5.4.1.2.0 on Debian testing from the Debian repository.
Comment 1 Michael Weghorn 2017-09-21 11:40:05 UTC
Created attachment 136430 [details]
Patch that demonstrates a workaround

I have analysed the problem a bit and found a workaround that works for me (s. attached patch).

The slide content is held in a Bitmap that is set for an ImageView. For some reason, that Bitmap is always drawn in white instead of the actual content.
Setting the Bitmap as background image and setting a transparent image in front of it makes the slide content being shown as expected on my devices.

Of course, it would be great if somebody could fix the underlying problem instead...
Comment 2 Michael Weghorn 2017-09-21 11:47:30 UTC
Created attachment 136431 [details]
Patch that demonstrates a workaround

In fact, one line of the first patch is totally unneeded. I'm adding a new version with that line removed to avoid confusion because of unrelated things.
Comment 3 Michael Weghorn 2017-09-21 11:57:16 UTC
Just for clarity: The patch as it is right now is not really meant for inclusion, but mostly to demonstrate the problem.
Comment 4 Xisco Faulí 2017-10-04 14:26:14 UTC
(In reply to Michael Weghorn from comment #3)
> Just for clarity: The patch as it is right now is not really meant for
> inclusion, but mostly to demonstrate the problem.

Hello Michael,
Any change you can create a patch for inclusion fixing the issue ?
Comment 5 Michael Weghorn 2017-10-04 19:48:28 UTC
(In reply to Xisco Faulí from comment #4)
> Hello Michael,
> Any change you can create a patch for inclusion fixing the issue ?

Hi Xisco,

thanks for asking. Unfortunately I neither know the underlying root cause of the problem nor have I time to look closer into this at the moment, so cannot work on a clean solution now.

It would be great if somebody else - maybe more experienced with Impress Remote - could have a look.

If no clean solution is possible at the moment, it might still be an option to integrate my workaround to at least get a working version for now, in case the problem is a general one and the alternative is to have a non-working Impress Remote - but this is up to somebody else to decide...
Comment 6 Michael Mehl 2018-02-06 22:46:28 UTC
When I build the app from the current source I have the same problem. Thanks for the workaround!
Comment 7 Chris Sherlock 2018-03-11 03:47:58 UTC
I believe we may need to scale the image to fit the screen. Can you check LogCat on your device whilst the issue is occuring? I’ll bet there are memory exceptions...

I guess we get the width and height of the widget’s ImageView via getMeasuredWidth() and getMeasuredHeight() and then rescale the bitmap, after which we set the bitmap.
Comment 8 Michael Weghorn 2018-03-12 21:39:02 UTC
Created attachment 140594 [details]
Logcat output when running in AVD

I'm attaching the logcat output I get when running current master from Android Studio in an Android Virtual device (AVD). I opened a presentation in Impress and switched a few slides further using Impress Remote on the AVD.

I personally don't see anything obvious in the output, but hope it may help. In case I can do anything to provide a more meaningful log, please let me know how.
Comment 9 raal 2018-04-23 19:03:06 UTC
*** Bug 116169 has been marked as a duplicate of this bug. ***
Comment 10 raal 2018-04-23 19:03:30 UTC
I can confirm. Impress remote 2.3; Android 5; wifi and bluetooth connection.
Comment 11 Elias Küpper 2018-06-07 07:24:12 UTC
I can confirm with Android 7, LM 19 and LibreOffice 6.0
Comment 12 Pierre C 2018-06-10 15:55:58 UTC
Confirmer LO 6.0.5.1 android and Just dowloaded impress remote
Unusable
Comment 13 verger 2018-06-21 02:17:27 UTC
Confirmed with libreoffice 6.0.3.2 and Android 8.1.0
Comment 14 raal 2018-07-03 06:09:03 UTC
*** Bug 118483 has been marked as a duplicate of this bug. ***
Comment 15 raal 2018-09-11 06:29:52 UTC
*** Bug 119778 has been marked as a duplicate of this bug. ***
Comment 16 Steven Drinnan 2018-11-10 02:55:02 UTC
Is their any update to this critical bug. With out the preview it pretty useless.
Comment 17 Tony 2018-12-18 04:57:40 UTC
Версия: 6.1.4.2 (x64)
ID сборки: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
Потоков ЦП: 4; ОС:Windows 6.1; Отрисовка ИП: по умолчанию; 
Локаль: ru-RU (ru_RU); Calc: CL

Android 7.1.2.

Same problem.
Comment 18 raal 2019-10-07 17:40:20 UTC
*** Bug 127990 has been marked as a duplicate of this bug. ***
Comment 19 Christian Lohmaier 2019-11-11 11:17:03 UTC
hmm. Seems we don't have bugzilla notifications for the impress_remote repository.. 
→ should be fixed with 8cf92d0b4eebad5dcc74ebb249f6c2d92733ee83 / version 2.4.0/v21 from playstore

(note to future self: search for bugs before coming up with a fix, Michael's work would have put me to the right direction much quicker...)
Comment 20 Tedo Vrbanec 2019-11-11 11:34:11 UTC
(In reply to Christian Lohmaier from comment #19)
> hmm. Seems we don't have bugzilla notifications for the impress_remote
> repository.. 
> → should be fixed with 8cf92d0b4eebad5dcc74ebb249f6c2d92733ee83 / version
> 2.4.0/v21 from playstore
> 
> (note to future self: search for bugs before coming up with a fix, Michael's
> work would have put me to the right direction much quicker...)

Wonderful news! Hooray!