Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt5.14.2调用此串口库,关闭串口时经常出现闪退问题。 #81

Open
yxj1881707name opened this issue Dec 28, 2023 · 12 comments
Labels

Comments

@yxj1881707name
Copy link

描述bug
关闭串口时出现闪退,使用轮询、信号槽接收串口数据,在关闭串口时都有概率出现崩溃。

重现步骤
使用提供的demo,多次打开、关闭串口,即可复现

@yxj1881707name
Copy link
Author

@yxj1881707name
Copy link
Author

连接的下位机串口是一直在发送数据

@yxj1881707name
Copy link
Author

Snipaste_2023-12-28_19-13-43

@liguyano
Copy link

我也是欸,

@liguyano
Copy link

请问解决了吗

@yxj1881707name
Copy link
Author

请问解决了吗

没用这个库了,使用Windows API 自己写了一个C++类

@yxj1881707name
Copy link
Author

可以参考这个项目,自己写
https://github.com/wjwwood/serial

@itas109 itas109 added the bug label May 11, 2024
@itas109
Copy link
Owner

itas109 commented May 11, 2024

能提供一下具体的编译器版本吗

@itas109
Copy link
Owner

itas109 commented May 11, 2024

我也是欸,

能提供一下具体的编译器版本吗

@yxj1881707name
Copy link
Author

能提供一下具体的编译器版本吗

Visual Studio 2019,目标串口波特率230400,并且一直在发送数据帧

@liguyano
Copy link

我也是欸,

能提供一下具体的编译器版本吗
cmake 3.27
msvc2022 编译器应该是2019 qt5.12.2 32位

@yxj1881707name
Copy link
Author

能提供一下具体的编译器版本吗

Visual Studio 2019,目标串口波特率230400,并且一直在发送数据帧

msvc2017_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants