OpenASR / idiolect

🎙️ Handsfree Audio Development Interface
https://arxiv.org/pdf/2305.03089.pdf
Apache License 2.0
93 stars 10 forks source link

MaryConfigurationException: Cannot start MARY server #31

Closed nalbion closed 6 years ago

nalbion commented 7 years ago

MaryConfig.getMainConfig() returns null which leads to the following stack trace:

marytts.exceptions.MaryConfigurationException: Cannot start MARY server
    at marytts.LocalMaryInterface.<init>(LocalMaryInterface.java:66)
    at com.jetbrains.idear.tts.TTSService.<init>(TTSService.kt:23)
    at com.jetbrains.idear.tts.TTSService.<clinit>(TTSService.kt:16)
    at com.jetbrains.idear.asr.ASRControlLoop.run(ASRControlLoop.kt:40)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
    at marytts.util.MaryRuntimeUtils.ensureMaryStarted(MaryRuntimeUtils.java:70)
    at marytts.LocalMaryInterface.<init>(LocalMaryInterface.java:64)
    ... 4 more
Exception in thread "ASR Thread" kotlin.KotlinNullPointerException
    at com.jetbrains.idear.tts.TTSService.say(TTSService.kt:46)
    at com.jetbrains.idear.asr.ASRControlLoop.run(ASRControlLoop.kt:40)
    at java.lang.Thread.run(Thread.java:748)
breandan commented 6 years ago

This is caused by some bizarre classloader issue with IntelliJ Platform Plugins. This comment has the solution (I haven't the faintest clue why this works):

Thread.currentThread().contextClassLoader = this.javaClass.classLoader