Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting a black screen on viroviewScene with simple 3dObject display without Arcore #315

Open
jonathanchh1 opened this issue Oct 4, 2019 · 5 comments

Comments

@jonathanchh1
Copy link

jonathanchh1 commented Oct 4, 2019

class MainActivity : AppCompatActivity() {

private lateinit var sceneView : ViroViewScene
private var rotateStart : Float = 0.toFloat()
private var scaleStart : Float = 0.toFloat()
private lateinit var mMainLight : OmniLight


override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
     initializeRenderer()
}

private val config : RendererConfiguration
get() {
return RendererConfiguration().apply {
this.isHDREnabled = true
this.isPBREnabled = true
this.isShadowsEnabled = true
this.isBloomEnabled = true
}
}

private fun initializeRenderer(){
    sceneView = ViroViewScene(this, object  : ViroViewScene.StartupListener{
        override fun onSuccess() {
            onRenderStart()
            sceneView.show(applicationContext, "loading view was successful", Toast.LENGTH_SHORT)
        }

        override fun onFailure(scene: ViroViewScene.StartupError?, errorMsg: String?) {
            Log.d(MainActivity::class.java.simpleName, "$scene $errorMsg")
        }
    }, config)
    sceneView.setBackgroundColor(getColor(android.R.color.holo_blue_light))
    View.inflate(this, R.layout.activity_main, sceneView as ViewGroup)
    setContentView(sceneView)
    sceneView  = findViewById(R.id.viro_view)
}

fun onRenderStart(){
    val scene = Scene()
    val sceneNode = scene.rootNode
    val object3D = Object3D()
    object3D.setPosition(Vector(0f, 0f, -1f))
    object3D.setScale(Vector(.2f, .2f, .2f))
    object3D.setMorphMode(Object3D.MorphMode.GPU)
    object3D.gestureRotateListener = GestureRotateListener { i, node, rotation, rotateState ->
        if(rotateState == RotateState.ROTATE_START){
            rotateStart = object3D.rotationEulerRealtime.y
        }
        val totalRotationY = rotateStart.plus(rotation)
        object3D.setRotation(Vector(0f, totalRotationY, 0f))
    }
    object3D.gesturePinchListener = GesturePinchListener { i, node, scale, pinchState ->
        if(pinchState == PinchState.PINCH_START){
            scaleStart = object3D.scaleRealtime.x
        }else{
            object3D.setScale(Vector(scaleStart.times(scale), scaleStart.times(scale), scaleStart.times(scale)))
        }
    }

    object3D.loadModel(sceneView.viroContext, Uri.parse("file:///android_asset/darkbody.fbx"), Object3D.Type.FBX, humanoidListener )
    mMainLight = OmniLight()
    mMainLight.color = Color.WHITE.toLong()
    mMainLight.position = Vector(0f, 1f, -4f)
    sceneNode.addLight(mMainLight)
    sceneNode.addChildNode(object3D)
    sceneView.scene = scene
    scene.setVisibilityListener(object  : Scene.VisibilityListener{
        override fun onSceneDidAppear() {
            sceneView.show(applicationContext, "the scene appeared", Toast.LENGTH_SHORT)
        }

        override fun onSceneDidDisappear() {
            sceneView.show(applicationContext, "the scene didn't appear", Toast.LENGTH_SHORT)
        }

        override fun onSceneWillAppear() {
            sceneView.show(applicationContext, "the scene should appear", Toast.LENGTH_SHORT)
        }

        override fun onSceneWillDisappear() {

        }
    })

}

private val humanoidListener = object : AsyncObject3DListener{
    override fun onObject3DLoaded(body: Object3D?, type: Object3D.Type?) {
        Log.d(MainActivity::class.java.simpleName, "object ${body.toString()}, ${type.toString()}")

    }

    override fun onObject3DFailed(errorMessage: String?) {
        Log.d(MainActivity::class.java.simpleName, "there was an error ${errorMessage.toString()}")
        Toast.makeText(applicationContext, "there was an issue : ${errorMessage.toString()}", Toast.LENGTH_SHORT).show()
    }
}

fun View.show(context: Context, msg : CharSequence, duration: Int){
    return Toast.makeText(context, msg, duration).show()
}

}

Environment

Please provide the following information about your environment:

  1. OS: Mac, Windows, Linux : MAC PRO 2019
  2. Version: ViroCore version : COMMON 1.101.0, core client latest and virocore recent release
  3. Device(s): What device(s) are you are seeing the issue on (i.e. Samsung Note 8, Pixel 2 XL, etc) SAMSUNG J7 Star

Description

I Followed all the instruction from virocore site and essentially, i want to load an 3dObject without argument reality and modify the object for gesture -> rotation, pinch zoom etc
and it doesn't show on the screen. Its only displaying a black screen. i have the api key under meta data on manifest file.

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.

@marcspraragen
Copy link

marcspraragen commented Oct 15, 2019

Also getting black screen from app. Using Viro 1_16. Build from Android Studio 3.4.1 to Samsung S8+. I've included lines from manifest file and also gradle run log.

Older projects run fine, leading me to believe that there is a problem with validation. API key doesn't appear to error out, but app never has success creating ViroViewARCore;. Notice the end of the log is right after a call to the AWS service.


Relevant AndroidManifest lines:

<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera.ar" android:required="true" />

<!-- Required for Recording -->
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/home_button"
    android:label="SeekFind Android"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

    <meta-data
        android:name="com.viromedia.API_KEY"
        android:value="EFBD67E2-2F5B-45CF-AD2F-25C3E7692906"
        />
    <meta-data tools:replace="android:value" android:name="com.google.ar.core.min_apk_version" android:value="26" />

    <meta-data android:name="com.google.ar.core" android:value="optional" />

gradle run log

10/15 07:20:35: Launching app
$ adb shell am start -n "com.bfindandroid/com.bfindandroid.SeekFind" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Connected to process 26860 on device samsung-sm_g955u-98895a474736533949
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
D/vndksupport: Loading /vendor/lib/egl/libEGL_adreno.so from current namespace instead of sphal namespace.
D/libEGL: loaded /vendor/lib/egl/libEGL_adreno.so
W/native: commandlineflags.cc:942 Ignoring RegisterValidateFunction() for flag pointer 0xc9c2a4f0: no flag found at that address
D/vndksupport: Loading /vendor/lib/egl/libGLESv1_CM_adreno.so from current namespace instead of sphal namespace.
D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_adreno.so
I/DecorView: createDecorCaptionView >> DecorView@db0e553[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
D/vndksupport: Loading /vendor/lib/egl/libGLESv2_adreno.so from current namespace instead of sphal namespace.
D/libEGL: loaded /vendor/lib/egl/libGLESv2_adreno.so
D/OpenGLRenderer: Skia GL Pipeline
D/CognitoCachingCredentialsProvider: Loading credentials from SharedPreferences
W/Viro: Attempted to add font [file: SECRobotoCondensed-Bold.ttf, typeface: SECRobotoCondensed] to font family with typeface [RobotoCondensed] -- typefaces do not match, font will be ignored
W/Viro: Attempted to add font [file: NotoSerifEthiopic-Regular.otf, typeface: NotoSerifEthiopic] to font family with typeface [NotoSansEthiopic] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifEthiopic-Bold.otf, typeface: NotoSerifEthiopic] to font family with typeface [NotoSansEthiopic] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifHebrew-Regular.ttf, typeface: NotoSerifHebrew] to font family with typeface [NotoSansHebrew] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifHebrew-Bold.ttf, typeface: NotoSerifHebrew] to font family with typeface [NotoSansHebrew] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifThai-Regular.ttf, typeface: NotoSerifThai] to font family with typeface [NotoSansThai] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifThai-Bold.ttf, typeface: NotoSerifThai] to font family with typeface [NotoSansThai] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifArmenian-Regular.ttf, typeface: NotoSerifArmenian] to font family with typeface [NotoSansArmenian] -- typefaces do not match, font will be ignored
W/Viro: Attempted to add font [file: NotoSerifArmenian-Bold.ttf, typeface: NotoSerifArmenian] to font family with typeface [NotoSansArmenian] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifGeorgian-Regular.ttf, typeface: NotoSerifGeorgian] to font family with typeface [NotoSansGeorgian] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifGeorgian-Bold.ttf, typeface: NotoSerifGeorgian] to font family with typeface [NotoSansGeorgian] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifDevanagari-Regular.ttf, typeface: NotoSerifDevanagari] to font family with typeface [SECDevanagari] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifDevanagari-Bold.ttf, typeface: NotoSerifDevanagari] to font family with typeface [SECDevanagari] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifGujarati-Regular.ttf, typeface: NotoSerifGujarati] to font family with typeface [SECGujarati] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifGujarati-Bold.ttf, typeface: NotoSerifGujarati] to font family with typeface [SECGujarati] -- typefaces do not match, font will be ignored
W/Viro: Attempted to add font [file: NotoSerifGurmukhi-Regular.otf, typeface: NotoSerifGurmukhi] to font family with typeface [SECGurmukhi] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifGurmukhi-Bold.otf, typeface: NotoSerifGurmukhi] to font family with typeface [SECGurmukhi] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifTamil-Regular.ttf, typeface: NotoSerifTamil] to font family with typeface [SECTamil] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifTamil-Bold.ttf, typeface: NotoSerifTamil] to font family with typeface [SECTamil] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifMalayalam-Regular.ttf, typeface: NotoSerifMalayalam] to font family with typeface [SECMalayalam] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifMalayalam-Bold.ttf, typeface: NotoSerifMalayalam] to font family with typeface [SECMalayalam] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifBengali-Regular.ttf, typeface: NotoSerifBengali] to font family with typeface [SECBengali] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifBengali-Bold.ttf, typeface: NotoSerifBengali] to font family with typeface [SECBengali] -- typefaces do not match, font will be ignored
W/Viro: Attempted to add font [file: NotoSerifTelugu-Regular.ttf, typeface: NotoSerifTelugu] to font family with typeface [SECTelugu] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifTelugu-Bold.ttf, typeface: NotoSerifTelugu] to font family with typeface [SECTelugu] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifKannada-Regular.ttf, typeface: NotoSerifKannada] to font family with typeface [SECKannada] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifKannada-Bold.ttf, typeface: NotoSerifKannada] to font family with typeface [SECKannada] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifSinhala-Regular.otf, typeface: NotoSerifSinhala] to font family with typeface [NotoSansSinhala] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifSinhala-Bold.otf, typeface: NotoSerifSinhala] to font family with typeface [NotoSansSinhala] -- typefaces do not match, font will be ignored
W/Viro: Attempted to add font [file: NotoSerifKhmer-Regular.otf, typeface: NotoSerifKhmer] to font family with typeface [NotoSansKhmer] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifKhmer-Bold.otf, typeface: NotoSerifKhmer] to font family with typeface [NotoSansKhmer] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifLao-Regular.ttf, typeface: NotoSerifLao] to font family with typeface [SECLao] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifLao-Bold.ttf, typeface: NotoSerifLao] to font family with typeface [SECLao] -- typefaces do not match, font will be ignored
W/Viro: Attempted to add font [file: NotoSerifMyanmar-Regular.otf, typeface: NotoSerifMyanmar] to font family with typeface [NotoSansMyanmar] -- typefaces do not match, font will be ignored
Attempted to add font [file: NotoSerifMyanmar-Bold.otf, typeface: NotoSerifMyanmar] to font family with typeface [NotoSansMyanmar] -- typefaces do not match, font will be ignored
W/Viro: Attempted to add font [file: NotoSerifCJK-Regular.ttc, typeface: NotoSerifCJK] to font family with typeface [SECCJK] -- typefaces do not match, font will be ignored
I/chatty: uid=10473(com.bfindandroid) identical 2 lines
W/Viro: Attempted to add font [file: NotoSerifCJK-Regular.ttc, typeface: NotoSerifCJK] to font family with typeface [SECCJK] -- typefaces do not match, font will be ignored
W/libOpenSLES: class OutputMix interface 0 requested but unavailable MPH=28
D/: PlayerBase::PlayerBase()
TrackPlayerBase::TrackPlayerBase()
I/libOpenSLES: Emulating old channel mask behavior (ignoring positional mask 0x3, using default mask 0x3 based on channel count of 2)
I/AudioTrack: AUDIO_OUTPUT_FLAG_FAST successful; frameCount 0 -> 384
I/AudioTrack: updateAudioTranstionLength FadeIn[0] FadeOut[0] FadeInRing[0]
D/AWS4Signer: AWS4 Canonical Request: '"POST
/

host:dynamodb.us-west-2.amazonaws.com
x-amz-date:20191015T112044Z
x-amz-security-token:AgoJb3JpZ2luX2VjEEsaCXVzLXdlc3QtMiJHMEUCIQDeW71jQv06iT0+9zS/hT5b96GB47b/0ZSBzitpBO+fMgIgdXjv1D6wMG4TzyCrMFrxWVA4EyNd9y8hftH6xxeSPeQq4wYIRBAAGgwwMjgzMTkzNjk0NTciDBDoAsEaNmQ6y2WFZSrABhpAZcKhhhgiisbaar/nXSK/7lePtfTKE7rNRobpc+ts8JIsr7sQVjcfUGNb1vzmqlNDaxIFfFHOhlQABYOltKWdlg8O1gsyZf+PbYeBrhvqABrIMUkZOE4mMiVvg4uPCFlh0GNp6qkuUjBre5WLI42mb8kMVdrkZUBy+V3PAzom3bU1zDUSBcgwIbS31N8z6iHf2ZINfA+4FxKVIoaoJS1/jdUSdcrxHt27QiNGlkYXpqW2GXk52+3fFIq9owX8RY4uiUmmYoAfTMv+rtV8R7kJUDzflKENJxuZ5itzJ1E9KejnKJRK+AEm+h2IK2pVHhGvTdrX6wC0LH0IY8rS6ABmG/CBwON2r5QzwDg6+QYS8gp2LT4bckJDni1rMRuRmGvC9o//VtGfDW1TOulD/KRj4hb45bQGDNsZuPDrkoePcK7zCj8HqZglBJ0tXP5bdrTfw0eUfqG7A1bUF26rSXpPyh6OPGmyQMVCC0PVPReKVMdzvHj7FiwHIkY6U4pJF5yLURQGiYBJmIb1ck5a/bYNcZARBR4Ef/3YQrZfLF65ZP3A63HRCcMHBscXoWH19QeUd5mfAyKnCxnAZmkXZVBQuc5DiKnXFJ2AElbV4GAmg5376YT8JREKBjspzcjxELmi8rcwCPUAbEjhP6Cr+IolrAp1xuvFvIFci18KOkPE8vbLokraTKBPs/nRLdg5TLTdf9BDrN8y+4AvTNvH+jMGRzL4tI6KPV1InnwRKK8L8ZpBo7GQbR8XEGwR34fFl6kioqzWZ9dCFjpxnnYtJ2ZITn1eArpe/cT+RJs6uB7orXjLHqBGxPmcPjZ1R+JUntILV5F7QjqnBdBoWMhoy9E02trP2JN2kEQKasitDKju3RZBahgI2kzbYWqH0UPrpyp4a/7qYP3TFhNqt2z0HwUZNFFzo1hwwwqJuMJ7PCtqzdrb0SBOAzxorY6zvTQF64a1Jn0lQZdq4rr6ye7tjP/19wbgYh0OynAodab76j/tnTvl0Bc0byhTXdT6OpaA48ztD1Y4AS/NeH/7+2IdZRtjZcP0qggNrJSDmg8RMfvDWL8IUCFjjfBQgNlxvwyCeffW3q92mmJ9QUn0vRV/z1Qw09SW7QU6tAGL5M+xCfBIFTT/krdw3wBshThizLa9Z9R+jVlfMTQqtSGBIhCVGMvzGc6VIp4MLJLSrRZCymUkDTPwyiXLlsZ7I2bjF4+FP+R2u3vd7H6dF2j76HOmGHOiqZVZK/ijmmXC42SnvOEOv4+I9jPhaRtrPA8263VLnbtVWYaBWS0H671LUmMsFrNrz8h7rO4sqIJpjD8AT7VozVFw8arj0Hde4WPmRzOPlxGNI2bDUjbDqqvfwAI=
x-amz-target:DynamoDB_20120810.GetItem

host;x-amz-date;x-amz-security-token;x-amz-target
dac42ed8a5029eb2634e84fa8a48c077936c52f38bedd7fc54b16c019834b24d"
AWS4 String to Sign: '"AWS4-HMAC-SHA256
20191015T112044Z
20191015/us-west-2/dynamodb/aws4_request
14a416f7b2f4358a0cb24573612ceeec00af6993ce741007990ecb8431ae6356"

D/NetworkSecurityConfig: No Network Security Config specified, using platform default
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
(HTTPLog)-Static: isSBSettingEnabled false
D/EmergencyMode: [EmergencyManager] android createPackageContext successful
D/TcpOptimizer: TcpOptimizer-ON
D/InputTransport: Input channel constructed: fd=76
D/ViewRootImpl@c01d6b4[SeekFind]: setView = DecorView@db0e553[SeekFind] TM=true MM=false
D/SurfaceView: onWindowVisibilityChanged(0) true android.opengl.GLSurfaceView{cce3111 V.E...... ......I. 0,0-0,0} of ViewRootImpl@c01d6b4[SeekFind]
D/ViewRootImpl@c01d6b4[SeekFind]: dispatchAttachedToWindow
D/ViewRootImpl@c01d6b4[SeekFind]: Relayout returned: old=[0,0][1080,2220] new=[0,0][1080,2220] result=0x7 surface={valid=true 3427729408} changed=true
I/Adreno: QUALCOMM build : 1c7d42c, If23bcb88b5
Build Date : 01/28/19
OpenGL ES Shader Compiler Version: EV031.25.03.01
Local Branch :
Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.7.4.R1.09.00.00.453.036
Remote Branch : NONE
Reconstruct Branch : NOTHING
I/Adreno: Build Config : S L 6.0.7 AArch32
D/vndksupport: Loading /vendor/lib/hw/gralloc.msm8998.so from current namespace instead of sphal namespace.
I/Adreno: PFP: 0x005ff112, ME: 0x005ff066
D/SurfaceView: show() Surface(name=SurfaceView - com.bseekfindandroid/com.bseekfindandroid.SeekFind@cce3111@0[26860])/@0xae44276 android.opengl.GLSurfaceView{cce3111 V.E...... ......ID 0,0-1080,1884}
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 2
D/SurfaceView: surfaceCreated 1 #8 android.opengl.GLSurfaceView{cce3111 V.E...... ......ID 0,0-1080,1884}
D/SurfaceView: surfaceChanged (1080,1884) 1 #8 android.opengl.GLSurfaceView{cce3111 V.E...... ......ID 0,0-1080,1884}
W/GLSurfaceView: Warning, !readyToDraw() but waiting for draw finished! Early reporting draw finished.
D/OpenGLRenderer: eglCreateWindowSurface = 0xdf805240, 0xcc4f0008
D/ViewRootImpl@c01d6b4[SeekFind]: Relayout returned: old=[0,0][1080,2220] new=[0,0][1080,2220] result=0x3 surface={valid=true 3427729408} changed=false
D/vndksupport: Loading /vendor/lib/hw/[email protected] from current namespace instead of sphal namespace.
D/vndksupport: Loading /vendor/lib/hw/gralloc.msm8998.so from current namespace instead of sphal namespace.
D/ViewRootImpl@c01d6b4[SeekFind]: MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager: prepareNavigationBarInfo() DecorView@db0e553[SeekFind]
getNavigationBarColor() -855310
D/InputMethodManager: prepareNavigationBarInfo() DecorView@db0e553[SeekFind]
getNavigationBarColor() -855310
V/InputMethodManager: Starting input: tba=com.bseekfindandroid ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager: startInputInner - Id : 0
I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
D/ViewRootImpl@c01d6b4[SeekFind]: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 2220) ci=Rect(0, 63 - 0, 126) vi=Rect(0, 63 - 0, 126) or=1
D/InputTransport: Input channel constructed: fd=83
D/InputMethodManager: prepareNavigationBarInfo() DecorView@db0e553[SeekFind]
getNavigationBarColor() -855310
V/InputMethodManager: Starting input: tba=com.bseekfindandroid ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager: startInputInner - Id : 0
V/com.amazonaws.request: Parsing service response JSON
D/com.amazonaws.request: CRC32Checksum = 1988392856
content encoding = null
V/com.amazonaws.request: Done parsing service response
D/Viro: Attempt #0, performing metrics recording in 0 milliseconds
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
(HTTPLog)-Static: isSBSettingEnabled false
D/AWS4Signer: AWS4 Canonical Request: '"POST
/

host:dynamodb.us-west-2.amazonaws.com
x-amz-date:20191015T112045Z
x-amz-security-token:AgoJb3JpZ2luX2VjEEsaCXVzLXdlc3QtMiJHMEUCIQDeW71jQv06iT0+9zS/hT5b96GB47b/0ZSBzitpBO+fMgIgdXjv1D6wMG4TzyCrMFrxWVA4EyNd9y8hftH6xxeSPeQq4wYIRBAAGgwwMjgzMTkzNjk0NTciDBDoAsEaNmQ6y2WFZSrABhpAZcKhhhgiisbaar/nXSK/7lePtfTKE7rNRobpc+ts8JIsr7sQVjcfUGNb1vzmqlNDaxIFfFHOhlQABYOltKWdlg8O1gsyZf+PbYeBrhvqABrIMUkZOE4mMiVvg4uPCFlh0GNp6qkuUjBre5WLI42mb8kMVdrkZUBy+V3PAzom3bU1zDUSBcgwIbS31N8z6iHf2ZINfA+4FxKVIoaoJS1/jdUSdcrxHt27QiNGlkYXpqW2GXk52+3fFIq9owX8RY4uiUmmYoAfTMv+rtV8R7kJUDzflKENJxuZ5itzJ1E9KejnKJRK+AEm+h2IK2pVHhGvTdrX6wC0LH0IY8rS6ABmG/CBwON2r5QzwDg6+QYS8gp2LT4bckJDni1rMRuRmGvC9o//VtGfDW1TOulD/KRj4hb45bQGDNsZuPDrkoePcK7zCj8HqZglBJ0tXP5bdrTfw0eUfqG7A1bUF26rSXpPyh6OPGmyQMVCC0PVPReKVMdzvHj7FiwHIkY6U4pJF5yLURQGiYBJmIb1ck5a/bYNcZARBR4Ef/3YQrZfLF65ZP3A63HRCcMHBscXoWH19QeUd5mfAyKnCxnAZmkXZVBQuc5DiKnXFJ2AElbV4GAmg5376YT8JREKBjspzcjxELmi8rcwCPUAbEjhP6Cr+IolrAp1xuvFvIFci18KOkPE8vbLokraTKBPs/nRLdg5TLTdf9BDrN8y+4AvTNvH+jMGRzL4tI6KPV1InnwRKK8L8ZpBo7GQbR8XEGwR34fFl6kioqzWZ9dCFjpxnnYtJ2ZITn1eArpe/cT+RJs6uB7orXjLHqBGxPmcPjZ1R+JUntILV5F7QjqnBdBoWMhoy9E02trP2JN2kEQKasitDKju3RZBahgI2kzbYWqH0UPrpyp4a/7qYP3TFhNqt2z0HwUZNFFzo1hwwwqJuMJ7PCtqzdrb0SBOAzxorY6zvTQF64a1Jn0lQZdq4rr6ye7tjP/19wbgYh0OynAodab76j/tnTvl0Bc0byhTXdT6OpaA48ztD1Y4AS/NeH/7+2IdZRtjZcP0qggNrJSDmg8RMfvDWL8IUCFjjfBQgNlxvwyCeffW3q92mmJ9QUn0vRV/z1Qw09SW7QU6tAGL5M+xCfBIFTT/krdw3wBshThizLa9Z9R+jVlfMTQqtSGBIhCVGMvzGc6VIp4MLJLSrRZCymUkDTPwyiXLlsZ7I2bjF4+FP+R2u3vd7H6dF2j76HOmGHOiqZVZK/ijmmXC42SnvOEOv4+I9jPhaRtrPA8263VLnbtVWYaBWS0H671LUmMsFrNrz8h7rO4sqIJpjD8AT7VozVFw8arj0Hde4WPmRzOPlxGNI2bDUjbDqqvfwAI=
x-amz-target:DynamoDB_20120810.UpdateItem

host;x-amz-date;x-amz-security-token;x-amz-target
d30b409eed238d89e6a437a6ef6286d0ff8fda74aea163db9a5611bc50f94119"
AWS4 String to Sign: '"AWS4-HMAC-SHA256
20191015T112045Z
20191015/us-west-2/dynamodb/aws4_request
44a602c3862b47c64490a16824f761f43f693038d54f4f27aadec3362142daea"

I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
(HTTPLog)-Static: isSBSettingEnabled false
V/com.amazonaws.request: Parsing service response JSON
D/com.amazonaws.request: CRC32Checksum = 2745614147
content encoding = null
V/com.amazonaws.request: Done parsing service response

@dthian
Copy link
Member

dthian commented Nov 7, 2019

Hey @marcspraragen, this may be because of:

https://github.com/viromedia/virocore/blob/master/android/app/src/main/cpp/VROSceneRendererSceneView.cpp#L58

Where the flag should be initialized to false?

@radvani
Copy link
Contributor

radvani commented Nov 13, 2019

This has been fixed on the master branch and will be included in the next release. Thanks for the report.

@BalazsR
Copy link

BalazsR commented Nov 23, 2021

I'm also getting black screen. Do you have any updates on this issue?
I've tried to run the same code that @jonathanchh1 had in the description.

Phone:
Pixel 4, Android 12

Dependencies:

viro-core:
configurations.maybeCreate("default")
artifacts.add("default", file('virocore-release-v_1_17_0.aar'))

app build.gradle
implementation 'com.amazonaws:aws-android-sdk-core:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-ddb:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-ddb-mapper:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.7.7'

    compileSdkVersion 28
    targetSdkVersion 28

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
    jvmTarget = '1.8'
}

project build.gradle:

buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30"
}
}

Log that is suspicious:
2021-11-23 10:18:28.309 10434-10473/com.example.virosample E/Viro: �[1;31mERROR: [/Users/radvani/Source/ViroRenderer/android/app/src/main/cpp/VROSceneRendererSceneView.cpp: renderSuspended(), line 111]�[0m
�[1;31mERROR: �[0m�[1;33mRenderer suspended! Do you have a valid key?�[0m

@hannesa2
Copy link

Do you have the same issue in https://github.com/ViroCommunity/virocore ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants