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

Freezing while previewing a Markdown code block #1991

Closed
Heliozoa opened this Issue Sep 1, 2016 · 6 comments

Comments

Projects
None yet
4 participants
@Heliozoa

Heliozoa commented Sep 1, 2016

Short Summary

Komodo Edit freezes when trying to view a code block with "Markdown preview".

Steps to Reproduce

Paste the following into a code block in a Markdown file and use Komodo Edit to attempt to preview it:

jono = uusi Tavujono
lue tavu jonoon //O(1)
while(tiedosto ei ole loppu)    //O(n) pakattavan tiedoston kokoon nähden.
    lue tavu //O(1)
    if(sanakirja sisältää jonon+tavun)  //O(n), sanakirjassa on tavuja enintään tiedoston koon verran.
                                        //Hajautuksen ansiosta käytännössä haku on paljon nopeampi.
        lisää tavu jonoon   //O(1)
    else
        koodi = hae sanakirjalta jonon koodi    //O(n) jonon pituuden suhteen. Jono on pisimmilläänkin pienempi kuin tiedosto itse, käytännössä aina huomattavasti pienempi.
                                                //Sanakirja käy läpi yhtäaikaisesti jonoa ja omaa hajautustauluaan ja palauttaa jonon viimeistä tavua vastaavan solmun koodin.
        lisää tavuihin koodi    //O(1)
        lisää sanakirjaan jono+tavu //O(n) jonon pituuden suhteen. Sanakirja hakee samoin kuin yllä jonon viimeistä tavua vastaavan solmun ja lisää sille uutta tavua vastaavan solmun.
        tyhjennä jono //O(1)
        lisää tavu jonoon //(O)1

Expected results

The preview is displayed without issues.

Actual results

Komodo Edit completely locks up and has to be forced to shut down.

Platform Information

Komodo Edit or IDE?
Edit
Komodo Version?
version 10.1.0, build 17404
Operating System (and version)?
Happened both on Windows 10 and the latest release of Manjaro

Additional Information

I tried to replicate it with different text and for the most part I was unable to do so, hence the Finnish pseudocode. If you type the text out instead of copying it, it gradually slows down and eventually stops responding.

@Naatan

This comment has been minimized.

Member

Naatan commented Sep 1, 2016

I'm unable to reproduce this. What file encoding are you using?

@Heliozoa

This comment has been minimized.

Heliozoa commented Sep 1, 2016

UTF-8. Here's a screenshot if it helps. It seemed like something that would happen just on my PC, but it happened both on my desktop (Manjaro and Win10) and laptop (Manjaro). Additionally on Windows it was on a fresh install of Komodo Edit.

@Naatan

This comment has been minimized.

Member

Naatan commented Sep 1, 2016

Can you reproduce it in safe-mode? Help > Troubleshooting > Restart in safe-mode.

@Heliozoa

This comment has been minimized.

Heliozoa commented Sep 1, 2016

Markdown preview seems to be disabled in safe-mode, so I can't try it. I should be able to try it out on at least one other computer tomorrow.

@babobski

This comment has been minimized.

Contributor

babobski commented Sep 1, 2016

Tested it on windows 10 and can reproduce the issue.
The problem is in the ``` code block ( noticed it on the screenshot ).
When i create a markdown file with a code block.

    -code-

If i then copy the code from @Heliozoa, put it inside the code block, save the file.
If i then preview the file komodo crashes.

Tested in komodo edit and Ide, the both crash ( screencast )

@Naatan

This comment has been minimized.

Member

Naatan commented Sep 1, 2016

Good catch @babobski ! reproduced :)

@Naatan Naatan added Type: Bug and removed Pending: Response labels Sep 1, 2016

@Naatan Naatan added this to the 10.1.2 milestone Sep 1, 2016

@Naatan Naatan self-assigned this Sep 1, 2016

@Naatan Naatan closed this in d47398e Sep 1, 2016

@cgchoffman cgchoffman added moved to qa and removed moved to qa labels Jul 17, 2017

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