royqh1979 / RedPanda-CPP

A light-weight C/C++ IDE based on Qt
GNU General Public License v3.0
980 stars 107 forks source link

界面冻结 文件销毁 #149

Closed Wilhelm-Lee closed 12 months ago

Wilhelm-Lee commented 12 months ago

在一次正常编写中,(可能)进行了本地变量/对象索引(AKA Ctrl+Space),导致界面冻结且对用户输入中断无响应。

利用系统命令 pkill 终止后重启,发现当时冻结时正在编辑的文件内容为空,存留一个 EOF

欲 undo 而无果,实然触目。

OS 

OS: Arch Linux
Kernel: x86_64 Linux 6.1.58-1-lts
Uptime: 2d 10h 49m
Packages: 1884
Shell: bash 5.1.16
Resolution: 1024x768
WM: i3
GTK Theme: Adwaita-dark [GTK2/3]
Icon Theme: Obsidian-Gray
Font: Typori 12
Disk: 796G / 1.3T (62%)
CPU: 12th Gen Intel Core i5-12600KF @ 16x 4.9GHz [46.0°C]
GPU: Advanced Micro Devices, Inc. [AMD/ATI] Navi 24 [Radeon RX 6400/6500 XT/6500M] (rev c1)
RAM: 20255MiB / 31910MiB

Env 

wine-8.18

Mono JIT compiler version 6.12.0 (makepkg/d9a6e8710b3 Thu Aug 31 10:53:20 UTC 2023)

Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com

TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: supported, not enabled.
Suspend: hybrid
GC: sgen (concurrent by default)

Installer 

小熊猫C .2.25.1.win64.MinGW-w64 X86_64 GCC 11.4.Setup.exe

Screenshot  

After the disaster, here's the screenshot:

LINK

For those who wants translation:  

Screen Frozen File Distinguished 

At a time editing normally, I (probably) started an indexing for local variables/objects (AKA Ctrl+Space), which led to a frozen screen with no responses towards user input interruptions.

After killing it with system command pkill for a restart, to find the frozen file is now just empty, leaving an EOF.

Trying to undo but gain no achievements, nothing makes me more stunned.

royqh1979 commented 12 months ago
  1. 最好直接使用linux版
  2. Ctrl+空格 不是 小熊猫C++默认的快捷键。
  3. 小熊猫C++的代码分析仅在会在存盘、手动输入回车时触发。
  4. linux下建议使用fcitx5输入法
Wilhelm-Lee commented 12 months ago

确实转向使用 Linux 版本,目前没有异常。  

不排除 WINE 的干扰因素。  

所述 Ctrl+Space 是指自动补充 (Auto completion),可能初始描述略有欠缺。  

输入法着实为 Fcitx5  Rime。  

感谢