I have a weird situation: I have two kind of artefacts to be shown in Augmented Reality by SceneKit. Yet one kind is regularly shown, but the other is not, notwithstanding I use basically the same code and the two locationAnnotation inherit from the same superclass.
The real point is that I am short of tests to do, but for scanning the sky looking for the artefact to appear! I am following the code up to locationDelegate:
SceneLocationViewDelegate?.sceneLocationViewDidUpdateLocationAndScaleOfLocationNode(sceneLocationView: self, locationNode: locationNode)
where all of SceneLocationViewDelegate, self and locationNode are not nil.
And from that point onward there is no possibility to follow what happens.
I have also tried to add the view to the viewController to see if the problem was in that, and it was regular shown,
Have you got any suggestions? Is there perhaps some limit to sizes of the images to display on SceneKit?
Thanks.
I try to show two kinds of artefact on SceneKit, but just one kind is shown and I do not know how to know more.
More:In fact I have a series of errors in the logs of the kind:
CGBitmapContextInfoCreate: unable to allocate 54000000000000 bytes for bitmap data
<<<< AVPointCloudData >>>> Fig assert: “_dataBuffer” at bail (AVPointCloudData.m:217) – (err=0)
CGDisplayListDrawInContext: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
<<<< AVPointCloudData >>>> Fig assert: “_dataBuffer” at bail (AVPointCloudData.m:217) – (err=0)
CGBitmapContextCreateImage: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
<<<< AVPointCloudData >>>> Fig assert: “_dataBuffer” at bail (AVPointCloudData.m:217) – (err=0)
Error: Failed to load <C3DImage 0x303aa7080 src:<UIImage:0x30269db00 anonymous {0, 0} renderingMode=automatic(original)> [0.000000×0.000000]>
<<<< AVPointCloudData >>>> Fig assert: “_dataBuffer” at bail (AVPointCloudData.m:217) – (err=0)
<<<< AVPointCloudData >>>> Fig assert: “_dataBuffer” at bail (AVPointCloudData.m:217) – (err=0)
<<<< AVPointCloudData >>>> Fig assert: “_dataBuffer” at bail (AVPointCloudData.m:217) – (err=0)
Is there some limit to the size of the images to be displayed.
Now I set the size of the two artefact the same, and there errors went away, but still the latter ones are not displayed and I do not know how to find them or know why do not show.