# Cnsdk getRenderTargetForView(0) problem

**URL:** https://forums.leialoft.com/t/cnsdk-getrendertargetforview-0-problem/3345
**Category:** Core SDK Android
**Created:** [August 4, 2023, 4:03am UTC](https://forums.leialoft.com/t/cnsdk-getrendertargetforview-0-problem/3345 "2023-08-04T04:03:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zhoulin](https://avatars.discourse-cdn.com/v4/letter/z/48db29/32.png) [@zhoulin](https://forums.leialoft.com/u/zhoulin)
#### Post date: [August 4, 2023, 4:03am UTC](https://forums.leialoft.com/t/cnsdk-getrendertargetforview-0-problem/3345/1 "2023-08-04T04:03:54Z")

</div>

Hello, jump from another activity to the MainActivity page, when I return to the previous page, the program directly crashes when I enter MainActivity again. What is the reason? Thank you, the position error is the activity. getRenderTargetForView(0)

---

<div class="post-metadata">

### Author: ![hshakula](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hshakula](https://forums.leialoft.com/u/hshakula)
#### Post date: [August 6, 2023, 5:29pm UTC](https://forums.leialoft.com/t/cnsdk-getrendertargetforview-0-problem/3345/2 "2023-08-06T17:29:59Z")

</div>

logs?

---

<div class="post-metadata">

### Author: ![zhoulin](https://avatars.discourse-cdn.com/v4/letter/z/48db29/32.png) [@zhoulin](https://forums.leialoft.com/u/zhoulin)
#### Post date: [August 7, 2023, 6:35am UTC](https://forums.leialoft.com/t/cnsdk-getrendertargetforview-0-problem/3345/3 "2023-08-07T06:35:03Z")

</div>

com.leia.cnsdkgettingstartedglandroidnative A/LeiaSDK: [LeiaSDK] [critical] leia::sdk::Gui::~Gui() being used on incorrect thread.  
com.leia.cnsdkgettingstartedglandroidnative E/libEGL: call to OpenGL ES API with no current context (logged once per thread)

[LeiaSDK] [error] [Interlacing-Repository] Failed to create in-service implementation: JNI call failed: jobject javaInstance = jniEnv-\>NewObject(clazz, constructor, (jlong)this, androidContext, \*packageName, \*className, \*interfaceName, \*minVersion, desc.foreground, desc.important, desc.autoReconnect) in leia::BaseServiceConnection::BaseServiceConnection(leia::Platform \*, JNIEnv \*, const leia::ServiceDescriptor &, leia::BaseServiceConnection::OnConnectionUpdateCallback) D:/a/CNSDK/CNSDK/leia/common/android/baseServiceConnection.cpp:46

---

<div class="post-metadata">

### Author: ![hshakula](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@hshakula](https://forums.leialoft.com/u/hshakula)
#### Post date: [August 7, 2023, 8:04am UTC](https://forums.leialoft.com/t/cnsdk-getrendertargetforview-0-problem/3345/4 "2023-08-07T08:04:14Z")

</div>

Neither of these errors is a potential reason for a crash. Please share the whole system-level log of your app’s run. Also, an .apk that I can use to reproduce will be handy
