- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
由于我的应用程序崩溃,我从 Windows 应用商店应用程序提交过程(由审阅者发送)中获得了一个小型转储。我在为我的应用程序加载符号时遇到问题,因为错误发生在 App.ni.exe
中,这是一个我不知道从哪里来的文件。
我的应用程序只有一个 App.exe
(和一些 DLL),但转储一直引用 .ni.dll
和 .ni.exe
。在我的 .appx
或 .appxsym
文件中找不到这些文件。
我的应用是为每个特定平台(x86、x64 和 ARM)构建的。堆栈转储中崩溃的是 x64 版本。
我目前对 windbg 的尝试:
符号路径:
Srv*C:\Users\Vegard\Appdata\local\temp\SymbolCache*http://msdl.microsoft.com/download/symbols`
Windbg 尝试:
0:006> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
Unable to load image Newtonsoft.Json.ni.dll, Win32 error 0n2
*** WARNING: Unable to verify checksum for Newtonsoft.Json.ni.dll
*** ERROR: Module load completed but symbols could not be loaded for Newtonsoft.Json.ni.dll
Unable to load image App.ni.exe, Win32 error 0n2
*** WARNING: Unable to verify checksum for App.ni.exe
*** ERROR: Module load completed but symbols could not be loaded for App.ni.exe
Unable to load image mscorlib.ni.dll, Win32 error 0n2
*** WARNING: Unable to verify checksum for mscorlib.ni.dll
更新:尝试 ngen App.exe(以管理员身份运行)时出现以下错误:
> ngen.exe install App.exe
[snip]
This operation is only valid in the context of an app container.
(Exception from HRESULT: 0x8007109A)
在这种情况下什么是应用程序容器?我应该从哪里运行它?
更新:经过长时间的故障排除,并通过其他方式找出根本原因,我得出结论,我得到的小型转储文件缺少此信息。无论如何哄骗都可以让调试器加载文件的符号。
最佳答案
看看工具说明Ngen.exe (Native Image Generator) :
The Native Image Generator (Ngen.exe) is a tool that improves the performance of managed applications. Ngen.exe creates native images, which are files containing compiled processor-specific machine code, and installs them into the native image cache on the local computer. The runtime can use native images from the cache instead of using the just-in-time (JIT) compiler to compile the original assembly.
请记住这个特定于处理器的机器代码
。
如果您需要使用 NI 图像调试小型转储,您需要获取这些图像的符号 (PDB)。托管 DLL 的 PDB 将不起作用,您需要使用 NGEN 工具为 NGEN 的图像生成 native PDB,查看文章 Creating NGEN PDBs for Profiling Reports .这篇文章是关于如何为 Profiler Report 获取 NGEN pdbs,但对于调试它是一样的。
正如我所说,请记住 NGEN 是一个特定于处理器的机器代码
,因此要为它们生成 PDB:
Since NGEN’d images are native, it’s important you use the copy of ngen.exe that matches the architecture of the application you are profiling (x86/x64/ARM). For example if the application is running 64 bit on Windows 8 RTM then you would need to reference the copy of ngen.exe in “C:\Windows\Microsoft.NET\Framework64\v4.0.30319”
更新:
来自link以上:
if you remote profiled a Windows Store App, you have to do this on the machine you were running the app on while you were profiling. It will not work if you do it on the machine you are viewing the report on
所以看起来您需要在获得小型转储的同一台机器上生成 ngen 模块/pdb。
Windows 有一个 Native Image Service ,它会在您将其安装到计算机上一段时间后为 Windows 应用商店应用程序生成 ni 图像。你可以尝试使用procmon.exe了解 Windows 如何为来自 Windows 应用商店的应用程序生成 ngen 模块。 (只需使用带有 ngen.exe 的进程名称过滤器)。
关于c# - 小型转储中的 .ni.dll 和 .ni.exe 文件是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15894662/
我正在尝试使用 openCV 执行相机校准。在来自 openCV 示例的相同示例数据上,这很好用,但我的源代码生成错误: Assertion failed 0 && ni==ni1>... coll
我有以下问题:一切正常,但当我到达 calibrateCamera 部分时,出现以下错误: OpenCV Error: Assertion failed (ni > 0 && ni == ni1) i
由于我的应用程序崩溃,我从 Windows 应用商店应用程序提交过程(由审阅者发送)中获得了一个小型转储。我在为我的应用程序加载符号时遇到问题,因为错误发生在 App.ni.exe 中,这是一个我不知
我最近在Reaktor重新启动修补程序,发现了一些奇怪的东西。在我的一个主要结构中,有一个输入引脚会在我编辑结构时不时将其图标切换为垂直线。它在某种程度上取决于音频处理顺序。 不幸的是,我无法发布结构
$.validator.addMethod( "ninumber", function(value, element) { return this.optional(e
很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visit the help center . 关闭 1
我写的一个应用程序崩溃了,在事件查看器中我发现了以下内容: Faulting module name: PresentationFramework.ni.dll, version: 4.0.30319
在 C:\Windows\assembly\NativeImages_v4.0.30319_64 中找到的 *.ni.dll.aux 文件的格式(数据布局)是什么?据我所知,这些是由ngen.exe生
嘿,我遇到了一个有趣的问题。似乎 Json (org.json.JSONArray) 找不到元素 "NI" 即使它 >>> 就在那里
我正在尝试通过 C 程序读取输入到 NI USB-6211 的电压。为此,我尝试使用安装程序附带的一些示例程序,但无济于事。我已经查看了文档,但说实话,它根本没有多大帮助。 这是我改编的代码。 (它有
这个问题在这里已经有了答案: AES-NI intrinsics enabled by default? (2 个答案) 关闭 4 年前。 我刚刚听说了指令集扩展 AES-NI。如果可以提高性能,J
有没有办法在 Python 中使用 AES-NI?我确实想通过使用我对 AES-NI 的硬件支持来使 HMAC 更快。谢谢。 最佳答案 HMAC 使用的是安全加密散列,而不是对称密码。您可以使 AES
我编写的一个应用程序崩溃了,在事件查看器中我发现了以下内容: Faulting module name: PresentationFramework.ni.dll, version: 4.0.3031
Oracle 在 AES-NI 方面对 Java 8 有这样的看法: Hardware intrinsics were added to use Advanced Encryption Standar
我在 Labwindows\CVI 中使用 National Instruments Vision 模块 出于某种原因,当我使用 func imaqDetectLines() 时,我得到FATAL R
我有一个问题,我希望我在这里是正确的。我想在 C# 程序中使用 AES-NI 加速。我没有找到任何好的来源,想问问这是否可能,以及是否有任何好的信息来源。另外我想问一下,AES-NI 支持哪些 key
我正在测试 vanilla viWrite() 函数,发现当我传入无效的命令字符串时,它不会返回错误代码。我觉得这有点奇怪……当然实现应该检测到这个事件。 这是我用来演示这个的一个小测试用例.....
我想将 Python IDLE-esque 命令提示界面集成到现有的 NI-CVI (LabWindows) 应用程序中。我试图关注 Python.org 的讨论,但似乎迷失在细节中。有像我这样的傻瓜
有没有办法在 Cython 代码中使用 AES-NI 指令? 我能找到的最接近的是某人如何访问 SIMD 指令: https://groups.google.com/forum/#!msg/cytho
我正在使用 VisualStudio 2010 和 OpenCV 3.0。我想校准相机,我遇到的问题与 this 中描述的基本相同去年发的帖子,一直没回复。我正在调用 calibrateCamera,
我是一名优秀的程序员,十分优秀!