Git Product home page Git Product logo

Comments (7)

pedromalta avatar pedromalta commented on July 20, 2024

It happens when I update gradle plugin from:
classpath 'com.android.tools.build:gradle:4.0.1'
to
classpath 'com.android.tools.build:gradle:4.1.2'

from mad-location-manager.

Lezh1k avatar Lezh1k commented on July 20, 2024

Seems like wrong matrix initialization or update.
Could you provide more info? At least I need GPSAccKalmanFilters constructor.
Did you try to debug it and see what's wrong with matrix dimensions?

from mad-location-manager.

smirnovegorv avatar smirnovegorv commented on July 20, 2024

Hi. I encountered same issue.
Matrix dimensions are 4 rows and 1 column, while args.length = 8. This is a third call to Matrix.setData() after app is started.

This method is called from GPSAccKalmanFilter.rebuildB() method.
b argument is

0 = 4.914112499999999
1 = 0.0
2 = 0.0
3 = 4.914112499999999
4 = 3.135
5 = 0.0
6 = 0.0
7 = 3.135

this.m_kf.B is empty 4x1 matrix.

I see it is created in KalmanFilter class. Which is created in GPSAccKalmanFilter with hardcoded stateDimensions = 4 and controlDimensions = 1. Which is inconsistent with b in rebuildB() method, which is always 8 elements long.

from mad-location-manager.

smirnovegorv avatar smirnovegorv commented on July 20, 2024

Hmm, I see now, in your repository controlDimensions is already fixed to be 2. While the version 0.1.13 in jitpack has this issue. Please update your jitpack version if possible as it is pretty much outdated

from mad-location-manager.

smirnovegorv avatar smirnovegorv commented on July 20, 2024

There is another similar crash in matrix.setData() caused by inconsistence between 4 parameters passed to m_kf.Zk.setData() on GPSAccKalmanFilter. Because 4 params are passed to the update matrix (2 coords and 2 velocities) but only 2 are expected (since useGpsSpeed is hardcoded to false in KalmanLocationService.java:614 which results in 2x1 matrix being created).

from mad-location-manager.

smirnovegorv avatar smirnovegorv commented on July 20, 2024

Created a pull-request with a small fix for that

from mad-location-manager.

Lezh1k avatar Lezh1k commented on July 20, 2024

@smirnovegorv
Thank you :) Project right now is kind of "rusty".
But most fixes are moved to lib branch to C library.

from mad-location-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.