Skip to content

Events empty on remote device #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zcar300 opened this issue Jan 10, 2020 · 14 comments · Fixed by #416
Closed

Events empty on remote device #410

zcar300 opened this issue Jan 10, 2020 · 14 comments · Fixed by #416

Comments

@zcar300
Copy link

zcar300 commented Jan 10, 2020

I have just started trying to use Haven so I'm sorry if this is a dumb problem.

I have the haven app all setup on an old Pixel and it is recording events. When I view the event log on a remote device, Pixel 4 XL, using Tor browser, it says there are events but when I click on the log for the day I want to view there are no events shown. It is updating the number of events, so that's working.

When I view the logs on the Haven device I can see the audio and video events. Although when I try to play any of the videos the app crashes. I can view pictures just fine.

@fat-tire
Copy link
Collaborator

I think this was an issue with the coordinatorlayout and constraintlayout and I just submitted what I think is a fix. At least it doesn't crash any more.

@zcar300
Copy link
Author

zcar300 commented Jan 15, 2020

How do I make sure I'm on the latest build? I have fdroid set up, and it says my apps are up to date. The Haven app says it's v0.2.0-beta-5 (214).

Videos still crash the app. And it seem to only record one or two seconds of video.

Also, the camera doesn't auto rotate. So pictures and videos get recorded upside down unless you mount the phone a specific way.

@hitchhooker
Copy link

I built new release out of latest github source code but problem seems to persist and without visible events remotely, this application barely has any purpose with notifications that cannot be watched.
Can anybody point out me to right direction what could cause the bug of triggered events not being seen and has this option worked before?

@archie94
Copy link
Collaborator

Hmm this is really odd. If events are triggered there should be logs. @hitchhooker Do you think you will be able to debug if there are any error logs?
Do you think you can access haven.db and let me know if there are any entries corresponding to your events?

@hitchhooker
Copy link

So seems like pictures and audio are sent fine through Signal but when I enter to webserver 127.0.0.1:8888 I can see Events list right but clicking into 127.0.0.1:8888/event/6 shows only heading Event: Apr 14, 2020 15:46:56 without further content.

First time im building and running android application so not so familiar with debugging, but I will give a try.

@archie94
Copy link
Collaborator

Ah. Okay.

Are the logs visible on the device which triggered the event(s)?

@hitchhooker
Copy link

Screenshot_20200414-160233
Screenshot_20200414-160229
Screenshot_20200414-160211
Yeap so database seems to be fine locally but nothing gets shown in webserver.

@archie94
Copy link
Collaborator

Thanks for debugging. Will get back as soon as I can.

archie94 added a commit to archie94/haven that referenced this issue Apr 17, 2020
- string representation of Date object is not allowed causing an
  IllegalStateException which prevented display of EventTriggers
- fixes issue guardianproject#410

Signed-off-by: Arka Prava Basu <[email protected]>
@archie94 archie94 mentioned this issue Apr 17, 2020
@archie94
Copy link
Collaborator

Thanks for reporting this issue @zcar300
@hitchhooker Thanks for the help in debugging.
#416 has been raised which hopefully will solve this issue. It would be great if anyone can cross verify this by building from my branch. :)

Thanks!

@hitchhooker
Copy link

Just built archie94:webserver_bug branch, tested on my pixel3 and webserver works supposedly. Thank you very much for spotting the bud and keeping to project up.

@santiDotIO
Copy link

Any chance will have this be released soon?

@n8fr8
Copy link
Member

n8fr8 commented Jul 13, 2020

Reviewing now

@bruceleerabbit
Copy link

I just installed the latest release (0.2.0-RC-1) version code 2001, and this bug is still there.

I know this was not a problem on version 0.1.0-beta-3 (ver.code 102). I would rather not run a version that old. Does anyone know of a more recent version on the releases page that doesn't have this bug?

@archie94
Copy link
Collaborator

The fix has been merged to master but hasn't gone live in any release as of yet. Do you think you will be able to build from source?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants