Coder Social home page Coder Social logo

Comments (3)

Aditya13s avatar Aditya13s commented on May 25, 2024

What are the steps to reproduce this? @david-allison

from anki-android.

david-allison avatar david-allison commented on May 25, 2024

No clue

from anki-android.

david-allison avatar david-allison commented on May 25, 2024

Rough logcat

Steps:

  • enable "don't keep activities"
  • Open the template previewer
  • Close + reopen the app
22:38:25.063 FragmentLifecycleLogger com.ichi2.anki.debug                 I  CardViewerActivity::TemplatePreviewerFragment::onDestroy
22:38:25.064 FragmentLifecycleLogger com.ichi2.anki.debug                 I  CardViewerActivity::TemplatePreviewerFragment::onDetach
22:38:25.068 ViewRootIm...rActivity] com.ichi2.anki.debug                 I  dispatchDetachedFromWindow
22:38:26.831 Themes                  com.ichi2.anki.debug                 I  Setting theme to LIGHT
22:38:26.834 AnkiDroidApp$onCreate   com.ichi2.anki.debug                 I  CardViewerActivity::onCreate
22:38:26.834 FragmentLifecycleLogger com.ichi2.anki.debug                 I  CardViewerActivity::TemplatePreviewerFragment::onAttach
22:38:26.835 FragmentLifecycleLogger com.ichi2.anki.debug                 I  CardViewerActivity::TemplatePreviewerFragment::onCreate
22:38:26.845 AnkiDroidApp$onCreate   com.ichi2.anki.debug                 I  CardViewerActivity::onStart
22:38:26.851 TabLayout               com.ichi2.anki.debug                 W  MODE_SCROLLABLE + GRAVITY_FILL is not supported, GRAVITY_START will be used instead
22:38:26.885 TtsVoices               com.ichi2.anki.debug                 V  begin TTS creation
22:38:26.888 TextToSpeech            com.ichi2.anki.debug                 I  Sucessfully bound to com.samsung.SMT
22:38:26.891 TextToSpeech            com.ichi2.anki.debug                 I  Connected to TTS engine
22:38:26.893 TextToSpeech            com.ichi2.anki.debug                 I  Setting up the connection to TTS engine...
22:38:26.895 FragmentLifecycleLogger com.ichi2.anki.debug                 I  CardViewerActivity::TemplatePreviewerFragment::onViewCreated
22:38:26.897 FragmentLifecycleLogger com.ichi2.anki.debug                 I  CardViewerActivity::TemplatePreviewerFragment::onStart
22:38:26.901 AnkiDroidApp$onCreate   com.ichi2.anki.debug                 I  CardViewerActivity::onResume
22:38:26.901 UsageAnalytics          com.ichi2.anki.debug                 D  sendAnalyticsScreenView(): CardViewerActivity
22:38:26.901 UsageAnalytics          com.ichi2.anki.debug                 D  getOptIn() status: false
22:38:26.902 FragmentLifecycleLogger com.ichi2.anki.debug                 I  CardViewerActivity::TemplatePreviewerFragment::onResume
22:38:26.904 NativeCust...ncyManager com.ichi2.anki.debug                 D  [NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
22:38:26.909 InsetsController        com.ichi2.anki.debug                 D  onStateChanged: host=com.ichi2.anki.debug/com.ichi2.anki.previewer.CardViewerActivity from=android.view.ViewRootImpl.setView:1717 state=InsetsState: {mDisplayFrame=Rect(0, 0 - 1080, 2400), mDisplayCutout=DisplayCutout{insets=Rect(0, 80 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(510, 0 - 570, 80), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1080 displayHeight=2400 physicalDisplayWidth=1080 physicalDisplayHeight=2400 density={3.0} cutoutSpec={M 0,0 H -10 V 26.66666666666667 H 10 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=0, center=Point(0, 0)}, RoundedCorner{position=TopRight, radius=0, center=Point(0, 0)}, RoundedCorner{position=BottomRight, radius=0, center=Point(0, 0)}, RoundedCorner{position=BottomLeft, radius=0, center=Point(0, 0)}]}  mRoundedCornerFrame=Rect(0, 0 - 1080, 2400), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(948, 0 - 1080, 80) rotation=0}, mDisplayShape=DisplayShape{ spec=-1893857183 displayWidth=1080 displayHeight=2400 physicalPixelDisplaySizeRatio=1.0 rotation=0 offsetX=0 offsetY=0 scale=1.0}, mSources= { InsetsSource: {c06f0001 mType=navigationBars mFrame=[0,2355][1080,2400] mVisible=true mFlags=[SUPPRESS_SCRIM]}, InsetsSource: {c06f0004 mType=systemGestures mFrame=[0,0][90,2400] mVisible=true mFlags=[]}, InsetsSource: {c06f0005 mType=mandatorySystemGestures mFrame=[0,2304][1080,2400] mVisible=true mFlags=[]}, InsetsSource: {c06f0006 mType=tappableElement mFrame=[0,0][0,0] mVisible=true mFlags=[]}, InsetsSource: {c06f0024 mType=systemGestures mFrame=[990,0][1080,2400] mVisible=true mFlags=[]}, InsetsSource: {e9c60000 mType=statusBars mFrame=[0,0][1080,80] mVisible=true mFlags=[]}, InsetsSource: {e9c60005 mType=mandatorySystemGestures mFrame=[0,0][1080,116] mVisible=true mFlags=[]}, InsetsSource: {e9c60006 mType=tappableElement mFrame=[0,0][1080,80] mVisible=true mFlags=[]}, InsetsSource: {27 mType=displayCutout mFrame=[0,0][1080,80] mVisible=true mFlags=[]} }
22:38:26.910 ViewRootIm...rActivity] com.ichi2.anki.debug                 I  synced displayState. AttachInfo displayState=2
22:38:26.910 ViewRootIm...rActivity] com.ichi2.anki.debug                 I  setView = com.android.internal.policy.DecorView@8f7cfcc TM=true
22:38:26.928 InsetsController        com.ichi2.anki.debug                 D  onStateChanged: host=com.ichi2.anki.debug/com.ichi2.anki.previewer.CardViewerActivity from=android.view.ViewRootImpl.relayoutWindow:9940 state=InsetsState: {mDisplayFrame=Rect(0, 0 - 1080, 2400), mDisplayCutout=DisplayCutout{insets=Rect(0, 80 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(510, 0 - 570, 80), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1080 displayHeight=2400 physicalDisplayWidth=1080 physicalDisplayHeight=2400 density={3.0} cutoutSpec={M 0,0 H -10 V 26.66666666666667 H 10 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=0, center=Point(0, 0)}, RoundedCorner{position=TopRight, radius=0, center=Point(0, 0)}, RoundedCorner{position=BottomRight, radius=0, center=Point(0, 0)}, RoundedCorner{position=BottomLeft, radius=0, center=Point(0, 0)}]}  mRoundedCornerFrame=Rect(0, 0 - 1080, 2400), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(948, 0 - 1080, 80) rotation=0}, mDisplayShape=DisplayShape{ spec=-1893857183 displayWidth=1080 displayHeight=2400 physicalPixelDisplaySizeRatio=1.0 rotation=0 offsetX=0 offsetY=0 scale=1.0}, mSources= { InsetsSource: {c06f0001 mType=navigationBars mFrame=[0,2355][1080,2400] mVisible=true mFlags=[SUPPRESS_SCRIM]}, InsetsSource: {c06f0004 mType=systemGestures mFrame=[0,0][90,2400] mVisible=true mFlags=[]}, InsetsSource: {c06f0005 mType=mandatorySystemGestures mFrame=[0,2304][1080,2400] mVisible=true mFlags=[]}, InsetsSource: {c06f0006 mType=tappableElement mFrame=[0,0][0,0] mVisible=true mFlags=[]}, InsetsSource: {c06f0024 mType=systemGestures mFrame=[990,0][1080,2400] mVisible=true mFlags=[]}, InsetsSource: {e9c60000 mType=statusBars mFrame=[0,0][1080,80] mVisible=true mFlags=[]}, InsetsSource: {e9c60005 mType=mandatorySystemGestures mFrame=[0,0][1080,116] mVisible=true mFlags=[]}, InsetsSource: {e9c60006 mType=tappableElement mFrame=[0,0][1080,80] mVisible=true mFlags=[]}, InsetsSource: {3 mType=ime mFrame=[0,0][0,0] mVisible=false mFlags=[]}, InsetsSource: {27 mType=displayCutout mFrame=[0,0][1080,80] mVisible=true mFlags=[]} }
22:38:26.929 ViewRootIm...rActivity] com.ichi2.anki.debug                 I  Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=7 res=0x403 s={true 0xb40000757ac16510} ch=true seqId=0
22:38:26.929 ViewRootIm...rActivity] com.ichi2.anki.debug                 I  performConfigurationChange setNightDimText nightDimLevel=0
22:38:26.930 ViewRootIm...rActivity] com.ichi2.anki.debug                 D  mThreadedRenderer.initialize() mSurface={isValid=true 0xb40000757ac16510} hwInitialized=true
22:38:26.933 ViewRootIm...rActivity] com.ichi2.anki.debug                 D  reportNextDraw android.view.ViewRootImpl.performTraversals:4658 android.view.ViewRootImpl.doTraversal:3239 android.view.ViewRootImpl$TraversalRunnable.run:11197 android.view.Choreographer$CallbackRecord.run:1650 android.view.Choreographer$CallbackRecord.run:1659 
22:38:26.934 ViewRootIm...rActivity] com.ichi2.anki.debug                 D  Setup new sync=wmsSync-ViewRootImpl@28df959[CardViewerActivity]#52
22:38:26.934 ViewRootIm...rActivity] com.ichi2.anki.debug                 D  Creating new active sync group ViewRootImpl@28df959[CardViewerActivity]#53
22:38:26.934 ViewRootIm...rActivity] com.ichi2.anki.debug                 D  registerCallbacksForSync syncBuffer=false
22:38:26.941 ViewRootIm...rActivity] com.ichi2.anki.debug                 D  Received frameDrawingCallback syncResult=0 frameNum=1.
22:38:26.942 ViewRootIm...rActivity] com.ichi2.anki.debug                 I  mWNT: t=0xb4000073eabb3290 mBlastBufferQueue=0xb40000740abb1410 fn= 1 caller= android.view.ViewRootImpl$8.onFrameDraw:13614 android.view.ThreadedRenderer$1.onFrameDraw:788 <bottom of call stack> 
22:38:26.942 ViewRootIm...rActivity] com.ichi2.anki.debug                 D  Setting up sync and frameCommitCallback
22:38:26.950 ViewRootIm...rActivity] com.ichi2.anki.debug                 D  Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true
22:38:26.950 ViewRootIm...rActivity] com.ichi2.anki.debug                 D  reportDrawFinished
22:38:26.953 TtsVoices$createTts     com.ichi2.anki.debug                 V  TTS creation success
22:38:26.956 AndroidTts...$Companion com.ichi2.anki.debug                 V  TTS creation: initialized player instance
22:38:26.960 ViewRootIm...rActivity] com.ichi2.anki.debug                 I  registerCallbackForPendingTransactions
22:38:26.961 ViewRootIm...rActivity] com.ichi2.anki.debug                 I  mWNT: t=0xb4000073eab77590 mBlastBufferQueue=0xb40000740abb1410 fn= 2 caller= android.view.ViewRootImpl$6.onFrameDraw:5539 android.view.ViewRootImpl$2.onFrameDraw:2103 android.view.ThreadedRenderer$1.onFrameDraw:788 
22:38:27.009 CardViewerViewModel     com.ichi2.anki.debug                 V  showQuestion()
22:38:27.011 CoroutineH...chCatching com.ichi2.anki.debug                 W  kotlin.UninitializedPropertyAccessException: lateinit property currentCard has not been initialized
                                                                             	at com.ichi2.anki.previewer.TemplatePreviewerViewModel.getCurrentCard(TemplatePreviewerViewModel.kt:61)
                                                                             	at com.ichi2.anki.previewer.CardViewerViewModel.showQuestion$suspendImpl(CardViewerViewModel.kt:122)
                                                                             	at com.ichi2.anki.previewer.CardViewerViewModel.showQuestion(Unknown Source:0)
                                                                             	at com.ichi2.anki.previewer.TemplatePreviewerViewModel$onPageFinished$1.invokeSuspend(TemplatePreviewerViewModel.kt:102)
                                                                             	at com.ichi2.anki.previewer.TemplatePreviewerViewModel$onPageFinished$1.invoke(Unknown Source:8)
                                                                             	at com.ichi2.anki.previewer.TemplatePreviewerViewModel$onPageFinished$1.invoke(Unknown Source:4)
                                                                             	at com.ichi2.anki.CoroutineHelpersKt$launchCatchingIO$2.invokeSuspend(CoroutineHelpers.kt:112)
                                                                             	at com.ichi2.anki.CoroutineHelpersKt$launchCatchingIO$2.invoke(Unknown Source:8)
                                                                             	at com.ichi2.anki.CoroutineHelpersKt$launchCatchingIO$2.invoke(Unknown Source:4)
                                                                             	at com.ichi2.anki.CoroutineHelpersKt$launchCatching$1.invokeSuspend(CoroutineHelpers.kt:89)
                                                                             	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                                             	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                                                             	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
                                                                             	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:100)
                                                                             	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
                                                                             	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
                                                                             	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
                                                                             	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

from anki-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.