Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

간헐적으로 뷰어 터치시 발생하는 크래시 #24

Open
JSpiner opened this issue Oct 26, 2018 · 0 comments
Open

간헐적으로 뷰어 터치시 발생하는 크래시 #24

JSpiner opened this issue Oct 26, 2018 · 0 comments

Comments

@JSpiner
Copy link
Owner

JSpiner commented Oct 26, 2018

개요

간헐적으로 뷰어화면에서 화면 터치시 아래와 같은 오류가 발생

java.lang.NoSuchMethodError: No virtual method getCurrentToolboxVisible()Z in class Lnet/jspiner/epub_viewer/ui/reader/ReaderViewModel; 

ReaderViewModel에서 getCurrentToolboxVisible() 라는 virtual method를 찾을수 없다는데,
getCurrentToolboxVisible()는 open method도 abstract method도 아닌 method임.
또한 Build>Clean Project 수행시 해당 오류가 없어짐.(하다보면 또 생김 😭)
kotlin으로 인해 생긴 오류로 추정...

해당함수 선언부

class ReaderViewModel : BaseViewModel() {
    //중략
    fun getCurrentToolboxVisible() = toolboxShowSubject.value!!
    //중략
}

에러 전문

10-26 15:15:25.414 6022-6022/net.jspiner.epub_viewer E/AndroidRuntime: FATAL EXCEPTION: main
    Process: net.jspiner.epub_viewer, PID: 6022
    java.lang.NoSuchMethodError: No virtual method getCurrentToolboxVisible()Z in class Lnet/jspiner/epub_viewer/ui/reader/ReaderViewModel; or its super classes (declaration of 'net.jspiner.epub_viewer.ui.reader.ReaderViewModel' appears in /data/app/net.jspiner.epub_viewer-98FYWfFK3vVrmX5nWybGEg==/base.apk)
        at net.jspiner.epub_viewer.ui.reader.toolbox.ToolboxView.performClick(ToolboxView.kt:113)
        at net.jspiner.epub_viewer.ui.reader.toolbox.ToolboxView$onTouchViewTouchEvent$1.invoke(ToolboxView.kt:139)
        at net.jspiner.epub_viewer.ui.reader.toolbox.ToolboxView$onTouchViewTouchEvent$1.invoke(ToolboxView.kt:21)
        at net.jspiner.epub_viewer.ui.reader.toolbox.ToolboxView$onAttachedToWindow$3.onTouch(ToolboxView.kt:59)
        at android.view.View.dispatchTouchEvent(View.java:12530)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2844)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2844)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2844)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2844)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2844)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2844)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2844)
        at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:3159)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2844)
        at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:600)
        at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1871)
        at android.app.Activity.dispatchTouchEvent(Activity.java:3384)
        at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:69)
        at com.android.tools.profiler.support.event.WindowProfilerCallback.dispatchTouchEvent(WindowProfilerCallback.java:69)
        at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:562)
        at android.view.View.dispatchPointerEvent(View.java:12782)
        at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:5662)
        at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:5457)
        at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4950)
        at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5003)
        at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4969)
        at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:5106)
        at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4977)
        at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:5163)
        at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4950)
        at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:5003)
        at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4969)
        at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4977)
        at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4950)
        at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:7719)
        at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:7659)
        at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:7620)
        at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:7830)
        at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185)
10-26 15:15:25.415 6022-6022/net.jspiner.epub_viewer E/AndroidRuntime:     at android.os.MessageQueue.nativePollOnce(Native Method)
        at android.os.MessageQueue.next(MessageQueue.java:325)
        at android.os.Looper.loop(Looper.java:142)
        at android.app.ActivityThread.main(ActivityThread.java:6938)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant