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

exception= lateinit property imagePreviewAdapter has not been initialized #180

Open
HelloJokerWord opened this issue Dec 9, 2022 · 14 comments
Labels
invalid This doesn't seem right

Comments

@HelloJokerWord
Copy link

0 Error List:
1 java.lang.RuntimeException:Unable to start activity ComponentInfo{com.hpc.happy.chat.lite/cc.shinichi.library.view.ImagePreviewActivity}: j.n: lateinit property imagePreviewAdapter has not been initialized
2 ......
3 Cause by:
4 cc.shinichi.library.view.ImagePreviewActivity.finish(:7)
5 android.app.Activity.finishAfterTransition(Activity.java:6626)
@SherlockGougou
Copy link
Owner

请问是如何发生的呢?

@HelloJokerWord
Copy link
Author

请问是如何发生的呢?

是奔溃日志抓到的,测试本身没有测出,聪日志上看,有点像是打开大图查看的时候,可能网络很卡怎么的,就很快速的就杀死进程,后台出了个崩溃的

@HelloJokerWord
Copy link
Author

请问是如何发生的呢?

image

@SherlockGougou
Copy link
Owner

出现的次数多吗?

@HelloJokerWord
Copy link
Author

出现的次数多吗?

不多,就一两次,很极端的

@HelloJokerWord
Copy link
Author

出现的次数多吗?

还有一个问题,也可以帮忙看下。
image
image
也是很极端的,有那么一两次

@SherlockGougou
Copy link
Owner

OK,我这边看看。

@HelloJokerWord
Copy link
Author

出现的次数多吗?

我用户量的话大概1-2K左右

@HelloJokerWord
Copy link
Author

OK,我这边看看。

好的,谢谢

@HelloJokerWord
Copy link
Author

OK,我这边看看。

大佬,这两个奔溃,我感觉要么?.finish , 要么try cache就好了。因为这两天发版想带上,嘻嘻。这两个奔溃之前的三四个版本都会有的。不过都很少,就一两个比较极端的。

@SherlockGougou
Copy link
Owner

嗯,差不多的解决方案,adapter在某些情况下不会进行初始化,我这边改成可空了的。稍后推一个更新版本。

@SherlockGougou
Copy link
Owner

7.0.6发布了,针对以上问题修复,你可以看变更记录。

@HelloJokerWord
Copy link
Author

7.0.6发布了,针对以上问题修复,你可以看变更记录。

好的,谢谢大佬

@HelloJokerWord
Copy link
Author

7.0.6发布了,针对以上问题修复,你可以看变更记录。

大佬,我这边还有个这个奔溃日志,有空帮忙看看。
image
image

Java crash handler caught exception: Index: 4, Size: 0 java.util.ArrayList.get(ArrayList.java:437) cc.shinichi.library.view.ImagePreviewActivity$a.onPageSelected(:6) g.d0.a.b.dispatchOnPageSelected(Unknown Source:28) g.d0.a.b.scrollToItem(Unknown Source:37) g.d0.a.b.setCurrentItemInternal(Unknown Source:106) g.d0.a.b.onTouchEvent(Unknown Source:295) android.view.View.dispatchTouchEvent(View.java:13699) android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3243) android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2924) android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249) android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938) android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249) android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938) android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249) android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938) android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249) android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938) android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249) android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938) android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3249) android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2938) com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:741) com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:2013) android.app.Activity.dispatchTouchEvent(Activity.java:4180) g.b.f.h.dispatchTouchEvent(Unknown Source:2) com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:687) android.view.View.dispatchPointerEvent(View.java:13962) android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:6420) android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:6215) android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:5604) android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5657)

@SherlockGougou SherlockGougou added the invalid This doesn't seem right label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants