guardianproject / haven

Haven is for people who need a way to protect their personal spaces and possessions without compromising their own privacy, through an Android app and on-device sensors
https://guardianproject.github.io/haven/
GNU General Public License v3.0
6.58k stars 728 forks source link

Events empty on remote device #410

Closed zcar300 closed 3 years ago

zcar300 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Ah. Okay.

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

hitchhooker commented 4 years ago

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

archie94 commented 4 years ago

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

archie94 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Any chance will have this be released soon?

n8fr8 commented 3 years ago

Reviewing now

bruceleerabbit commented 3 years ago

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 commented 3 years ago

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!