Comments (5)
Hi! Sorry you're having issues - are there no logs shown before that may say why it's happening?
The main reasons I'm aware of where this might happen would be issues with Info.plist values or if the user has not allowed local network access.
To be sure, if you set the serviceName to "service", the values in Info.plist should be _service._tcp
and _service._udp
Also the Privacy - Local Network Usage Description
is added?
from multipeerhelper.
Thanks for the fast reply - no nothing else in the logs I'm afraid - I triple checked my info.plist entries, I have the correct entries for Bonjour services
, as well as Privacy - Local Network Usage Description
. I am not doing anything else in my app that would be preventing this from working as far as I can tell.
I am using the latest XCode (12.5) + Building for iOS 14.5, though I have tried this package earlier on with older versions of iOS 14 and have experienced the same crash. Please let me know if there is any other information I can provide. Would really love to use this package.
UPDATE -
Some interesting information. I have a similar function to yours that sets up my ARView configuration, and runs the AR session. One of the lines I have in there is arView.environment.sceneUnderstanding.options.insert(.physics)
for some additional features I have in my app.
Two things I noticed - when commenting out this line in my configuration, and running on my dev device (iPhone 12 Pro Max), the app does not crash in the same spot it has been. However, when this line is left in, it will crash when trying to setup the service. The second thing is, when keeping this line in and running on my personal device (iPhone 11 Pro), it does not crash either way. Just to confirm this, I added this same line into the setupARView()
function in your example project, and it too crashes on the iPhone 12 Pro.
Not sure what could be causing this. Both devices are configured the same. The only difference that I can speak to is that the 12 Pro has a LiDAR sensor on it, though I'm not sure if this would have any effect on multipeer functionality.
from multipeerhelper.
I remember seeing in a WWDC event last year that they said that scene understanding physics does not work across MPC. I don't remember them saying it will crash it - but it's unlike Apple to say exactly that!
You said that adding the .physics
option crashes it, and the crash happens on multipeerHelp.syncService
. But I'd have thought of those two as completely separate until you call arView.scene.synchronizationService = syncService
.
from multipeerhelper.
It is odd - not sure if you want to investigate further on your end, but this is resolved for me.
from multipeerhelper.
@maxxfrazer @michaeldeprospo did either of you by chance do any additional research on this? I'm wondering if there's a way to make it work still if at all possible
from multipeerhelper.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multipeerhelper.