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

[352f197] Base must be square. [Plugin: com.fwdekker.randomness] #1

Closed
FWDekkerBot opened this issue Apr 17, 2024 · 6 comments
Closed
Assignees
Labels
stale This issue has not been observed for a long time

Comments

@FWDekkerBot
Copy link
Owner

FWDekkerBot commented Apr 17, 2024

This issue report was generated automatically for an anonymous user. If you are this anonymous user and want this issue deleted for whatever reason, leave a comment below or contact me.


User-supplied comments
No comments supplied.

Stacktrace 1

Click to show
com.intellij.diagnostic.PluginException: Base must be square. [Plugin: com.fwdekker.randomness]
	at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:978)
	at com.intellij.openapi.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.kt:355)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.<init>(ActionManagerImpl.kt:175)
	at com.jetbrains.rdserver.ui.actionPopupMenu.BackendActionManager.<init>(BackendActionManager.kt:17)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:49)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:42)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.instantiate(instantiate.kt:308)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.instantiate(instantiate.kt:42)
	at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance$suspendImpl(ServiceInstanceInitializer.kt:31)
	at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance(ServiceInstanceInitializer.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invokeSuspend(LazyInstanceHolder.kt:162)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invokeSuspend(LazyInstanceHolder.kt:160)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44)
	at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
	at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
	at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.initialize(LazyInstanceHolder.kt:145)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.access$initialize(LazyInstanceHolder.kt:13)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.tryInitialize(LazyInstanceHolder.kt:135)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt:95)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance$suspendImpl(LazyInstanceHolder.kt:83)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.InstanceContainerImpl.instance(InstanceContainerImpl.kt:68)
	at com.intellij.serviceContainer.ComponentManagerImpl.getServiceAsync(ComponentManagerImpl.kt:702)
	at com.intellij.platform.ide.bootstrap.ApplicationLoader$preloadNonHeadlessServices$2$5.invokeSuspend(ApplicationLoader.kt:577)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	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.IllegalArgumentException: Base must be square.
	at com.fwdekker.randomness.OverlayedIcon.<init>(Icons.kt:222)
	at com.fwdekker.randomness.Scheme.getIcon(Scheme.kt:33)
	at com.fwdekker.randomness.template.TemplateInsertAction.<init>(TemplateActions.kt:111)
	at com.fwdekker.randomness.template.TemplateActionLoader.getActions(TemplateActionLoader.kt:52)
	at com.fwdekker.randomness.template.TemplateActionLoader.registerAction(TemplateActionLoader.kt:63)
	at com.fwdekker.randomness.template.TemplateActionLoader.registerActions(TemplateActionLoader.kt:21)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.callDynamicRegistration(ActionManagerImpl.kt:203)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.access$callDynamicRegistration(ActionManagerImpl.kt:95)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$4.invoke(ActionManagerImpl.kt:176)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$4.invoke(ActionManagerImpl.kt:175)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl._init_$lambda$1(ActionManagerImpl.kt:175)
	at com.intellij.openapi.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.kt:61)
	... 38 more

Version information

  • Randomness version: 3.3.0
  • IDE version: PC-241.14494.241
  • Operating system: Linux
  • Java version: 17.0.10
@FWDekker
Copy link
Collaborator

FWDekker commented Apr 17, 2024

I am unable to reproduce this bug. I think it depends on the templates and schemes configured.

If you or anyone else encounters this bug, could you export your Randomness settings and share the file? You can do so as follows.

  1. Go to FileManage IDE SettingsExport settings.
  2. At the bottom, click "Select None".
  3. In the list, find "Randomness". (You can click anywhere in the list and then start typing to search.)
  4. At the bottom, select a place to export to.
  5. Click "OK".

You can then attach the created file to a comment here, or send it to me via email.

@FWDekkerBot
Copy link
Owner Author

This issue report was generated automatically for an anonymous user. If you are this anonymous user and want this issue deleted for whatever reason, leave a comment below or contact me.


User-supplied comments
No comments supplied.

Stacktrace 1

Click to show
com.intellij.diagnostic.PluginException: Base must be square. [Plugin: com.fwdekker.randomness]
	at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:978)
	at com.intellij.openapi.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.kt:355)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.<init>(ActionManagerImpl.kt:175)
	at com.jetbrains.rdserver.ui.actionPopupMenu.BackendActionManager.<init>(BackendActionManager.kt:17)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:49)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:42)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.instantiate(instantiate.kt:308)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.instantiate(instantiate.kt:42)
	at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance$suspendImpl(ServiceInstanceInitializer.kt:31)
	at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance(ServiceInstanceInitializer.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invokeSuspend(LazyInstanceHolder.kt:162)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invokeSuspend(LazyInstanceHolder.kt:160)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44)
	at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
	at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
	at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.initialize(LazyInstanceHolder.kt:145)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.access$initialize(LazyInstanceHolder.kt:13)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.tryInitialize(LazyInstanceHolder.kt:135)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt:95)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance$suspendImpl(LazyInstanceHolder.kt:83)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.InstanceContainerImpl.instance(InstanceContainerImpl.kt:68)
	at com.intellij.serviceContainer.ComponentManagerImpl.getServiceAsync(ComponentManagerImpl.kt:702)
	at com.intellij.platform.ide.bootstrap.ApplicationLoader$preloadNonHeadlessServices$2$5.invokeSuspend(ApplicationLoader.kt:577)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	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.IllegalArgumentException: Base must be square.
	at com.fwdekker.randomness.OverlayedIcon.<init>(Icons.kt:222)
	at com.fwdekker.randomness.Scheme.getIcon(Scheme.kt:33)
	at com.fwdekker.randomness.template.TemplateInsertAction.<init>(TemplateActions.kt:111)
	at com.fwdekker.randomness.template.TemplateActionLoader.getActions(TemplateActionLoader.kt:53)
	at com.fwdekker.randomness.template.TemplateActionLoader.registerAction(TemplateActionLoader.kt:63)
	at com.fwdekker.randomness.template.TemplateActionLoader.registerActions(TemplateActionLoader.kt:21)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.callDynamicRegistration(ActionManagerImpl.kt:203)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.access$callDynamicRegistration(ActionManagerImpl.kt:95)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$4.invoke(ActionManagerImpl.kt:176)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$4.invoke(ActionManagerImpl.kt:175)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl._init_$lambda$1(ActionManagerImpl.kt:175)
	at com.intellij.openapi.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.kt:61)
	... 38 more

Version information

  • Randomness version: 3.3.0
  • IDE version: IC-241.14494.240
  • Operating system: Windows
  • Java version: 17.0.10

@FWDekkerBot
Copy link
Owner Author

This issue report was generated automatically for an anonymous user. If you are this anonymous user and want this issue deleted for whatever reason, leave a comment below or contact me.


User-supplied comments
No comments supplied.

Stacktrace 1

Click to show
com.intellij.diagnostic.PluginException: Overlays must be square. [Plugin: com.fwdekker.randomness]
	at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:978)
	at com.intellij.openapi.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.kt:355)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.<init>(ActionManagerImpl.kt:175)
	at com.jetbrains.rdserver.ui.actionPopupMenu.BackendActionManager.<init>(BackendActionManager.kt:17)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:49)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:42)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.instantiate(instantiate.kt:308)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.instantiate(instantiate.kt:42)
	at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance$suspendImpl(ServiceInstanceInitializer.kt:31)
	at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance(ServiceInstanceInitializer.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invokeSuspend(LazyInstanceHolder.kt:162)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invokeSuspend(LazyInstanceHolder.kt:160)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44)
	at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
	at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
	at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.initialize(LazyInstanceHolder.kt:145)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.access$initialize(LazyInstanceHolder.kt:13)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.tryInitialize(LazyInstanceHolder.kt:135)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt:95)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance$suspendImpl(LazyInstanceHolder.kt:83)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.InstanceContainerImpl.instance(InstanceContainerImpl.kt:68)
	at com.intellij.serviceContainer.ComponentManagerImpl.getServiceAsync(ComponentManagerImpl.kt:702)
	at com.intellij.platform.ide.bootstrap.ApplicationLoader$preloadNonHeadlessServices$2$5.invokeSuspend(ApplicationLoader.kt:577)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	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.IllegalArgumentException: Overlays must be square.
	at com.fwdekker.randomness.OverlayedIcon.<init>(Icons.kt:223)
	at com.fwdekker.randomness.OverlayedIcon.copy(Icons.kt)
	at com.fwdekker.randomness.OverlayedIcon.copy$default(Icons.kt)
	at com.fwdekker.randomness.OverlayedIcon.plusOverlay(Icons.kt:231)
	at com.fwdekker.randomness.template.TemplateInsertAction.<init>(TemplateActions.kt:111)
	at com.fwdekker.randomness.template.TemplateActionLoader.getActions(TemplateActionLoader.kt:54)
	at com.fwdekker.randomness.template.TemplateActionLoader.registerAction(TemplateActionLoader.kt:63)
	at com.fwdekker.randomness.template.TemplateActionLoader.registerActions(TemplateActionLoader.kt:21)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.callDynamicRegistration(ActionManagerImpl.kt:203)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.access$callDynamicRegistration(ActionManagerImpl.kt:95)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$4.invoke(ActionManagerImpl.kt:176)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$4.invoke(ActionManagerImpl.kt:175)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl._init_$lambda$1(ActionManagerImpl.kt:175)
	at com.intellij.openapi.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.kt:61)
	... 38 more

Version information

  • Randomness version: 3.3.0
  • IDE version: PY-241.14494.241
  • Operating system: Mac OS X
  • Java version: 17.0.10

@FWDekkerBot
Copy link
Owner Author

This issue report was generated automatically for an anonymous user. If you are this anonymous user and want this issue deleted for whatever reason, leave a comment below or contact me.


User-supplied comments
No comments supplied.

Stacktrace 1

Click to show
com.intellij.diagnostic.PluginException: (Base must be square, but was 20x20., TypeIcon(base=ImageDataByPathLoader(classLoader=PluginClassLoader(plugin=PluginDescriptor(name=Randomness, id=com.fwdekker.randomness, descriptorPath=plugin.xml, path=~/Library/Application Support/JetBrains/IntelliJIdea2024.1/plugins/intellij-randomness, version=3.3.1, package=null, isBundled=false), packagePrefix=null, state=active), path=icons/template.svg, original=null), text=123, colors=[java.awt.Color[r=64,g=182,b=224]]), [])
	at com.intellij.serviceContainer.ComponentManagerImpl.createError(ComponentManagerImpl.kt:978)
	at com.intellij.openapi.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.kt:355)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.<init>(ActionManagerImpl.kt:175)
	at com.jetbrains.rdserver.ui.actionPopupMenu.BackendActionManager.<init>(BackendActionManager.kt:17)
	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:49)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:42)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.instantiate(instantiate.kt:308)
	at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.instantiate(instantiate.kt:42)
	at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance$suspendImpl(ServiceInstanceInitializer.kt:31)
	at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance(ServiceInstanceInitializer.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invokeSuspend(LazyInstanceHolder.kt:162)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
	at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invokeSuspend(LazyInstanceHolder.kt:160)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
	at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44)
	at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
	at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
	at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.initialize(LazyInstanceHolder.kt:145)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.access$initialize(LazyInstanceHolder.kt:13)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.tryInitialize(LazyInstanceHolder.kt:135)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt:95)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance$suspendImpl(LazyInstanceHolder.kt:83)
	at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt)
	at com.intellij.platform.instanceContainer.internal.InstanceContainerImpl.instance(InstanceContainerImpl.kt:68)
	at com.intellij.serviceContainer.ComponentManagerImpl.getServiceAsync(ComponentManagerImpl.kt:702)
	at com.intellij.platform.ide.bootstrap.ApplicationLoader$preloadNonHeadlessServices$2$5.invokeSuspend(ApplicationLoader.kt:577)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	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.IllegalArgumentException: (Base must be square, but was 20x20., TypeIcon(base=ImageDataByPathLoader(classLoader=PluginClassLoader(plugin=PluginDescriptor(name=Randomness, id=com.fwdekker.randomness, descriptorPath=plugin.xml, path=~/Library/Application Support/JetBrains/IntelliJIdea2024.1/plugins/intellij-randomness, version=3.3.1, package=null, isBundled=false), packagePrefix=null, state=active), path=icons/template.svg, original=null), text=123, colors=[java.awt.Color[r=64,g=182,b=224]]), [])
	at com.fwdekker.randomness.OverlayedIcon.<init>(Icons.kt:222)
	at com.fwdekker.randomness.Scheme.getIcon(Scheme.kt:33)
	at com.fwdekker.randomness.template.TemplateInsertAction.<init>(TemplateActions.kt:111)
	at com.fwdekker.randomness.template.TemplateActionLoader.getActions(TemplateActionLoader.kt:52)
	at com.fwdekker.randomness.template.TemplateActionLoader.registerAction(TemplateActionLoader.kt:63)
	at com.fwdekker.randomness.template.TemplateActionLoader.registerActions(TemplateActionLoader.kt:21)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.callDynamicRegistration(ActionManagerImpl.kt:203)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.access$callDynamicRegistration(ActionManagerImpl.kt:95)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$4.invoke(ActionManagerImpl.kt:176)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl$4.invoke(ActionManagerImpl.kt:175)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl._init_$lambda$1(ActionManagerImpl.kt:175)
	at com.intellij.openapi.extensions.ExtensionPointName.forEachExtensionSafe(ExtensionPointName.kt:61)
	... 38 more

Version information

  • Randomness version: 3.3.1
  • IDE version: IU-241.14494.240
  • Operating system: Mac OS X
  • Java version: 17.0.10

This was referenced May 16, 2024
@FWDekker
Copy link
Collaborator

This bug is very strange. I have shown again and again that the icon is square, and added several assertions in my code. For some reason, math breaks down when JetBrains works with icons.

@FWDekker
Copy link
Collaborator

This issue (and related duplicates) have not been observed for several months now. Additionally, I suspect that this issue is closely related to #13, which I have just marked as fixed (due to FWDekker/intellij-randomness#545). Therefore, I will similarly close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This issue has not been observed for a long time
Projects
None yet
Development

No branches or pull requests

2 participants