You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
KSP version 2.3.5 CI error exception that does not break build checks #2763
ci is GitHub actions Error: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "ksp.com.intellij.openapi.application.Application.getService(java.lang.Class)" because the return value of "ksp.com.intellij.openapi.application.ApplicationManager.getApplication()" is null presented in my builds
extra: I could re-produce on local environments where I just execute build command via command line without IntelliJ idea open, I believe it would produce same error non intelliJ enviroments too.
Reacted by Eugen Pechanec, Yuki, Robert Jaros, Rey, Ryan VanderMeulen, Lasse Magnussen, Łukasz Suski, Dario, Christopher-Marcel Esser, JoesPredator and 25 more
I see this as well in my project. Full stacktrace:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "ksp.com.intellij.openapi.application.Application.getService(java.lang.Class)" because the return value of "ksp.com.intellij.openapi.application.ApplicationManager.getApplication()" is null
at ksp.com.intellij.openapi.fileEditor.FileDocumentManager.getInstance(FileDocumentManager.java:35)
at ksp.com.intellij.openapi.fileTypes.BinaryFileTypeDecompilers.lambda$notifyDecompilerSetChange$1(BinaryFileTypeDecompilers.java:29)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
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:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
I also tried with another project where i can see the exception in the CI logs, but when running locally the same exception is not there. Seems to be environment specific issue potentially
I also tried with another project where i can see the exception in the CI logs, but when running locally the same exception is not there. Seems to be environment specific issue potentially
well I could create in locally if I use only terminal (no android studio or IntelliJ idea open) which is Mac osx and CI where it is lunix based, looks like when there is no idea open this shows up
Update: we managed to reproduce (thanks to @jaschdoc) and we are looking at the problem. It seems to have happened after the upgrade of kotlin analysis api version
Reacted by Waffiq Aziz, Jakob Schneider, Fatih Şen, Amaël (r4dixx) Sikel and sezn
Activity
rjaros commentedon Feb 1, 2026
I see this as well in my project. Full stacktrace:
DarioAhdoot commentedon Feb 2, 2026
Getting the exact same error
perronemirko commentedon Feb 4, 2026
I am having the same problem, It might be smtg related to kotlin version or its way on handling threads.
TWiStErRob commentedon Feb 4, 2026
Got the same while running a test in an Android library module in Android Studio.
feat(detail): introduce side sheet to display additional details (#476)
suntrix commentedon Feb 5, 2026
Getting same error
ZacSweers commentedon Feb 8, 2026
I'm able to reproduce it somewhat consistently in https://github.com/zacsweers/catchup, just run
./gradlew :app-scaffold:compileReleaseKotlinhfmehmed commentedon Feb 10, 2026
@ZacSweers I wasnt able to repro with a clean clone of that project. Is it specific branch i need to pull?
hfmehmed commentedon Feb 10, 2026
I also tried with another project where i can see the exception in the CI logs, but when running locally the same exception is not there. Seems to be environment specific issue potentially
droideveloper commentedon Feb 10, 2026
well I could create in locally if I use only terminal (no android studio or IntelliJ idea open) which is Mac osx and CI where it is lunix based, looks like when there is no idea open this shows up
hfmehmed commentedon Feb 10, 2026
Update: we managed to reproduce (thanks to @jaschdoc) and we are looking at the problem. It seems to have happened after the upgrade of kotlin analysis api version
fix(deps): downgrade KSP to 2.3.4 to fix CI warning
Copy compiler's BinaryFileTypeDecompilers
Copy compiler's BinaryFileTypeDecompilers
10 remaining items
build: revert headless flags + KSP 2.3.5 to restore green CI
ci: run gradle build under xvfb so KSP's IntelliJ AWT initializes
Fix APK build: bump KSP 2.3.5 -> 2.3.6
fix: downgrade KSP 2.3.5 -> 2.3.4 (google/ksp#2763 — AWT EventQueue N…
PR-01: نسخة احتياطية كاملة للجداول العشرة + إصلاح سقوط KSP في CI
fix(build): bump KSP 2.3.5 to 2.3.7 to fix CI crash (ApplicationManag…
fix(ci): don't write an empty GEMINI_API_KEY; ignore the .env.example…
Fix KSP 2.3.5 headless AWT exception with upstream 2.3.6 patch (googl…
build(#166): bump KSP googleDevtoolsKsp 2.3.5 -> 2.3.6 (google/ksp#2763…
Merge pull request #606 from Sarthak-2007/agent/k8-ksp-236
build: upgrade KSP to fix the upstream application-service exception
build: bump KSP 2.3.5 -> 2.3.6 - fixes google/ksp#2763 (ApplicationMa…
CI: setup-gradle v4->v6 + upload-artifact v4->v6 (native Node 24); KS…
build: bump KSP 2.3.5 -> 2.3.6 to fix headless AWT NPE in CI (google/…
Downgrade KSP from 2.3.5 to 2.3.4 to fix google/ksp#2763 CI Applicati…