简体   繁体   English

Mac App使计算机意外重启

[英]Mac app makes the computer unexpectedly reboot

I've encountered a pretty weird bug in my macOS app. 我在macOS应用中遇到了一个非常奇怪的错误

When I do specific things in my macOS app, my computer just restarts unexpectedly without any warnings or errors. 当我在macOS应用中执行特定操作时,我的计算机意外重启,没有任何警告或错误。 Any other applications work just fine and the same behaviour is not experiencing while using them. 任何其他应用程序都可以正常工作,并且在使用它们时不会出现相同的行为。 Has anyone of you ever faced something similar? 你们中有人遇到过类似的事情吗? Is this a new macOS issue? 这是新的macOS问题吗?

My environment: 我的环境:

  • macbook pro retina mid 1012, High Sierra 10.13.4 Beta MacBook Pro视网膜1012年中中期,High Sierra 10.13.4 Beta
  • Xamarin.Mac application, building in Visual Studio For Mac Xamarin.Mac应用程序,在Visual Studio for Mac中构建
  • Use xib files for UI, Autolayout is unchecked 将xib文件用于UI, 未选中“自动布局”
  • Minimum system version for the app is 10.9 该应用的最低系统版本为10.9
  • One window app, use NSTableView inside NSViewController 一个窗口应用程序,在NSViewController中使用NSTableView

The issue seems to relate to file system operations and probably NSTableView row selection. 该问题似乎与文件系统操作以及NSTableView行选择有关。 Computer reboots when I click a row in table view; 单击表视图中的一行时,计算机将重新启动; or push new view controller; 或推送新的视图控制器; or read some file. 或读取一些文件。 It is not a 100% reproducible thing, what makes the investigation really annoying. 这不是100%可重复的事情,这使得调查确实很烦人。

Also, the app worked fine on older macOS versions. 此外,该应用程序在较旧的macOS版本上也可以正常运行。 I've faced it recently after some system updates. 在一些系统更新后,我最近遇到了它。

Consider checking Console -> System Reports for crash logs in WindowServer or other System components. 考虑在Console->系统报告中检查WindowServer或其他系统组件中的崩溃日志。 I've seen a number of crashes in 10.13. 我在10.13中看到过多次崩溃。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM