Skip to content
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

Getting error message in "SCMeshTexturing reconstructMeshWithWithPointCloud" #48

Open
kashish-ops opened this issue Sep 14, 2024 · 0 comments

Comments

@kashish-ops
Copy link

Hi StandardCyborgCocoa team,

We are getting the following error in the logs while running the StandardCyborgExample repo

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[SCMeshTexturing reconstructMeshWithWithPointCloud:textureResolution:meshingParameters:progress:completion:]: unrecognized selector sent to instance 0x12740e120'
First throw call stack:
(0x192930f20 0x18a7bb2b8 0x192a3a480 0x1928cdfb4 0x1928cd8d0 0x103d16380 0x103d152f0 0x103d14c74 0x103d14464 0x103d144ac 0x194c2b584 0x194de9970 0x194e3f8d8 0x194be95d8 0x194be949c 0x194be93b4 0x194be8fec 0x194be8efc 0x194be6660 0x194be62a4 0x194be7148 0x192903834 0x1929037c8 0x192901298 0x192900484 0x1928ffcd8 0x1d734d1a8 0x194f39ae8 0x194fedd98 0x102f5b058 0x1b60d7154)
libc++abi: terminating due to uncaught exception of type NSException. 

On the iPhone side, the app freezes after you hit the red camera button at the bottom to stop scanning.

Debugging:
We put breakpoints in the SCMeshingHelper class and found that the error shows up in function processMesh most likely on the following lines of code:

        completion: { (error, mesh) in
           if let mesh = mesh {
               onMeshStatusUpdate(.success(mesh))
                return
        }

However, when we try "stepping into" the completion section of the code, the cursor goes back up to the function and we get the above error msg. We can tried looking into the header file SCMeshTexturing since that is where the main error is, but since it's a header file, it doesn't have an implementation so we aren't able to see what's inside. Also, we found the SCMeshTexturing.mm which implements header file SCMeshTexturing in the StandardCyborgSDK, but we were wondering if an implementation class like this exists in the StandardCyborgCocoa?

Further information about our device:
For context, we are using Xcode version 15.4 and iPhone 14 version 17.6.1.

Do you have any suggestions on how we can debug this further or why we are having this issue? Also, if there is an implementation class for the header file SCMeshTexturing, please let us know as well.

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

No branches or pull requests

1 participant