AndroidPlot null pointer exception, Android Studio - android-studio

I was given this error in the google play console:
java.lang.NullPointerException:
1. at com.androidplot.Plot$BufferedCanvas.recycle (Plot.java:225)
2. at com.androidplot.Plot$1.run (Plot.java:407)
3. at java.lang.Thread.run (Thread.java:818)
can someone explain why this is happening and suggest how I could fix this.
Thanks.

Related

MIUI 11/12 Theme Switch Results in LifeCycleException, ClassCastException

Since MIUI 11/12 Use Its Own Custom Implementation of Dark Mode, using below code results in ClassCastException
and Activity Life Cycle Exception, as DefaultNightMode and LocalNightMode is always Unspecified i.e. -100 instead of 0 or 1.
If anyone has built a workaround for Xiaomi Devices specially for MIUI 11/12. Please Help Me Out On this.
Code Used:
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
this.recreate();
Error Caused:
2020-10-25 07:04:43.626 9167-9167/com.xxxx.xxxxxx E/ActivityInjector: get life cycle exception
java.lang.ClassCastException: android.os.BinderProxy cannot be cast to android.app.servertransaction.ClientTransaction
I solved it myself. After fiddling around with it for a week, I did it..
Here is how:
-- Instead of setting android:forceDarkAllowed="false" for each and every Activity.
-- Just goto values.xml and place this in your AppTheme
<item name="android:forceDarkAllowed">false</item>
It will ask you to create a valuesv29.xml. Create it, and remove the forceDarkAllowed="false" from all activities.
Welcome. :)
Also in jetpack compose just add the line to the theme.xml
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
With this target api worked fine for me

Error 310170 occured Property Node(arg 1) in Simulation Trace Environment

We tried to work out our code in LabView 2018 and tried to run it in Cybersim but this error is popping up. Any recommendation to improve the same will be appreciated. Thanks in advance.
310170 means "The Ethercat is busy" https://zone.ni.com/reference/en-XX/help/372983F-01/lvrobogsm/robo_error_codes/
Without any code it's hard to help more.

Syntax highlighting gone in Android Studio 3.3.1

Recently, syntax highlighting stopped working for me in Android Studio.
And I believe it's related to my project and not Android Studio itself.
From my understanding, the below error message gets thrown when I open certain files and the syntax highlighting isn't executed. If I edit the file by removing a line of code or so, however, syntax highlighting will show up again.
Going through and searching for the stacktrace doesn't give me any real indicator on what might be wrong, so here I am. Do you know what might be wrong?
I've tried clearing caches, reinstalling and playing with different settings in Android Studio without any effect, which leads me to believe that this is related to the project directly. Moreover, if I create a new project, syntax highlighting works as normal.
What I see...
Full stacktrace...
org.jetbrains.kotlin.idea.caches.lightClasses.LazyLightClassMemberMatchingError$NoMatch: Couldn't match ClsMethodImpl:hashCode MemberIndex(index=10) (with 0 parameters)
at org.jetbrains.kotlin.idea.caches.lightClasses.LazyLightClassDataHolder.assertMatches(LazyLightClassDataHolder.kt:145)
at org.jetbrains.kotlin.idea.caches.lightClasses.LazyLightClassDataHolder.access$assertMatches(LazyLightClassDataHolder.kt:32)
at org.jetbrains.kotlin.idea.caches.lightClasses.LazyLightClassDataHolder$LazyLightClassData$getOwnMethods$$inlined$map$lambda$1.invoke(LazyLightClassDataHolder.kt:138)
at org.jetbrains.kotlin.idea.caches.lightClasses.LazyLightClassDataHolder$LazyLightClassData$getOwnMethods$$inlined$map$lambda$1.invoke(LazyLightClassDataHolder.kt:100)
at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:107)
at org.jetbrains.kotlin.asJava.elements.KtLightMemberImpl.getClsDelegate(KtLightMemberImpl.kt)
at org.jetbrains.kotlin.asJava.elements.KtLightMemberImpl$_modifierList$2.invoke(KtLightMemberImpl.kt:47)
at org.jetbrains.kotlin.asJava.elements.KtLightMemberImpl$_modifierList$2.invoke(KtLightMemberImpl.kt:35)
at kotlin.SafePublicationLazyImpl.getValue(LazyJVM.kt:107)
at org.jetbrains.kotlin.asJava.elements.KtLightMemberImpl.get_modifierList(KtLightMemberImpl.kt)
at org.jetbrains.kotlin.asJava.elements.KtLightMemberImpl.getModifierList(KtLightMemberImpl.kt:52)
at org.jetbrains.kotlin.asJava.elements.KtLightMethodImpl.getModifierList(KtLightMethodImpl.kt:127)
at com.intellij.codeInsight.AnnotationUtil.isAnnotated(AnnotationUtil.java:244)
at com.intellij.codeInsight.AnnotationUtil.lambda$isAnnotated$4(AnnotationUtil.java:234)
at java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:449)
at com.intellij.codeInsight.AnnotationUtil.isAnnotated(AnnotationUtil.java:234)
at com.intellij.codeInsight.MetaAnnotationUtil.isMetaAnnotated(MetaAnnotationUtil.java:154)
at com.intellij.execution.junit.JUnitUtil.lambda$isJUnit5TestClass$1(JUnitUtil.java:280)
at com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:140)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:60)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:87)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:139)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:126)
at com.intellij.execution.junit.JUnitUtil.isJUnit5TestClass(JUnitUtil.java:276)
at com.intellij.execution.junit.JUnit5Framework.isTestClass(JUnit5Framework.java:52)
at com.intellij.testIntegration.JavaTestFramework.isTestClass(JavaTestFramework.java:64)
at com.intellij.codeInsight.TestFrameworks.computeFramework(TestFrameworks.java:92)
at com.intellij.codeInsight.TestFrameworks.lambda$detectFramework$0(TestFrameworks.java:63)
at com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:140)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:60)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:87)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:139)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:126)
at com.intellij.codeInsight.TestFrameworks.detectFramework(TestFrameworks.java:62)
at org.jetbrains.kotlin.idea.core.platform.impl.JvmIdePlatformKindTooling.getTestIcon(JvmIdePlatformKindTooling.kt:60)
at org.jetbrains.kotlin.idea.highlighter.KotlinTestRunLineMarkerContributor.getInfo(KotlinTestRunLineMarkerContributor.kt:66)
at com.intellij.execution.lineMarker.RunLineMarkerProvider.getLineMarkerInfo(RunLineMarkerProvider.java:46)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.queryProviders(LineMarkersPass.java:174)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.lambda$doCollectInformation$3(LineMarkersPass.java:96)
at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:80)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:91)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:69)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:423)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1164)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:416)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:415)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:391)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:147)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:222)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:389)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:161)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Naturally when posting about an issue, the solution reveals itself shortly thereafter.
I have equals & hashcode overridden in one class (Entity) and both methods are marked as final. The issue comes up whenever a data-class extends Entity, Im guessing because its trying to create its own equals & hashcode methods, but cant.
Hope this helps anyone else out there! I think the behavior is correct (a data class has a very specific equals/hashcode) so I dont consider this a bug in the Kotlin plugin, but a better error message would be preferrable in the future.

JGoogleAnalyticsTracker initialization failure in UML Designer plugin

I am getting a repeated error while using OBEO UML-Designer plugin version 6.0.0.2 for Eclipse Mars. There is a setting in Eclipse Preferences under Windows-Preferences-Sirius-UML Designer Usage - the check box that indicates whether collection of data is allowed or disallowed, in my case the box is unchecked, so it should not attempt to collect the data. However, it appears trying to collect the data and fails for some reason as indicated below:
!ENTRY org.eclipse.ui.workbench 4 2 2016-11-22 15:39:08.529
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NoClassDefFoundError: com.dmurph.tracking.JGoogleAnalyticsTracker (initialization failure)
at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:87)
at org.obeonetwork.dsl.uml2.usage.analytics.SiriusEditorsListener.(SiriusEditorsListener.java:67)
at org.obeonetwork.dsl.uml2.usage.analytics.UsageStartup$1.windowActivated(UsageStartup.java:65)
Multiple occurences of the same error are logged by Eclipse. Can someone help to resolve the issues, please?
your help is greatly appreciated!
thanks,
victor
I add a new issue in the UML Designer tracker, I will try to fix it for the next 7.2.0 version: https://github.com/ObeoNetwork/UML-Designer/issues/902
You should know that even if you have an error we do not track anything when you unchecked the preference.
Thanks for your feedback!

DirectX 10 Shader Pass Descriptor corruption

Good afternoon everyone.
I've got a strange issue that I just can't seem to figure out.
In the following code segment
m_technique->GetPassByIndex(0)->GetDesc(&passDesc);
result = device->CreateInputLayout(polygonLayout,numElements,passDesc.pIAInputSignature,passDesc.IAInputSignatureSize,&m_layout);
the Direct X Debug output gives the following:
First-chance exception at 0x753D37C3 (kernel32.dll) in GameTest.exe: 0xC0000005: Access violation reading location 0xCCCCCCCC.
First-chance exception at 0x75B44B32 (KernelBase.dll) in GameTest.exe: 0x0000087A (parameters: 0x00000000, 0x0083E214, 0x0083D64C).
D3D11 CORRUPTION: ID3D10Device::CreateInputLayout: Third parameter is corrupt. [ MISCELLANEOUS CORRUPTION #15: CORRUPTED_PARAMETER3]
A few things that I am unsure about. In the last line I see D3D11 CORRUPTION, but I only use D3D10 headers and libraries.
I am working in Visual Studio 2012, and I have the Windows 8 SDK installed, so that may cause problems.
I'm not sure how to proceed and any advice would be greatly appreciated.

Resources