Closed maicol07 closed 7 months ago
same problem on CLion 2023.2.2. Crashes the app after throwing the exception:
Caused by: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'str' of com/intellij/ui/ColorUtil.fromHex must not be null
at com.intellij.ui.ColorUtil.$$$reportNull$$$0(ColorUtil.java)
at com.intellij.ui.ColorUtil.fromHex(ColorUtil.java)
at com.mallowigi.idea.themes.themes.MTAbstractTheme.applyAccentMode(MTAbstractTheme.kt:361)
at com.mallowigi.idea.MTThemeManager.applyAccentMode(MTThemeManager.kt:425)
at com.mallowigi.idea.MTThemeManager.applyAccents(MTThemeManager.kt:395)
at com.mallowigi.idea.themes.themes.MTAbstractTheme.activate(MTAbstractTheme.kt:182)
at com.mallowigi.idea.MTThemeManager.activate(MTThemeManager.kt:324)
at com.mallowigi.idea.MTThemeManager.activate(MTThemeManager.kt:275)
at com.mallowigi.idea.MTLafComponent.activateTheme(MTLafComponent.kt:255)
at com.mallowigi.idea.MTLafComponent.onSettingsChanged(MTLafComponent.kt:223)
at com.mallowigi.idea.MTLafComponent$initComponent$2.configChanged(MTLafComponent.kt:154)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:699)
at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:663)
... 56 more
Can you open the material_theme.xml
file in your config folder, then delete the entry that has the Accent Mode.
deleted both entries for accent color (secondary and normal) and this stopped clion from crashing at least. However, the entire theme is still breaking clion in...strange ways.
There is still this error exception coming up:
Caused by: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'str' of com/intellij/ui/ColorUtil.fromHex must not be null
at com.intellij.ui.ColorUtil.$$$reportNull$$$0(ColorUtil.java)
at com.intellij.ui.ColorUtil.fromHex(ColorUtil.java)
at com.mallowigi.idea.config.application.MTConfig.getHighlightColor(MTConfig.java:872)
at com.mallowigi.idea.config.MTConfigManager.getTabHighlightColor(MTConfigManager.kt:55)
at com.mallowigi.idea.tabs.MTTabsPainter.getTabUnderlineColor(MTTabsPainter.kt:171)
at com.mallowigi.idea.tabs.MTTabsPainter.paintUnderline(MTTabsPainter.kt:126)
... 76 more
This time the issue seems to be on the tab highlighting color...
Maybe your setting file got corrupted upon release? That's strange... are you using sync settings by any chance?
In any case please print here you settings file.
I was having the same issue with Intellij, and I do use settings sync. Here's my current "working" file:
<application>
<component name="MaterialThemeConfig">
<option name="compactTables" value="true" />
<option name="compactDropdowns" value="true" />
<option name="isCompactMenus" value="true" />
<option name="isCompactStatusBar" value="true" />
<option name="isCompactTables" value="true" />
<option name="pristineConfig" value="false" />
<option name="settingsSelectedTab" value="4" />
<option name="accentColor" value="7e57c2" />
<option name="highlightColor" />
<option name="focusColor" />
<option name="selectedTheme" value="NIGHT_OWL" />
<option name="userId" value="53c4bd6:18a8c127078:-8000" />
<option name="version" value="8.12.6" />
</component>
</application>
I tried commenting the line for accentColor
, but that did nothing. I did notice a second line, with an option similar to secondAccent
(I am sorry, I don't have a backup to share), with no value defined. I commented that one out too and upon loading the setting was removed from the file and Intellij loaded fine.
Looking at the error, maybe that second accent was being set to null by the configuration file? A missing null check somewhere, perhaps?
The highlightColor and focusColor are empty as well. Try to remove those too
-- Elior On 13 Nov 2023 at 22:13 +0200, Angelo Ross @.***>, wrote:
I was having the same issue with Intellij, and I do use settings sync. Here's my current "working" file:
I tried commenting the line for accentColor, but that did nothing. I did notice a second line, with an option similar to secondAccent (I am sorry, I don't have a backup to share), with no value defined. I commented that one out too and upon loading the setting was removed from the file and Intellij loaded fine. Looking at the error, maybe that second accent was being set to null by the configuration file? A missing null check somewhere, perhaps? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
I am now almost certain this behavior is related to settings sync. I switched computers and used RustRover for a bit, and when coming back to my current one, with Intellij, the settings had returned to having the empty secondAccentColor
:
<application>
<component name="MaterialThemeConfig">
<option name="compactTables" value="true" />
<option name="compactDropdowns" value="true" />
<option name="isCompactMenus" value="true" />
<option name="isCompactStatusBar" value="true" />
<option name="isCompactTables" value="true" />
<option name="pristineConfig" value="false" />
<option name="settingsSelectedTab" value="4" />
<option name="accentColor" value="7e57c2" />
<option name="secondAccentColor" />
<option name="highlightColor" />
<option name="focusColor" />
<option name="selectedTheme" value="NIGHT_OWL" />
<option name="userId" value="53c4bd6:18a8c127078:-8000" />
<option name="version" value="8.12.6" />
</component>
</application>
Removing the empty values stopped any errors from happening. I pushed the new settings, hopefully this stops it from happening.
Could it be related to settings sync between IDEs of different families? Or different OSes?
Yes, that was my assumption. There are quite a few problems with that sync
Experienced this bug for IntelliJ 2023.2.5. Initial intuition was that it was related with IDE sync with laptop, thread seems to support that. Occurred after updating the plugin on desktop. Solution was to remove the plugin from %APPDATA%\JetBrains\
How to solve this problem? I can’t use the theme. Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
java.lang.RuntimeException: Cannot invoke (class=MTLafComponent, method=appStarted, topic=AppLifecycleListener) at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:676) at com.intellij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:422) at com.intellij.util.messages.impl.MessageBusImplKt.pumpWaiting(MessageBusImpl.kt:401) at com.intellij.util.messages.impl.MessageBusImplKt.access$pumpWaiting(MessageBusImpl.kt:1) at com.intellij.util.messages.impl.MessagePublisher.invoke(MessageBusImpl.kt:460) at jdk.proxy2/jdk.proxy2.$Proxy67.appStarted(Unknown Source) at com.intellij.idea.IdeStarter$start$2.invokeSuspend(IdeStarter.kt:74) at com.intellij.idea.IdeStarter$start$2.invoke(IdeStarter.kt) at com.intellij.idea.IdeStarter$start$2.invoke(IdeStarter.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78) at kotlinx.coroutines.CoroutineScopeKt.coroutineScope(CoroutineScope.kt:264) at com.intellij.idea.IdeStarter.start$suspendImpl(IdeStarter.kt:66) at com.intellij.idea.IdeStarter.start(IdeStarter.kt) at com.intellij.ide.bootstrap.ApplicationLoader.initApplicationImpl(ApplicationLoader.kt:90) at com.intellij.ide.bootstrap.ApplicationLoader$initApplicationImpl$1.invokeSuspend(ApplicationLoader.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 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) Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'str' of com/intellij/ui/ColorUtil.fromHex must not be null at com.intellij.openapi.application.impl.LaterInvocator.invokeAndWait(LaterInvocator.java:131) at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:471) at com.mallowigi.idea.MTLafComponent.appStarted(MTLafComponent.kt:76) at com.intellij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:696) at com.intellij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:663) ... 20 more Caused by: java.lang.IllegalArgumentException: Argument for @NotNull parameter 'str' of com/intellij/ui/ColorUtil.fromHex must not be null at com.intellij.ui.ColorUtil.$$$reportNull$$$0(ColorUtil.java) at com.intellij.ui.ColorUtil.fromHex(ColorUtil.java) at com.mallowigi.idea.themes.themes.MTAbstractTheme.applyAccentMode(MTAbstractTheme.kt:361) at com.mallowigi.idea.MTThemeManager.applyAccentMode(MTThemeManager.kt:425) at com.mallowigi.idea.MTThemeManager.applyAccents(MTThemeManager.kt:395) at com.mallowigi.idea.themes.themes.MTAbstractTheme.activate(MTAbstractTheme.kt:182) at com.mallowigi.idea.MTThemeManager.activate(MTThemeManager.kt:324) at com.mallowigi.idea.MTThemeManager.activateLAF(MTThemeManager.kt:288) at com.mallowigi.idea.MTThemeManager.activateLAF(MTThemeManager.kt:311) at com.mallowigi.idea.MTLafComponent.activateLaf(MTLafComponent.kt:121) at com.mallowigi.idea.MTLafComponent.appStarted$lambda$1(MTLafComponent.kt:78) at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:208) at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21) at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:190) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861) at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:478) at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:100) at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:79) at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:121) at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:41) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:792) at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739) at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:761) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:690) at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:593) at com.intellij.openapi.application.impl.ApplicationImpl.runWithoutImplicitRead(ApplicationImpl.java:1485) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:593) at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:67) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:369) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:368) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:368) at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:363) at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:997) at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105) at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:997) at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:363) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:861) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:405) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Your JRE: 17.0.9+7-b1000.46 amd64 (JetBrains s.r.o.) C:\soft\Jetbrains\IntelliJ IDEA Ultimate\jbr
What version of the IDE ?
Did you take a look at what people posted in the thread? Please try to follow what was discussed, mostly regarding making sure that all "color" properties either contain a color in hexadecimal, or remove the line entirely
This problem will be triggered when you upgrade to the idea Eap version and then downgrade to the 2023.2.5 version. I tried deleting the theme files synchronized by idea itself, but this problem cannot be solved unless you delete the synchronized files of all software that uses this theme (Webstorm, DataGrip, idea), and then reconfigure the settings of this plug-in. But this operation is so painful. All my Jetbrains software has to reconfigure this theme.
I don't want to issue a new update to the release version knowing the next release is around the corner. If downgrade is the issue, then don't downgrade.
Can you open the
material_theme.xml
file in your config folder, then delete the entry that has the Accent Mode.
This method worked for me
where to find this file? material_theme.xml
For me it started when I installed 2023.3 side by side with 2023.2.5 and then after restarting of 2023.2 this one starts to throw the error as well. It was quite pain to make it work again because empty color fields were showing up again and again even after manual deletion. One more applying of default IJ theme and then MT theme seems to fix the problem in both versions.
I did nothing in 2023.2, I just installed 2023.3 and it synced the settings and at that moment it had to break something in sync logic because I started to get the error after 2023.2 restart.
Hello, I'm using PHPStorm and have this problem since upgrade to 2023.3. I also use the settings sync. However I cannot find anywhere ? Can it be named differently ? (note : I'm using Windows 10)
I can not find a solution from this page,can anyone tell me how to resolve this Problem?thx
Describe the bug
Exception when IDE is launched
To Reproduce
Expected behavior
No exceptions
Material Theme Version
8.13.2
IDE
PHPStorm
System Info
Logs/Screenshots