子程序(latex2mathml)返回中止。运行子程序(WebView2_运行JS)失败

异常报告 · 297 次浏览
用户5765113736... 创建于 2022-07-07 14:10

LaTeX 转换器返回错误:处理请求出错:子程序(latex2mathml)返回中止。运行子程序(WebView2_运行JS)失败。运行子程序(处理scriptResult)失败。解析表达式出错。
原始表达式:var jo = {scriptResult} as JObject;
if((bool)jo["isSuccess"]){
    var result = jo["result"];
    if(jo.ContainsKey("isPromise"))
        _context.SetVarValue("是异步", true);
    return result;
}
else{
    var errStack = jo["errStack"];
    var errMsg = jo["errMsg"];
    throw new Exception($"{errMsg}\n{errStack}");
}
内部错误:MathJax.texReset is not a function
TypeError: MathJax.texReset is not a function
    at <anonymous>:6:31
    at <anonymous>:9:49
    at <anonymous>:31:3(赋值)(运行子程序)(运行子程序)。   在 Quicker.Domain.Actions.X.SubPrograms.SubProgramHelper.<>c__DisplayClass18_0.wBwUIxaWuid()
   在 Quicker.Utilities.ThreadHelpers.<>c__DisplayClass0_0.r83vk2jufyD()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Quicker.Domain.Actions.X.SubPrograms.SubProgramHelper.<RunStandaloneSubprogram>d__18.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Quicker.Domain.Actions.ActionExecuteContext.RunSp(String spName, IDictionary`2 inputParams)
   在 Quicker.Domain.AppServer.ExecuteActionSubProgram(String actionIdOrNameOrTempplateId, String spName, IDictionary`2 inputParams, ActionExtraContextData actionExtraContextData, Nullable`1 cts)
   在 Kf8WWobMSs3rnelpPQf.eEHrYPbcxyZOunFiS5t.Usk4OZuvyJC(HttpRequestEventArgs  )
   在 Cesar.Office.Interop.LaTeXHelper.LaTeXToMathml(String latex) 位置 G:\笔记本\04-Code\CSharp\01-Office\Cesar.Office.Interop\Cesar.Office.Interop\Helper\LaTeXHelper.cs:行号 35
   在 Cesar.Office.Interop.Extension.RangeExt.ConvertLatexRangeToOMath(Range range) 位置 G:\笔记本\04-Code\CSharp\01-Office\Cesar.Office.Interop\Cesar.Office.Interop\Extension\RangeExt.cs:行号 159
   在 Cesar.Office.Interop.FunctionWord.<>c__DisplayClass5_0.<转换当前文档中选中的LaTeX公式>b__0(Range r) 位置 G:\笔记本\04-Code\CSharp\01-Office\Cesar.Office.Interop\Cesar.Office.Interop\FunctionWord.cs:行号 80
   在 Cesar.Office.Interop.LaTeXFinder.ConvertTeX2AMEqnSub(Range rng, Action`1 convert, Boolean showNoFoundMsg) 位置 G:\笔记本\04-Code\CSharp\01-Office\Cesar.Office.Interop\Cesar.Office.Interop\Axmath\LaTeXFinder.cs:行号 119
   在 Cesar.Office.Interop.FunctionWord.转换当前文档中选中的LaTeX公式() 位置 G:\笔记本\04-Code\CSharp\01-Office\Cesar.Office.Interop\Cesar.Office.Interop\FunctionWord.cs:行号 75
   在 Cesar.Office.Interop.Program.RunMethod(String method, IList`1 param, String app) 位置 G:\笔记本\04-Code\CSharp\01-Office\Cesar.Office.Interop\Cesar.Office.Interop\Program.cs:行号 273
   在 Cesar.Office.Interop.Program.GetOutputFromCommandLineOption(Options opts) 位置 G:\笔记本\04-Code\CSharp\01-Office\Cesar.Office.Interop\Cesar.Office.Interop\Program.cs:行号 123

--------------------------------------------

请在反馈时将上述信息粘贴给我,谢谢!

用户5765113736... 最后更新于 2022/7/7

用户5765113736... 2022-07-07 14:11 :

已尝试重启过数次,仍然没有解决这个问题。

回复内容
Cesar 2022-07-08 10:47
#1

更新动作试一试

Cesar 2022-07-07 15:23
#2

我下午更新个版本再试试

回复主贴