Can not launch Idea, Datagrip, and other JetBrains apps on macOS
Please Help!
2024-08-30 18:04:31,281 [ 327] WARN - #c.i.u.x.Binding - No accessors for com.intellij.platform.experiment.ab.impl.experiment.ABExperimentGroupStorage. This means that state class cannot be serialized properly. Please see https://jb.gg/ij-psoc
2024-08-30 18:04:31,401 [ 447] WARN - c.i.o.u.r.overrides - Conflicting registry key definition for key kotlin.mpp.tests.force.gradle: it was defined by plugin org.jetbrains.kotlin but redefined by plugin org.jetbrains.kotlin. Consider adding overrides="true" for one of the plugins, see the documentation for com.intellij.openapi.util.registry.RegistryKeyBean.overrides for more details.
2024-08-30 18:04:31,579 [ 625] SEVERE - #c.i.o.e.i.FontFamilyServiceImpl - Cannot read field "handle" because the return value of "sun.font.FontManager.findFont2D(String, int, int)" is null
java.lang.NullPointerException: Cannot read field "handle" because the return value of "sun.font.FontManager.findFont2D(String, int, int)" is null
at java.desktop/java.awt.Font.getFont2D(Font.java:572)
at com.intellij.openapi.editor.impl.FontFamilyServiceImpl.<init>(FontFamilyServiceImpl.java:77)
at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:45)
at com.intellij.platform.instanceContainer.instantiation.InstantiateKt$instantiate$2.invoke(instantiate.kt:42)
at com.intellij.platform.instanceContainer.instantiation.InstantiateKt.instantiate(instantiate.kt:313)
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:62)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:163)
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:27)
at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:90)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:123)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:52)
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.serviceContainer.ComponentManagerImpl.preloadService$suspendImpl(ComponentManagerImpl.kt:1114)
at com.intellij.serviceContainer.ComponentManagerImpl.preloadService(ComponentManagerImpl.kt)
at com.intellij.serviceContainer.ComponentManagerImpl$preloadServices$2$1.invokeSuspend(ComponentManagerImpl.kt:1086)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
2024-08-30 18:04:31,582 [ 628] SEVERE - #c.i.o.e.i.FontFamilyServiceImpl - IntelliJ IDEA 2024.2.1 Build #IU-242.21829.142
2024-08-30 18:04:31,582 [ 628] SEVERE - #c.i.o.e.i.FontFamilyServiceImpl - JDK: 21.0.3; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-08-30 18:04:31,582 [ 628] SEVERE - #c.i.o.e.i.FontFamilyServiceImpl - OS: Mac OS X
2024-08-30 18:04:31,583 [ 629] SEVERE - #c.i.o.e.i.FontFamilyServiceImpl - Last Action:
**Start Failed**
Internal error
java.lang.NullPointerException: Cannot read field "handle" because the return value of "sun.font.FontManager.findFont2D(String, int, int)" is null
at java.desktop/java.awt.Font.getFont2D(Font.java:572)
at java.desktop/java.awt.Font.getFamily(Font.java:1494)
at java.desktop/java.awt.Font.getFamily_NoClientCode(Font.java:1468)
at java.desktop/java.awt.Font.getFamily(Font.java:1460)
at com.intellij.platform.ide.bootstrap.UiKt$initUi$preloadFontJob$1.invokeSuspend(ui.kt:60)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.internal.SoftLimitedDispatcher$Worker.run(SoftLimitedDispatcher.kt:125)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:608)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:873)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:763)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:750)
Suppressed: java.lang.NullPointerException: Cannot read field "handle" because the return value of "sun.font.FontManager.findFont2D(String, int, int)" is null
at java.desktop/java.awt.Font.getFont2D(Font.java:572)
at java.desktop/java.awt.Font.getFamily(Font.java:1494)
at java.desktop/java.awt.Font.getFamily_NoClientCode(Font.java:1468)
at java.desktop/java.awt.Font.getFamily(Font.java:1460)
at com.intellij.ide.ui.laf.LafManagerImplKt.installMacosXFonts(LafManagerImpl.kt:1358)
at com.intellij.ide.ui.laf.LafManagerImplKt.access$installMacosXFonts(LafManagerImpl.kt:1)
at com.intellij.ide.ui.laf.LafManagerImpl.doSetLaF(LafManagerImpl.kt:594)
at com.intellij.ide.ui.laf.LafManagerImpl.initInEdt(LafManagerImpl.kt:200)
at com.intellij.ide.ui.laf.LafManagerImpl.access$initInEdt(LafManagerImpl.kt:106)
at com.intellij.ide.ui.laf.LafManagerImpl$applyInitState$2.invokeSuspend(LafManagerImpl.kt:192)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:750)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:320)
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)
-----
JRE: 21.0.3+13-b509.11 aarch64 (JetBrains s.r.o.)
/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home
-----
Also, a UI exception occurred in an attempt to show the above message:
java.lang.NullPointerException: Cannot read field "handle" because the return value of "sun.font.FontManager.findFont2D(String, int, int)" is null
at java.desktop/java.awt.Font.getFont2D(Font.java:572)
at java.desktop/java.awt.Font.getFamily(Font.java:1494)
at java.desktop/java.awt.Font.getFamily_NoClientCode(Font.java:1468)
at java.desktop/java.awt.Font.getFamily(Font.java:1460)
at java.desktop/javax.swing.text.StyleContext.getFont(StyleContext.java:277)
at java.desktop/javax.swing.text.StyleContext.getFont(StyleContext.java:225)
at java.desktop/javax.swing.text.DefaultStyledDocument.getFont(DefaultStyledDocument.java:959)
at java.desktop/javax.swing.text.LabelView.setPropertiesFromAttributes(LabelView.java:145)
at java.desktop/javax.swing.text.LabelView.sync(LabelView.java:56)
at java.desktop/javax.swing.text.LabelView.getFont(LabelView.java:209)
at java.desktop/javax.swing.text.GlyphPainter1.sync(GlyphPainter1.java:236)
at java.desktop/javax.swing.text.GlyphPainter1.getSpan(GlyphPainter1.java:62)
at java.desktop/javax.swing.text.GlyphView.getPreferredSpan(GlyphView.java:587)
at java.desktop/javax.swing.text.FlowView$LogicalView.getPreferredSpan(FlowView.java:762)
at java.desktop/javax.swing.text.FlowView.calculateMinorAxisRequirements(FlowView.java:241)
at java.desktop/javax.swing.text.ParagraphView.calculateMinorAxisRequirements(ParagraphView.java:709)
at java.desktop/javax.swing.text.BoxView.checkRequests(BoxView.java:936)
at java.desktop/javax.swing.text.BoxView.getMinimumSpan(BoxView.java:569)
at java.desktop/javax.swing.text.BoxView.calculateMinorAxisRequirements(BoxView.java:904)
at java.desktop/javax.swing.text.BoxView.checkRequests(BoxView.java:936)
at java.desktop/javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:344)
at java.desktop/javax.swing.text.BoxView.layout(BoxView.java:709)
at java.desktop/javax.swing.text.BoxView.setSize(BoxView.java:398)
at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1823)
at java.desktop/javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:948)
at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1730)
at java.desktop/javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1390)
at java.desktop/javax.swing.text.JTextComponent.getPreferredScrollableViewportSize(JTextComponent.java:1995)
at java.desktop/javax.swing.ViewportLayout.preferredLayoutSize(ViewportLayout.java:100)
at java.desktop/java.awt.Container.preferredSize(Container.java:1826)
at java.desktop/java.awt.Container.getPreferredSize(Container.java:1810)
at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1732)
at java.desktop/javax.swing.ScrollPaneLayout.preferredLayoutSize(ScrollPaneLayout.java:500)
at java.desktop/java.awt.Container.preferredSize(Container.java:1826)
at java.desktop/java.awt.Container.getPreferredSize(Container.java:1810)
at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1732)
at com.intellij.platform.ide.bootstrap.StartupErrorReporter.prepareMessage(StartupErrorReporter.java:196)
at com.intellij.platform.ide.bootstrap.StartupErrorReporter.showError(StartupErrorReporter.java:130)
at com.intellij.platform.ide.bootstrap.StartupErrorReporter.showError(StartupErrorReporter.java:90)
at com.intellij.idea.Main.mainImpl(Main.kt:76)
at com.intellij.idea.Main.main(Main.kt:47)
Please sign in to leave a comment.
qiaomo it looks like the IDE cannot access system fonts it needs to work and thus does not start.
Please review the support article listing the possible troubleshooting steps of the failed IDE start and see if any of those helps.
Please also try one of the following:
- run the IDE with administrative privileges;
- grant the necessary permissions to the account the IDE is run under for MacOS Fonts folders (/System/Library/Fonts and ~/fonts).