android.view.WindowLeaked: Activity com.tns.NativeScriptActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{1a0426a2 G.E..... R.....I. 0,0-684,0} that was originally added here


Samebug tips1

Close (finish) a Activity before, to ensure that the subsidiary in the above Dialog or PopupWindow have been closed (dismiss). Is also available at OnCreateDialog (Dialog) to create, let the system to manage the dialog box


,
via github.com by Unknown author

Solutions on the web501

Solution icon of github
via GitHub by ryc16
, 1 year ago
Activity com.tns.NativeScriptActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{1a0426a2 G.E..... R.....I. 0,0-684,0} that was originally added here

Solution icon of github
via GitHub by ryc16
, 1 year ago
Activity com.tns.NativeScriptActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{ae9b1240 G.E..... R.....ID 0,0-693,168} that was originally added here

Solution icon of github
via GitHub by ryc16
, 1 year ago
Activity com.tns.NativeScriptActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{3bba980a G.E..... R.....ID 0,0-1026,290} that was originally added here

Solution icon of stackoverflow
via Stack Overflow by Richard
, 1 year ago
Activity com.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{442e5b90 G.E..... R.....ID 0,0-684,192} that was originally added here

Solution icon of github
Activity com.Odoo.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{529b31c4 G.E..... R.....ID 0,0-729,324} that was originally added here

Solution icon of github
Activity com.google.samples.quickstart.signin.SignInActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{3e1e5317 G.E..... R.....ID 0,0-1026,348} that was originally added here

Solution icon of stackoverflow
via Stack Overflow by Unknown author, 1 year ago
Activity com.assigame.nidhoegger.assigame.Login has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{42284588 G.E..... R......D 0,0-684,324} that was originally added here

Solution icon of stackoverflow
via Stack Overflow by ZgrKARALAR
, 1 year ago
Activity com.interrail.railrehber.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{41bcce70 G.E..... R.....ID 0,0-640,128} that was originally added here

Solution icon of github
Activity com.mapbox.mapboxsdk.testapp.activity.annotation.BulkMarkerActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{215450ff G.E..... R.....ID 0,0-1002,483} that was originally added here

Solution icon of github
Activity com.jemshit.itu.ClassActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{42a1b400 G.E..... R.....ID 0,0-1920,1080} that was originally added here

Stack trace

android.view.WindowLeaked: Activity com.tns.NativeScriptActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{1a0426a2 G.E..... R.....I. 0,0-684,0} that was originally added here
	at android.view.ViewRootImpl.<init>(ViewRootImpl.java:363)
	at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:271)
	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
	at android.app.Dialog.show(Dialog.java:298)
	at com.tns.Runtime.callJSMethodNative(Native Method)
	at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:865)
	at com.tns.Runtime.callJSMethodImpl(Runtime.java:730)
	at com.tns.Runtime.callJSMethod(Runtime.java:716)
	at com.tns.Runtime.callJSMethod(Runtime.java:697)
	at com.tns.Runtime.callJSMethod(Runtime.java:687)
	at com.tns.gen.android.app.Application_ActivityLifecycleCallbacks.onActivityResumed(android.app.Application$ActivityLifecycleCallbacks.java)
	at android.app.Application.dispatchActivityResumed(Application.java:208)
	at android.app.Activity.onResume(Activity.java:1220)
	at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1257)
	at android.app.Activity.performResume(Activity.java:6076)
	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2975)
	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392)
	at android.app.ActivityThread.access$800(ActivityThread.java:151)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5254)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Once, 1 year ago
32 times, 1 year ago
5 times, 6 days ago
93 more bugmates