Viro: 3D models won't show up in android release mode

Created on 16 Aug 2019  Â·  8Comments  Â·  Source: viromedia/viro

Environment

System:
OS: macOS 10.14.6
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 1.19 GB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.15.3 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.3, 28.0.2, 28.0.3
System Images: android-19 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5692245
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.3 => 0.60.3

Description

Works great in debug mode but does not work in release mode. Traced some logs, it seems like a hit test problem as seen from the last log.
I tested using Samsung S7 Edge

[14:09:05] I | Viro ▶︎ Copied resource res:/2131099742 to [/data/user/0/com.artlabs.diner/cache/2131099742]
[14:09:05] I | Viro ▶︎ Loading OBJ from file /data/user/0/com.artlabs.diner/cache/2131099742
[14:09:05] I | Viro ▶︎ Copied resource res:/2131099742 to [/data/user/0/com.artlabs.diner/cache/2131099742]
[14:09:05] I | Viro ▶︎ MTL files queued for reading
[14:09:05] I | Viro ▶︎ Reading MTL files (if any)...
â”” MTL files read, loading OBJ
[14:09:05] I | Viro ▶︎ OBJ # of vertices = 0
│ OBJ # of normals = 0
│ OBJ # of texcoords = 0
│ OBJ # of materials = 0
â”” OBJ # of shapes = 1
[14:09:05] I | Viro ▶︎ OBJ bounding box = x(340282346638528859811704183484516925440.000000 -340282346638528859811704183484516925440.000000) y(340282346638528859811704183484516925440.000000 -340282346638528859811704183484516925440.000000) z(340282346638528859811704183484516925440.000000 -340282346638528859811704183484516925440.000000)
[14:09:05] I | native ▶︎ data_manager.cc:637 Refined adf_T_C from: q = [x: 0.418857, y: -0.781366, z: -0.210612, w: 0.411909], p = [x: -2.52351, y: 0.26747, z: 0.189143]
│ to: q = [x: 0.5608, y: -0.691729, z: -0.333044, w: 0.309995], p = [x: -0.304476, y: -0.17917, z: 0.0170209]
│ rotation change: 26.5791(deg), position change: 2.27007(m).
â”” data_manager.cc:748 Failed to obtain consistent ADF to VIO transformation.
[14:09:05] E | native ▶︎ hit_test.cc:377 generic::internal: No point hit.

Reproducible Demo

Let us know how to reproduce the issue. Include a code sample, screen capture, video recording. The more information you provide, the better we can support you.

Most helpful comment

Same issue here on Galaxy S8. When I render multiple objects at the same time, only few show up in release mode. When I use a primitive object like ViroBox, everything works. Are there any updates on this? Does it possibly refer to loading times?

All 8 comments

It seems like Viro React does not yet support React Native v0.60. I haven't been able to get it working for either iOS or Android in a React Native v0.60 project. This might be related.

Actually it works on iOS with React Native v0.60.3 but yeah there may be some issues with 0.60

@sercanov do you have an example project I can look at where it's working with RN 60 for iOS?

hey @ajcrites Viro AR sample project works for me.

Podfile:
ruby pod 'ViroReact', :path => '../node_modules/react-viro/ios/' pod 'ViroKit_static_lib', :path => '../node_modules/react-viro/ios/dist/ViroRenderer/static_lib'

@sercanov thanks for this! I can get everything to run, but the 3D object doesn't show up for me at all in iOS either.

@ajcrites What type of object are you using ? I've used the example JS code here; https://github.com/viromedia/ViroARSampleApp/tree/master/js

Same issue here on Galaxy S8. When I render multiple objects at the same time, only few show up in release mode. When I use a primitive object like ViroBox, everything works. Are there any updates on this? Does it possibly refer to loading times?

Help same problem : 3D object doesn't show up, work in debug mode not in release mod, we can't build a release.
Tested on IOS iPhone 6, iPhone XR / Android galaxy tab S5
viro 2.16
react-native 0.59.10

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SathishSaminathan picture SathishSaminathan  Â·  4Comments

parideis picture parideis  Â·  4Comments

krishanjangir picture krishanjangir  Â·  4Comments

dimegusew picture dimegusew  Â·  3Comments

dittmarconsulting picture dittmarconsulting  Â·  6Comments