GithubHelp home page GithubHelp logo

Comments (10)

MartyG-RealSense avatar MartyG-RealSense commented on June 3, 2024

Hi @ffreality My research of the RealSense Android wrapper's Java source code indicates that when a Close void is used, the instruction nRelease (mHandle); is usually used. For example:

@Override
public void close() {
nRelease (mHandle);
}

Here is an example of using this mechanism in the Android wrapper's source code.

https://github.com/IntelRealSense/librealsense/blob/master/wrappers/android/librealsense/src/main/java/com/intel/realsense/librealsense/Frame.java#L62-L66

from librealsense.

ffreality avatar ffreality commented on June 3, 2024

But shouldn't this close RsContext ?

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 3, 2024

If an app is closed down then RsContext should be able to be initialized again on the next launch with RsContext.init like in the official RealSense Java example program.

https://github.com/IntelRealSense/librealsense/blob/master/wrappers/android/examples/java_example/readme.md#on-create

from librealsense.

ffreality avatar ffreality commented on June 3, 2024

Yes but it somehow affect whole engine's activity. I can't even start my app for second time after I use RealSense

from librealsense.

ffreality avatar ffreality commented on June 3, 2024

Okay something weird happened. Samsung Galaxy S23 Android 14 has this problem but on Oculus/Meta Quest Pro (Android 12) I can start app as much as I want. There is no freeze after first usages.

I think there is problem with Android 14. What do you think ?

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 3, 2024

There is precedent from 2021 for incompatibility between the RealSense Android wrapper and the chipset in some Samsung models, as described at #8442 (comment)

In the current latest 2.55.1 SDK, support for Android 12 was added. Official Android 13 and 14 support has not yet been implemented in the SDK. Please see #10965 for notes about the Android 12 support addition.

There have been a couple of past reports of unofficial Android 13 use. For one user it worked on their Android 13 device and for the other it did not work.

from librealsense.

ffreality avatar ffreality commented on June 3, 2024

I packaged for SDK API Level 30 and tried to run on Samsung Android 14.
I got second startup stuck problem. It's good to know that it can be Samsung or Android 14 related.

Btw. if I package project with API level 32, I got crash at when I try to run Rs_Context init function. But it can be related with Samsung, too.

When Meta release 5.4.1 version of their specialized branch, I will try to package a mixed reality project with API level 32 and look logs.

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 3, 2024

Thanks very much for the information!

from librealsense.

ffreality avatar ffreality commented on June 3, 2024

Okay, problem was about Samsung.
I packaged project with SDK API Level 32 and deployed to the Quest Pro. Works like a charm with multiple usage.

from librealsense.

MartyG-RealSense avatar MartyG-RealSense commented on June 3, 2024

It's great to hear that you were successful. Thanks so much for your ongoing work on the UE5 plugin!

from librealsense.

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.