Semantic Problems with DoesChannelExist() On Device

Include the following details (edit as applicable):

  • Issue category: Semantic Segmentation
  • Device type & OS version: Android / iOS /
  • Host machine & OS version: Mac / Windows
  • Issue Environment : On Device
  • Xcode version: 13.1
  • ARDK version: 1.0.1
  • Unity version: 2019.4.33f

Description of the issue:
I’m having issues with the method semanticManager.SemanticBufferProcessor.AwarenessBuffer.DoesChannelExist(“sky”). In editor everything works perfect using the mock semantic labels. But once I build to device (iPhone12, Samsung S20) the method just always returns false and never finds the channel, this happens with all semantic labels, not just sky.

However when I use DoesChannelExistAt(x,y) and do it on tap, I do get the correct return value on device.

Does anyone know if this is a bug, or if im just maybe not doing something correctly?

Hi Scott, this is a known issue. Apologies for the inconvenience. There is a workaround in our Basic Querying Semantics tutorial, You can see how the developer created a bit of logic to use the proper casing when on editor and on device around the 34 minute mark. Also, try testing Sky to see if it’s true in Editor and false on device. I hope this helps.

Unfortunately I was already aware of this particular bug from watching that video and have tried that to no success. I also always get false returns when using DoesChannelExist(int) so im not sure it has anything to do with spelling or case sensitivity in this case as DoesChannelExistAt(x,y) will return true with proper casing, or by using int index.

For the time being ive created a hacky non performant solution that isnt as accurate by continuously pinging 30 spread out spots on the screen using DoesChannelExistAt, but its not ideal to run embedded loops on Update, and can be false even when the channel does exist.

Hi Scott, apologies for the delay. We are working on your issue. Thank you for your patience.

1 Like

Hi Scott, are you still experiencing this issue? If so, please provide the steps you took to reproduce the workaround you mentioned above? Thanks.

Hi Scott, I hope your issue was resolved. Please open a new topic if more help is needed. Thanks.

Hi Moranda,

I am also having the same issue as Scott. DoesChannelExist returns false, regardless of the spelling case or the index.

I can only check for a channel by providing a specific xy coordinate.

Hi all,

The proposed solution made by the developer in the video tutorial for me doesn’t work.I am wondering if some of you fixed the bug in some way… I haven’t understood Scott_Vander_Pryt hacky solution. Thanks in advance for any advice that makes this work and for your patience with beguinners like me.

Best regards, Chiara

Semantics.cs (4.5 KB)

Hi Scott,
I hope you’re doing well.
I am writing because I am struggling to find a solution without success. I am wondering if you are so kind as to explain to me how you fixed the bug. thanks in advance.
Best, Chiara

Hi, sorry you’re experiencing issues with Semantics. Currently, there are no known issues at this time. Make sure you’re using ARDK 2.0 and the most recent version of Unity for best performance.

For more information follow the Querying Semantic tutorial for assistance.

Yes I use ARDK 2.0 and unity 2021. I followed the tutorial and nothing work on the phone, work only in unity editor.
So I tried The proposed solution from the official developer (attached image) via video, but doesn’t work for me. indeed, if I add the suggested lines of code, it gets worse and no longer works even in the unity editor.