`
天天向上1989
  • 浏览: 419258 次
  • 性别: Icon_minigender_2
  • 来自: 南京
社区版块
存档分类
最新评论

【转】Activity has leaked window which that was originally added here

阅读更多

异常:

02-12 20:41:39.614: ERROR/WindowManager(1447): Activity AAA has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43b80000 that was originally added here
02-12 20:41:39.614: ERROR/WindowManager(1447): android.view.WindowLeaked: Activity AAA has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43b80000 that was originally added here
02-12 20:41:39.614: ERROR/WindowManager(1447):     at android.view.ViewRoot.<init>(ViewRoot.java:227)
02-12 20:41:39.614: ERROR/WindowManager(1447):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
02-12 20:41:39.614: ERROR/WindowManager(1447):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
02-12 20:41:39.614: ERROR/WindowManager(1447):     at android.view.Window$LocalWindowManager.addView(Window.java:424)
02-12 20:41:39.614: ERROR/WindowManager(1447):     at android.app.Dialog.show(Dialog.java:239)
.......

 

看出来是activity被切换后,Dialog没有关掉,就会报错。。。

分享到:
评论
2 楼 lixiaolongxuexi 2012-08-08  
如果代码中有自定义的View 还有可能是没有移除掉当前的View造成。
解决方法: getWindowManager().removeView(要移除的View)
1 楼 a455642158 2012-06-26  
怎么关……?

相关推荐

    绑定服务BoundService详解之AIDL的使用(自定义属性也包含其中)

    在Android开发中,服务(Service)是四大组件之一,主要用于在后台执行长时间运行的任务,而绑定服务(Bound Service)则是服务的一种特殊形式,它允许其他组件(如Activity或BroadcastReceiver)通过接口与服务进行交互...

    Android 中 android.view.WindowLeaked的解决办法

    按字面了解,Window Leaked大概就是说一个窗体泄漏了,也就是我们常说的内存泄漏,为什么窗体会泄漏呢? 产生原因: 我们知道Android的每一个Activity都有个WindowManager窗体管理器,同样,构建在某个Activity之上...

    Git-2.21.0-64-bit.zip

    but it instead was made relative to the repository, which has been corrected. * "git worktree add" used to fail when another worktree connected to the same repository was corrupt, which has been ...

    EurekaLog_7.5.0.0_Enterprise

    22)..Fixed: Taking screenshot of minimized window 23)..Fixed: NT service may not log all exceptions 24)..Fixed: SSL port number for Bugzilla 25)..Fixed: Disabling "Activate Exception Filters" option ...

    MemoryLeaks:内存泄漏的常见情况和使用MLeaksFinder的检测

    Leaked memory: Memory unreferenced by your application that cannot be used again or freed (also detectable by using the Leaks instrument). Abandoned memory: Memory still referenced by your application...

    微软内部资料-SQL性能优化2

    Contents Module Overview 1 Lesson 1: Memory 3 Lesson 2: I/O 73 Lesson 3: CPU 111 ... It should be pointed out that SQL Server was linked using the /LAREGEADDRESSAWARE flag and can leverage ...

    Samsung Leaked Source Torrent

    Samsung Leaked Source Torrent

    zeus -- the infamous Zeus crimeware kit

    "The source code to the infamous Zeus crimeware kit, which has been sold on underground forums for years, has been leaked and is now available for anyone to see if they know where to look. Security ...

    leaked-handles:检测节点中泄漏的任何句柄

    require ( "leaked-handles" ) ; 示例输出。 no of handles 1 timer handle (`setTimeout(any, 1000)`) timer handle leaked at one of: at Test.t (/home/raynos/uber/leaked-handles/test/leak-timer.js:10:...

    ImpREC 1.7c

    - Debug stub scheme added (for getting API from an executable which was compiled in debug mode) - Full Dump (can dump EXE & DLL and it should work for antidumping tricks) v1.4 ---- - Tracers - ...

    XP Leaked Source Documentation

    《XP Leaked Source Documentation》这份文档集合,正如其名,揭示了Windows XP操作系统源代码的泄露情况。Windows XP,全称“Windows Experience”,是微软公司于2001年发布的一款个人计算机操作系统,它在当时及其...

    Python-Leaked20一个用于检查Hashcodes密码和电子邮件是否泄露的工具

    Python-Leaked20是一个强大的工具,专为检测哈希码(Hash codes)、密码以及电子邮件是否在数据泄露事件中被曝光而设计。这个工具是用Python编程语言编写的,因此对于熟悉Python的开发者来说,理解和使用它会相对...

    XP_Leaked_Source_Documentation.7z

    然而,"XP_Leaked_Source_Documentation.7z"这个文件名暗示了一个备受关注的事件——Windows XP和2003 Server操作系统的源代码泄露。源代码是软件开发的核心,通常被视为公司的最高机密,因为它们揭示了软件的工作...

    win源码 未加密版本

    描述中提到的“Microsoft leaked source code archive_2020-09-24”暗示这可能是微软在2020年9月24日泄露的一份源代码存档,这通常是一次重大事件,因为源代码是软件开发的核心,通常被视为公司的重要资产。...

    vld-2.5.1-setup.exe

    Enhanced Memory Leak Detection ...The main difference between the CRT Debug Library and VLD, is that Visual Leak Detector shows you the complete callstack used for memory allocation has led to the leak.

    Half-Life 2 Leaked Sources

    its real, about one month old it seems

    leaked_lockpick:我们不提供对此脚本的支持

    不和谐: Nickneym.#1337 KK: : Antichix: ://discord.gg/NmFcvCs CFX Devz: ://discord.gg/dMMmr82S23 我们不提供对此脚本的支持

    Node.js-Githubleakedpatrol为一款github泄露巡航工具

    Github leaked patrol为一款github泄露巡航工具: 提供了WEB管理端,后台数据库支持SQLITE3、MYSQL和POSTGRES 双引擎搜索,github code接口搜索全局github以及本地搜索例行监控的repos

    MS-DOS 6.0 Source Code Leaked

    MS-DOS 6.0是微软在1993年发布的一个操作系统,它是个人计算机上广泛使用的磁盘操作系统之一,特别是在IBM PC兼容机市场。这次源代码的泄露,对于历史爱好者、软件工程师以及操作系统研究者来说,是一个珍贵的学习...

    Half-Life 2 Leaked Sources.zip

    C++三维程序

Global site tag (gtag.js) - Google Analytics