Word for Mac在Javascript API调用时崩溃

时间:2018-01-24 16:23:00

标签: office-js

执行以下代码导致Office在OS X 10.11.6上崩溃

 Word.run(function (context) {
     var docProps = context.document.properties;                                
     context.load(docProps);
     return context.sync().then(function () {
         console.log("ok")';
     });
 });

这会在Office中显示以下错误消息

  

Microsoft错误报告日志版本:2.0

     

错误签名:异常:EXC_BAD_ACCESS ExceptionEnumString:1   异常代码:KERN_INVALID_ADDRESS(0x0000000000000000)日期/时间:   2018-01-24 16:13:12 +0000应用程序名称:Microsoft Word应用程序   捆绑ID:com.microsoft.Word应用程序签名:MSWD应用程序   位数:x64应用程序版本:16.9.0.18011602崩溃的模块名称:   Microsoft Word Crashed Module版本:16.9.0.180116崩溃的模块   偏移量:0x0000000001589a80责备模块名称:Microsoft Word Blame   模块版本:16.9.0.180116 UnsymbolicatedChecksum:   06B178CD64DB4192894F984EBF0B6949责备模块偏移量:   0x0000000001589a80 StackHash:60a38d0df4d2bad-dm_1_main应用程序   LCID:1043额外应用信息:Reg = en Loc = 0x0413构建类型:SHIP崩溃   thread Stack指针:0x_00007fff58dbf860受众:生产   AudienceGroup:Production AudienceChannel:CC Crashed thread:0

     

线程0崩溃:

     

1 0x00000001083c6a80 in(Microsoft Word + 0x0000000001589a80)0x0000000000000000   2 0x0000000108396d23 in(Microsoft Word + 0x0000000001559d23)0x0000000000000000   3 0x0000000106f41805 in(Microsoft Word + 0x0000000000104805)0x00007fff58dbf8e0   4 0x0000000106f41240 in(Microsoft Word + 0x0000000000104240)0x00007fff58dbf9f0   5 0x0000000106f1da7b in(Microsoft Word + 0x00000000000e0a7b)0x00007fff58dbfad0   6 0x0000000106f1d231 in(Microsoft Word + 0x00000000000e0231)0x00007fff58dbfb60   7 0x0000000106f1c778 in(Microsoft Word + 0x00000000000df778)0x00007fff58dbfbe0   8 0x0000000106f1bdee in(Microsoft Word + 0x00000000000dedee)0x00007fff58dbfcc0   9 0x0000000106f200f4 in(Microsoft Word + 0x00000000000e30f4)0x00007fff58dbfd10   10 0x0000000106f27d02 in(Microsoft Word + 0x00000000000ead02)0x00007fff58dbff50   11 0x00000001083e7c04 in(Microsoft Word + 0x00000000015aac04)0x00007fff58dbffa0   12 0x00000001083e7085 in(Microsoft Word + 0x00000000015aa085)0x00007fff58dc0060   13 0x00000001083e6a81 in(Microsoft Word + 0x00000000015a9a81)0x00007fff58dc00c0   14 0x00000001083e60ab in(Microsoft Word + 0x00000000015a90ab)0x00007fff58dc0100   15 0x00000001083e5fd4 in(Microsoft Word + 0x00000000015a8fd4)0x00007fff58dc0120   16 0x00000001083e9108 in(Microsoft Word + 0x00000000015ac108)0x00007fff58dc0160   17 0x00000001078eccd5 in(Microsoft Word + 0x0000000000aafcd5)0x00007fff58dc0180   18 0x0000000107ec9a43 in(Microsoft Word + 0x000000000108ca43)0x00007fff58dc01c0   19 0x0000000107eca75e in(Microsoft Word + 0x000000000108d75e)0x00007fff58dc03c0   20 0x00000001084c204d in(Microsoft Word + 0x000000000168504d)0x00007fff58dc0420   21 0x000000010973acb9 in(mbukernel + 0x000000000003acb9)0x00007fff58dc0440   22 0x00007fff97808dec in ___NSFireTimer + 0x0000005F(Foundation + 0x00000000000a9dec)0x00007fff58dc0460

自最近的Office更新以来,此错误开始发生。我们之前没有遇到任何类似的问题。我们在Windows上也没有遇到任何问题。 Word 16.9(180116)

我们想要完成的是从任务窗口插件中的内置文档属性中读取title属性。如果有一种解决方法不会导致Word崩溃,那将非常有用。

1 个答案:

答案 0 :(得分:0)

这似乎与特定版本的Office有关。虽然我还没有收到微软的确认,但是这个崩溃在Office 16.14版本中不会再发生了。