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

Rename or Move Image to... cause Typora stuck and crash #5730

Closed
3 tasks done
bearbattle opened this issue May 22, 2023 · 3 comments
Closed
3 tasks done

Rename or Move Image to... cause Typora stuck and crash #5730

bearbattle opened this issue May 22, 2023 · 3 comments

Comments

@bearbattle
Copy link

  • Searched existing issues to avoid creating duplicates.

    No realated reported issues.
    
  • Confirmed that it can be reproduced in built-in themes without customized css.

    Can reproduce with native theme.
    
  • Searched http://support.typora.io/


Describe the bug

Use context menu to move or rename image will cause Typora stuck and crash.

To Reproduce
Steps to reproduce the behavior:

  1. Open a file in Typora
  2. Insert a image into the document
  3. Rename the image by context menu Rename or Move Image to...
  4. Typora slows down but respose
  5. Repeat step 3
  6. Typora stuck and soon crash halt

Expected behavior

Image renamed/moved without other side-effects.

Screenshots / Screencasts

Reproduce

Sample Markdown File

Test.md

The image file is not attached as tested irrealativity with any specific image file.

Desktop:

  • OS: Windows 11 22H2 build 22621.1702

Typora Version

Typora 1.5 - 1.6.6 with built-in Github Theme

@abnerlee
Copy link
Contributor

I'm not able to reproduce this on Windows 11. Does this happen for Typora 1.6.7?

@bearbattle
Copy link
Author

Yes. The newest version still freeze and crash when trying to rename image file multiple times.

What can I do to provide more info about this issue?

@bearbattle
Copy link
Author

OK, I've done with this issue. It is a software configuration cased issue.

For anyone's concern with the same issue, you can try to checkout the Event Viewer to get more detailed infomation about the crash. In my case, the evnet viewer reveals that the application error related to Typora:

Event Viewer detail about the crashing

It shows that this winhook64.dll related to AISHU SyncDisk has somthing to do with the crashing.

After searching for the web, I found the solution by editing the HookInfo.ini in the installing directory of AISHU SyncDisk, adding

[Global]
Mode=1

which put the winhook64.dll to working at the Minimal Mode that keeping away from injecting other aplications.

Alternatively, you can add Typora.exe to the [Exclude] section to prevent the injection.

; By default, the Mode of [Global] section is 0, which make winhook to any processes except the [Exclude] section.
[Exclude]
Path0=C:\Program Files\Typora
Process0=Typora.exe

The problem get solved.

I am closing the issue.

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

No branches or pull requests

2 participants