unhandled-exception 相关问题

未处理的异常是由执行引发但从未被程序捕获的异常,这会导致异常堆栈。

虚幻引擎5.3.2启动错误 - 未处理的异常:EXCEPTION_ACCESS_VIOLATION读取地址0x0000000000001440

启动虚幻引擎 5.3.2 后,我得到的是: 未处理的异常:EXCEPTION_ACCESS_VIOLATION读取地址0x0000000000001440 UnrealEditor_D3D12RHI UnrealEditor_D3D12RHI

回答 1 投票 0

SymFromAddr 在 AMD 计算机上失败,并显示错误消息“尝试访问无效地址”

结构体StackFrame { DWORD64 地址; std::字符串名称; std::string 模块; std::字符串文件名; int 行号; }; std::vector GetStackTrace(CONTEXT 上下文...

回答 1 投票 0

ASP.NET Core MVC 中下拉筛选器的 InvalidOperationException

我在导航栏上创建了一个全局下拉过滤器。我收到错误: 处理请求时发生未处理的异常。 InvalidOperationException:模型项传递到

回答 1 投票 0

突然崩溃,但只有当我尝试打开我的世界时?

好吧,我有一台翻新的戴尔笔记本电脑,Windows 11,我实际上只用它玩《我的世界》和《无人深空》。直到大约三周前我才遇到任何问题。有一个 Windows 更新,突然

回答 1 投票 0

来自未处理异常的c++堆栈跟踪? [重复]

这个问题之前已经被问过,并且有特定于Windows的答案,但没有令人满意的gcc答案。我可以使用 set_terminate() 来设置将被调用的函数(代替 termina...

回答 3 投票 0

没有堆栈跟踪的异常 - 怎么办?

我们有一项服务将在应用程序域级别记录未处理的异常(通过 Log4net)。 我们记录了: 2014-01-28 16:49:19,636 错误 [49] FeedWrapperService - 未处理 系统。

回答 5 投票 0

如何在 Windows 窗体、Net Framework 中捕获 UIThreadException 和 UnhandledException

有关于陷阱异常的MS文档https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.application.threadexception?view=windowsdesktop-7.0 但这个文档是理论上的...

回答 1 投票 0

C++ OpenCV 颜色检测程序中未处理的异常

我正在尝试在 Visual Studio 中创建一个程序来检测黑白视频剪辑中的颜色。这是我的代码: #包括 #包括 #包括 我正在尝试在 Visual Studio 中创建一个程序来检测黑白视频剪辑中的颜色。这是我的代码: #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc.hpp> using namespace std; using namespace cv; int main(int argc, char** argv) { //Load clip VideoCapture cap("C:/Users/nicho/Videos/ThermalClip1.mp4"); //Note: location of video file on current computer may differ from initial code. Change accordingly //If clip cannot be loaded, exit program if (cap.isOpened() == false) { cout << "Error. Cannot open video file" << endl; cin.get(); return -1; } namedWindow("Control", WINDOW_AUTOSIZE);//Create control window int hLowVal = 0;//initial hue value (lower) int hUpVal = 179;//initial hue value (upper) int hSatLow = 0;//initial saturation (lower) int hSatUp = 255; //initial saturation (upper) int valueLower = 0; int valueUpper = 255; //Create trackbars for control window createTrackbar("Lower Hue", "Adjust", &hLowVal, 179); createTrackbar("Increase Hue", "Adjust", &hUpVal, 179); createTrackbar("Lower Saturation", "Adjust", &hSatLow, 255); createTrackbar("Increase Saturation", "Adjust", &hSatUp, 255); createTrackbar("Lower Value", "Adjust", &valueLower, 255); createTrackbar("Increase Value", "Adjust", &valueUpper, 255); while (1) { //Load actual image Mat actualImage; bool temp = cap.read(actualImage); //Store converted image Mat convertToHSV; cvtColor(actualImage, convertToHSV, COLOR_BGR2HSV); //Matrix for window where thermal spot will be detected Mat detectionScreen; inRange(convertToHSV, Scalar(hLowVal, hSatLow, valueLower), Scalar(hUpVal, hSatUp, valueUpper), detectionScreen); //remove small objects from foreground erode(detectionScreen, detectionScreen, getStructuringElement(MORPH_ELLIPSE, Size(5, 5))); dilate(detectionScreen, detectionScreen, getStructuringElement(MORPH_ELLIPSE, Size(5, 5))); //fill up small holes in foreground dilate(detectionScreen, detectionScreen, getStructuringElement(MORPH_ELLIPSE, Size(5, 5))); erode(detectionScreen, detectionScreen, getStructuringElement(MORPH_ELLIPSE, Size(5, 5))); //Show the thermal spot imshow("Thermal Spot detected", detectionScreen); imshow("Original Image", detectionScreen); if (waitKey(30) == 27)//If escape key is pressed, break loop { break; } } return 0; } 问题出在这行代码: createTrackbar("Lower Hue", "Adjust", &hLowVal, 179); 当我尝试运行它时,它出现了以下错误消息: 错误:0x00007FFD5B4E4C3C 处出现未处理的异常 ThermalSpotDetector.exe:Microsoft C++ 异常:cv::Exception at 内存位置 0x000000BA269DD5C0 有人知道发生了什么事吗? 正如您在 cv::createTrackbar 文档中看到的那样, 第二个参数winname是: 将用作父窗口的窗口的名称 创建了轨迹栏。 当您通过调用 cv::namedWindow 创建窗口时: namedWindow("Control", WINDOW_AUTOSIZE); 您使用了名称 "Control"(调用中的第一个参数),这应该是窗口名称。 因此您应该将第一个 createTrackbar 呼叫更改为: //--------------------------vvvvvvvv---------------- createTrackbar("Lower Hue", "Control", &hLowVal, 179); 所有其他 createTrackbar 呼叫也是如此。

回答 1 投票 0

C++ OpenCV 颜色检测程序中未处理的异常 - 请帮忙?

我正在尝试在 Visual Studio 中创建一个程序来检测黑白视频剪辑中的颜色。这是我的代码: #包括 #包括 #包括 我正在尝试在 Visual Studio 中创建一个程序来检测黑白视频剪辑中的颜色。这是我的代码: #include <iostream> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc.hpp> using namespace std; using namespace cv; int main(int argc, char** argv) { //Load clip VideoCapture cap("C:/Users/nicho/Videos/ThermalClip1.mp4"); //Note: location of video file on current computer may differ from initial code. Change accordingly //If clip cannot be loaded, exit program if (cap.isOpened() == false) { cout << "Error. Cannot open video file" << endl; cin.get(); return -1; } namedWindow("Control", WINDOW_AUTOSIZE);//Create control window int hLowVal = 0;//initial hue value (lower) int hUpVal = 179;//initial hue value (upper) int hSatLow = 0;//initial saturation (lower) int hSatUp = 255; //initial saturation (upper) int valueLower = 0; int valueUpper = 255; //Create trackbars for control window createTrackbar("Lower Hue", "Adjust", &hLowVal, 179); createTrackbar("Increase Hue", "Adjust", &hUpVal, 179); createTrackbar("Lower Saturation", "Adjust", &hSatLow, 255); createTrackbar("Increase Saturation", "Adjust", &hSatUp, 255); createTrackbar("Lower Value", "Adjust", &valueLower, 255); createTrackbar("Increase Value", "Adjust", &valueUpper, 255); while (1) { //Load actual image Mat actualImage; bool temp = cap.read(actualImage); //Store converted image Mat convertToHSV; cvtColor(actualImage, convertToHSV, COLOR_BGR2HSV); //Matrix for window where thermal spot will be detected Mat detectionScreen; inRange(convertToHSV, Scalar(hLowVal, hSatLow, valueLower), Scalar(hUpVal, hSatUp, valueUpper), detectionScreen); //remove small objects from foreground erode(detectionScreen, detectionScreen, getStructuringElement(MORPH_ELLIPSE, Size(5, 5))); dilate(detectionScreen, detectionScreen, getStructuringElement(MORPH_ELLIPSE, Size(5, 5))); //fill up small holes in foreground dilate(detectionScreen, detectionScreen, getStructuringElement(MORPH_ELLIPSE, Size(5, 5))); erode(detectionScreen, detectionScreen, getStructuringElement(MORPH_ELLIPSE, Size(5, 5))); //Show the thermal spot imshow("Thermal Spot detected", detectionScreen); imshow("Original Image", detectionScreen); if (waitKey(30) == 27)//If escape key is pressed, break loop { break; } } return 0; } 问题出在这行代码: createTrackbar("Lower Hue", "Adjust", &hLowVal, 179); 当我尝试运行它时,它出现了以下错误消息: 错误:0x00007FFD5B4E4C3C 处出现未处理的异常 ThermalSpotDetector.exe:Microsoft C++ 异常:cv::Exception at 内存位置 0x000000BA269DD5C0 有人知道发生了什么事吗?由于时间紧迫,您能具体告诉我如何解决吗? 正如您在 cv:createTrackbar 文档中看到的, 第二个参数winname是: 将用作父窗口的窗口的名称 创建了轨迹栏。 当您调用 namedWindow 时,您使用了名称 "Control"(调用中的第一个参数),这应该是窗口名称。 因此您应该将第一个 createTrackbar 呼叫更改为: //--------------------------vvvvvvvv---------------- createTrackbar("Lower Hue", "Control", &hLowVal, 179); 所有其他 createTrackbar 呼叫也是如此。

回答 1 投票 0

有没有办法全局捕获 Blazor 单页面应用程序中所有未处理的错误?

我希望能够在构建 Blazor 单页面应用程序的一个地方捕获所有未处理的异常。 就像在 WPF 应用程序中使用“Current.DispatcherUnhandledException”一样。 ...

回答 10 投票 0

具有共享运行时的 Excel 加载项 - displayDialogAsync 上出现未处理的异常

我正在开发一个使用弹出窗口(displayDialogAsync)的办公室任务窗格加载项。 我希望 displayDialogAsync 无论使用单独的运行时还是共享运行时都能以相同的方式工作,但在

回答 1 投票 0

检测到致命错误:pymod02_importers 的模块对象为 NULL

使用 auto-py-to-exe 编译 python 脚本后,当我尝试打开 exe 文件时,出现此错误。互联网上几乎没有关于此错误的信息,有什么想法吗? 列表...

回答 5 投票 0

尝试读取地址 0xFFFFFFFFFFFFFFFF 处的内存时出现 C++ 未处理的异常 [关闭]

参加初级 C++ 课程的大学生。几天来我一直试图找出这个错误无济于事,而且聊天 GPT 也没有太大帮助哈哈。我在最后 l 中得到一个例外......

回答 0 投票 0

Dart 未处理的异常:FormatException:无效的 radix-10 数字(在字符 1 处)

我正在尝试从互联网上获取一些数据。所以我为一个天气网站做了一个 API 请求。但我收到以下异常 - 未处理的异常:FormatException:无效的 radix-10 num ...

回答 13 投票 0

UWP 中奇怪的未处理异常的 StackTrace 行为

在我的 UWP 应用程序的 App.xaml.cs 文件中,我有以下代码来获取未处理的异常的 StackTrace 属性值并将其打印到调试输出: private void OnAppUnhandledException(对象发送者,

回答 0 投票 0

Flutter:未处理的异常:“Mood”类型不是“MoodType”类型的子类型

我是一名尝试创建心理健康应用程序的初级程序员。在日历屏幕中,您可以按一个日期,然后您将转到日记条目屏幕,您可以在其中选择心情

回答 2 投票 0

使用for循环编写简单代码时出现问题[关闭]

这是错误: Project1.exe 中 0x00007FFD16B7FE7C 处的未处理异常:Microsoft C++ 异常:内存位置 0x0000000B2FAFF760 处的 std::out_of_range。 这是代码: #包括 这是错误: Unhandled exception at 0x00007FFD16B7FE7C in Project1.exe: Microsoft C++ exception: std::out_of_range at memory location 0x0000000B2FAFF760. 这是代码: #include <iostream> using namespace std; int main() { string word; cin >> word; cout << word.size() << endl; for (int i = 0; i <= word.size(); i++) cout << word.at(i) << endl; return 0; } 我仍然不确定代码在哪里中断它,它只是把我带到一个奇怪的窗口,上面有很多行,我不知道它们是什么意思。 我尝试调试、重建、尝试一些替代方法来编写我知道的代码,但没有任何效果,就像代码是如此简单我怎么会内存不足 XD。 尝试: for (int i = 0; i < word.size(); i++) 如果size中有word元素,循环将运行size次,而不是size + 1次。 在这个for循环中 for (int i = 0; i <= word.size(); i++) cout << word.at(i) << endl; 变量i在[0. word.size()]范围内变化。然而,当成员函数at的参数等于或大于成员函数out_of_range的返回值时,它会抛出异常size()。 所以像这样改变for循环 for (int i = 0; i < word.size(); i++) cout << word.at(i) << endl; 注意与成员函数at相反的下标运算符的索引可能等于size()的值。 那是你可以写的 for (int i = 0; i <= word.size(); i++) cout << word[i] << endl; 尽管使用等于 size() 值的索引没有什么意义。 为避免此类错误,最好使用基于范围的 for 循环,例如 for ( char c : word ) cout << c << endl; 或 for ( const auto &c : word ) cout << c << endl;

回答 2 投票 0

未处理的异常:类型“String”不是“index”获取数据的“int”类型的子类型

我想在代码中将数据库中的产品(条目)id作为对象的['id'],但是我得到这个错误 代码 数据库 未来 fetchAndSetProducts() async { 最终网址 = ...

回答 2 投票 0

Flutter onclick of Notification redirect to a new page not working

当点击通知时,它应该根据它获得的有效负载数据打开新屏幕。 我已经使用 if、else if、else 来确定要导航的页面,但它只能与 else 一起使用。 这...

回答 0 投票 0

覆盖 sys.excepthook 时获取格式化回溯

我正在改写这个问题,因为我最初的问题似乎有一些问题而且太模糊了。 我正在尝试为 sys.excepthook 构建一个替换函数,以将错误保存到 ...

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.