-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
ViewNode - Rendering problem for the second time #551
Comments
hi, I tried to reproduce your error, created an application using ARSceneView, restarted the scene many times, but apart from the Filament double free error, I got nothing else. Can I ask you to provide me with more data to reproduce the error? |
Yeah sure, the problem is when navigating back to a Fragment/Activity where you previously loaded an XML view using ViewNode. Here is Initial App Activity, when we pressed the button we are redirected to MainActivity. After the ViewNode is loaded in MainActivity, you need to navigate back (in the example you should use the system navigation) and then navigate to MainActivity again, this causes an error
Here is MainActivity
|
Sorry for late answer, did you try full debug step by step drawDestinationTracker in ViewRenderable builder part? |
No, but I'm sure there is a problem with ViewRenderable, because after replacing it and loading the 3D model, everything works fine. It is also easy to reproduce, you have to create 2 activities, and on the second one you have to load the view node using ViewRenderable, then you have to press the system back button, and then you have to go to the second activity again. Then there is a crash which cannot even be caught |
I have the same issue.Any news? |
no new information so far |
@rawello are you able to tell if it can be fixed? |
Hi man, I have deadlines at work, last time when I tested this code, I was unable to reproduce the error, a little later I will try to solve your problem if this will still relevant, I really want to help and do PR but so much work |
@KonradTHOC
And in SceneView.kt im uncommented ps, sorry for my leg in video xd) video_2024-11-17_19-40-24.mp4upd: in video 6 modelnodes connected each others with a lot of ViewNode |
@rawello I am using XML views so I don't have such a method. What method should I use instead of that? |
@konrad-thoc |
@rawello yeah it seems to be working with onDestroy method. Thanks!!
|
@konrad-thoc if its will work, notify me, i will to PR |
problem solved, thanks |
I have this code for rendering XML view, when I enter this screen for the first time everything works ok, however after the 2nd time I enter the screen I get an error.
The text was updated successfully, but these errors were encountered: