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

sometime wrong #36

Open
Citrussss opened this issue Jul 26, 2020 · 11 comments
Open

sometime wrong #36

Citrussss opened this issue Jul 26, 2020 · 11 comments

Comments

@Citrussss
Copy link

kotlin.UninitializedPropertyAccessException: lateinit property mDestWaveData has not been initialized
at me.bogerchan.niervisualizer.util.KeyFrameMaker.updateWaveData(KeyFrameMaker.kt:32)
at me.bogerchan.niervisualizer.core.NierVisualizerRenderWorker.processUpdateWaveEvent(NierVisualizerRenderWorker.kt:118)
at me.bogerchan.niervisualizer.core.NierVisualizerRenderWorker.access$processUpdateWaveEvent(NierVisualizerRenderWorker.kt:22)
at me.bogerchan.niervisualizer.core.NierVisualizerRenderWorker$mRenderHandler$2$1.handleMessage(NierVisualizerRenderWorker.kt:56)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:223)
at android.os.HandlerThread.run(HandlerThread.java:67)

@bogerchan
Copy link
Owner

Thanks for reporting the issues, I would fix it ASAP. : )

@akshitk007
Copy link

@Citrussss I am facing the same issue Did you find something to handle this issue?

@Citrussss
Copy link
Author

@Citrussss I am facing the same issue Did you find something to handle this issue?

i am download code and change it at local .

    fun updateWaveData(waveData: ByteArray) {
        if(this::mDestWaveData.isInitialized){//add this line..
            System.arraycopy(waveData, 0, mDestWaveData, 0, mDestWaveData.size)
            System.arraycopy(computedWaveData, 0, mPrevWaveData, 0, mPrevWaveData.size)
//        System.arraycopy(waveData, 0, computedWaveData, 0, computedWaveData.size)
//        System.arraycopy(waveData, 0, mPrevWaveData, 0, mPrevWaveData.size)
            mWaveAnimator.reset()
        }
    }

@olivaresrafael
Copy link

I am facing the same issue when restar activity.

@sergeykrupenich
Copy link

are there any updates related to the issue?

@bogerchan
Copy link
Owner

Sorry for the late reply, the issue is happened when you are not call the start event, you can call the following codes after the activity is restarted.

mVisualizerManager?.start(svWave, mRenderers[idx % mRenderers.size])

Next release will fix this issue. : )

@rameezhandel
Copy link

Thanks for the wonderful library.
when are you releasing the fix for this issue?

@Citrussss
Copy link
Author

@rameezhandel I dont think so what he would fix it ASAP when he tell at 2020 but 🐦 咕咕咕(joke!)

@kishorekumarek
Copy link

fun updateWaveData(waveData: ByteArray) {
if(this::mDestWaveData.isInitialized){//add this line..
System.arraycopy(waveData, 0, mDestWaveData, 0, mDestWaveData.size)
System.arraycopy(computedWaveData, 0, mPrevWaveData, 0, mPrevWaveData.size)
// System.arraycopy(waveData, 0, computedWaveData, 0, computedWaveData.size)
// System.arraycopy(waveData, 0, mPrevWaveData, 0, mPrevWaveData.size)
mWaveAnimator.reset()
}
}

@Citrussss this fixed the crash for you?

@Citrussss
Copy link
Author

sure ,but aren't you an IOS developer? @kishorekumarek

@kishorekumarek
Copy link

kishorekumarek commented May 10, 2022

@Citrussss yes i work on android as well.. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants