2016-04-28 14:43:00.613 CPBVOCA A second object of type WTArchitectView was created while the previous one was not deallocated.
2016-04-28 14:43:00.613 CPBVOCA If this behaviour was not intended (multiple architect views at the same time), The WTArchitectView didn't got a call to dealloc.
2016-04-28 14:43:00.613 CPBVOCA There might be a strong reference to a WTArchitectView objects captured in a block, e.g. in a NSNotificationCenter -addObserverForName:object:queue:usingBlock: method call.
2016-04-28 14:43:00.614 CPBVOCA To disable this check (including the call to abort()), simply set the environment variable 'WTSDKDisableDeallocValidation' to YES.
Hi Jeffrey, Can you make sure that your WTARchitectViewController is deallocated and also your WTArchitectView member inside that view controller (add some log messages into the -dealloc method) goes actually out of scope.
Optionally you can also set the WTSDKDisableDeallocValidation environment variable to YES.
Best regards
Andreas
J
Jeffrey Tan
said
about 7 years ago
Hi Andreas,
I realized there is self.arViewController = nil; in close wikitude method to deallocted the view and it's works but there is some error when reopen the camera.
WTARViewController.m - there is error when , it throws me this view haven't dealloc nicely.
Btw, where can set WTSDKDisableDeallocValidation in my project? I cannot found this variable as well.
A
Andreas Schacherbauer
said
about 7 years ago
Hi Jeffrey, Try to set self.architectView = nil in -deallow of yout WTArchitectViewController and/or remove it from it's superview.
WTSDKDisableDeallocValidation is a environment variable, so use setenv(WTSDKDisableDeallocValidation, "true", 1) to define it anywhere in your code but before the WTArchitectView is created.
Best regards
Andreas
J
Jeffrey Tan
said
about 7 years ago
Hi Andreas,
I tried your suggestion and it able to open Architect World but will black screen without camera prompted.I also did set self.architectView = nil in my WTARViewController.m when dealloc but seems this code never trigger because the log inside doesn't printed.
A
Andreas Schacherbauer
said
about 7 years ago
Hi Jeffrey, Seems like you first need to figure out why your WTARViewController get's not deallocated.
Is there any particular reason why you implement your own augmented reality plugin and dont' use our existing one?
Best regards
Andreas
J
Jeffrey Tan
said
about 7 years ago
Hi Andreas,
I am copied whole Cordova Plugin from https://github.com/Wikitude/wikitude-cordova-plugin and implement into my project but i delete some unused function from WTWikitudeplugin.m because i only use open and close function but seems "CLOSE" function doesn't trigger WTARViewController to dealloc the view yet.
Jeffrey Tan