Failed to load resource lighting_general_functions_fsh.glsl as string
ZeBrody opened this issue · comments
- Review the documentation: https://virocore.viromedia.com/
- Search for existing issues: https://github.com/viromedia/virocore/issues
- Use the latest ViroCore release: https://virocore.viromedia.com/docs/releases
I'm using a self build version from a unmodified checkout since the provided download still asks for a valid api key - Turn off Instant Run in Android Studio
Environment
Please provide the following information about your environment:
- OS: Windows
- Version: ViroCore 1.17.0
- Device(s): What device(s) are you are seeing the issue on (i.e. Samsung Note 8, Pixel 2 XL, etc)
Sony Xperia X Compact
Description
I've built ViroCore from a fresh clone as it is described in the readme and try to run a simple testapp.
After loading the 3dObjec the app crashes with this error:
W/Viro: �[1;33m[******************************** ABORT ********************************]�[0m
�[1;33m File: D:/Repos/virocore/ViroRenderer/VROPlatformUtil.cpp�[0m
�[1;33m Line: 525�[0m
�[1;33m Function: VROPlatformLoadResourceAsString�[0m
�[0;33m Reason: Failed to load resource lighting_general_functions_fsh.glsl as string
�[0m
D/Object3DListener: Loading successful
I/Viro: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/Viro: #00 pc 0000007cb2447b20 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so
#01 pc 0000007cb2460690 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_Z31VROPlatformLoadResourceAsStringNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES5_+476x)
#02 pc 0000007cb2673924 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_Z13loadTextAssetNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE+224x)
#03 pc 0000007cb2674e74 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZNK16VROShaderProgram15inflateIncludesERNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE+604x)
#04 pc 0000007cb2673ea8 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN16VROShaderProgramC1ENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES6_RKNS0_6vectorIS6_NS4_IS6_EEEERKNS7_INS0_10shared_ptrI17VROShaderModifierEENS4_ISE_EEEEiNSC_I15VRODriverOpenGLEE+1268x)
#05 pc 0000007cb2597bbc /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZNSt6__ndk122__compressed_pair_elemI16VROShaderProgramLi1ELb0EEC2IJRNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEESA_RNS_6vectorIS9_NS7_IS9_EEEERNSB_INS_10shared_ptrI17VROShaderModifierEENS7_ISH_EEEERiRNSF_I15VRODriverOpenGLEEEJLm0ELm1ELm2ELm3ELm4ELm5EEEENS_21piecewise_construct_tENS_5tupleIJDpT_EEENS_15__tuple_indicesIJXspT0_EEEE+396x)
#06 pc 0000007cb258ccf4 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN16VROShaderFactory11buildShaderE21VROShaderCapabilitiesRKNSt6__ndk16vectorINS1_10shared_ptrI17VROShaderModifierEENS1_9allocatorIS5_EEEERNS3_I15VRODriverOpenGLEE+5436x)
#07 pc 0000007cb258b600 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN16VROShaderFactory9getShaderE29VROMaterialShaderCapabilities29VROLightingShaderCapabilitiesRKNSt6__ndk16vectorINS2_10shared_ptrI17VROShaderModifierEENS2_9allocatorIS6_EEEERNS4_I15VRODriverOpenGLEE+420x)
#08 pc 0000007cb2670bbc /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN26VROMaterialSubstrateOpenGL25getShaderBindingForLightsERKNSt6__ndk16vectorINS0_10shared_ptrI8VROLightEENS0_9allocatorIS4_EEEERK16VRORenderContextNS2_I9VRODriverEE+588x)
I/Viro: #09 pc 0000007cb267137c /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN26VROMaterialSubstrateOpenGL13updateSortKeyER10VROSortKeyRKNSt6__ndk16vectorINS2_10shared_ptrI8VROLightEENS2_9allocatorIS6_EEEERK16VRORenderContextNS4_I9VRODriverEE+100x)
#10 pc 0000007cb25574dc /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN11VROMaterial13updateSortKeyER10VROSortKeyRKNSt6__ndk16vectorINS2_10shared_ptrI8VROLightEENS2_9allocatorIS6_EEEERK16VRORenderContextRNS4_I9VRODriverEE+164x)
#11 pc 0000007cb2551978 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN11VROGeometry14updateSortKeysEP7VRONodejjjRKNSt6__ndk16vectorINS2_10shared_ptrI8VROLightEENS2_9allocatorIS6_EEEEfffRNS4_I17VRORenderMetadataEERK16VRORenderContextRNS4_I9VRODriverEE+232x)
#12 pc 0000007cb253bd10 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN7VRONode14updateSortKeysEjR19VRORenderParametersRNSt6__ndk110shared_ptrI17VRORenderMetadataEERK16VRORenderContextRNS3_I9VRODriverEE+1480x)
#13 pc 0000007cb253be90 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN7VRONode14updateSortKeysEjR19VRORenderParametersRNSt6__ndk110shared_ptrI17VRORenderMetadataEERK16VRORenderContextRNS3_I9VRODriverEE+1864x)
#14 pc 0000007cb25312a4 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN8VROScene14updateSortKeysERNSt6__ndk110shared_ptrI17VRORenderMetadataEERK16VRORenderContextRNS1_I9VRODriverEE+364x)
#15 pc 0000007cb2560f38 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN11VRORenderer12prepareFrameEi11VROViewport14VROFieldOfView11VROMatrix4fS2_NSt6__ndk110shared_ptrI9VRODriverEE+2456x)
I/Viro: #16 pc 0000007cb239dd2c /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN25VROSceneRendererSceneView11renderFrameEv+284x)
#17 pc 0000007cb239dbf8 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (_ZN25VROSceneRendererSceneView11onDrawFrameEv+20x)
#18 pc 0000007cb26964dc /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/lib/arm64/libviro_renderer.so (Java_com_viro_core_Renderer_nativeDrawFrame+52x)
#19 pc 0000007cb341cac8 /data/app/com.weareinfinity.virotest-7c8KMzfLV6D8z6qq2JbnZg==/oat/arm64/base.odex (oatexec+31432x)
W/Viro: �[1;33m[***********************************************************************]�[0m
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x3 in tid 24090 (GLThread 4119)
Reproducible Demo
This is the simple testapp i try to run
package com.weareinfinity.virotest
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.viro.core.*
class MainActivity : AppCompatActivity() {
private lateinit var mViroView : ViroView
private var mScene : Scene? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
mViroView = ViroViewScene(this, object : ViroViewScene.StartupListener {
override fun onSuccess() {
Log.d("StartupListener","scene startup done")
setupScene()
}
override fun onFailure(p0: ViroViewScene.StartupError, p1: String) {
Log.e("StatupListener","Startup failed ${p0.name} - $p1")
}
})
setContentView(mViroView)
}
private fun setupScene() {
mScene = Scene()
val coin = Object3D()
coin.loadModel(mViroView.viroContext, Uri.parse("file:///android_asset/om-export.obj"),Object3D.Type.OBJ,object : AsyncObject3DListener {
override fun onObject3DLoaded(p0: Object3D, p1: Object3D.Type) {
Log.d("Object3DListener","Loading successful")
}
override fun onObject3DFailed(p0: String) {
Log.e("Object3DListener","Loading object failed $p0")
}
})
mScene?.rootNode?.addChildNode(coin)
mViroView.scene = mScene
}
}
closing since the release download got updated and no longer needs the api key. No need to build it myself anymore.
closing since the release download got updated and no longer needs the api key. No need to build it myself anymore.
Hi, @ZeBrody I am stuck with the same issue. Can I know from where you got the release download? I am unable to find it.