[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu
Subject:    Re: Cantor 17.12 crashes working with R and Sage backends and is very slow with some other ones on A
From:       Alexander Semke <alexander.semke () web ! de>
Date:       2018-01-13 10:32:23
Message-ID: e6fdfdcc-ae0b-0e57-de67-f9b5fe203c47 () web ! de
[Download RAW message or body]

Hello Fernando,

thank you for your warm words about KDE and Cantor :-)

The connection to and the initialization of a backend process takes some 
time. The times are different for different backends.
Your observations about the long evaluation times for the first 
expression and almost instant evaluation of the subsequent expressions
is because of the recent improvement that was done in 17.12. Previously, 
the initialization was done during the creation of a new session.
So, when opening a project file the user had to wait until the 
initialization is done even in cases where he/she doesn't plan to modify 
the worksheet at all.
This was changed. The creation of a new session or opening of saved 
project files is much faster now and the initialization of the backend 
process is
postponed to the point when the user really asks Cantor to evaluate 
something.

The recommended versions for R and Sage are missing, yes. But those are 
minor issues compared to the crashes you have. Let's have a look at them 
first.
Which versions of Maxima and Sage are you using? Any chance to install 
the debuginfo package for Cantor and to try again? Without the debug symbols
the crash dumps are not really useful...

Connection to R is broken, the fix for this is "work in progress" at the 
moment.

Regards,
Alexander


On 12.01.2018 19:20, Fernando de Morais wrote:
> Hello Alexander,
>
> Thank you for a fast reply. I'll do my best to describe my problems:
>
> 1 - The first strange behavior that I noticed is Cantor not showing 
> the recommended version for R and Sage (Pic 1 and 2) :
>
>
>
> ​
>
>     1.1 - It opposes for other backends (Pic 3 and 4):
>
>
> ​
> 2 - When I choose Sage as my backend and try to calculate any sheet I 
> face a crash (Pic 5):
>
>
>
>     2.1 - I generated the "backtrace" file using drkonqi tool (attach_1).
>
>
> 3 - The same behavior mentioned before occurs when I run any 
> calculation with Maxima backend (Pic 6):
>
>
>
>     3.1 - Again, I generated the "backtrace"​ file using drkonqi tool
>     (attach_2).
>
>
> 4 - About the slowness, I tested all the backends and marked the time 
> (Ktimer) needed for Cantor show me the output. I use a simple "2+2" 
> operation:
>
>   * Julia: takes exactly 60 seconds to show the result (every simple
>     calculation that I've tried);
>   * KAlgebra: instantly shows the result;
>   * Lua (LuaJIT): instantly shows the result;
>   * Maxima: crashes like I said in section 3 of this e-mail;
>   * Octave: circa 15 seconds to show the result (only in the first
>     calculation of the section. Other simple calculations are
>     instantly load);
>   * Python 2: circa 10~11 seconds to show the result (only in the
>     first calculation of the section. Other simple calculations are
>     instantly load);
>   * Python 3: circa 5 seconds to show the result (only in the first
>     calculation of the section. Other simple calculations are
>     instantly load);
>   * Qalculate!: instantly shows the result;
>   * R: never shows the result. I waited about 15 minutes and nothing.
>     Cantor doesn't crash, but I have to close the software to use it
>     again.
>   * Sage: crashes like I said in section 2 of this e-mail;
>   * Scilab: I can't do any test with this backend because it is still
>     unstable on Arch Linux, so I did not install it.
>
>     4.1 - All backends used is properly installed on my system
>     (attach_3), with all dependencies satisfied; all backends are
>     properly configured in Cantor; and the follow pic shows my system
>     details (Pic 7):
>
>
>
>     ​
>
> Well, I think this is a more accurate report that I can do by now.
>
> I love KDE (Qt stuff in general) and its applications, and I use them 
> because I feel more productive with them. Cantor is a tool that I 
> love, and one of the reasons for me migrate to KDE back in 2016. In 
> that time I was using Debian GNU/Linux, but since I met Arch, I can't 
> leave him.
>
> PS.: As I said before I'm a Arch Linux user, and I don't know if its a 
> system specific problem, but it may be difficult for this to be the 
> reason, because its a rolling release distro, so I use the latest 
> stable packages.
>
> I like to thank all the support. Sorry for a long e-mail.
>
> Best regards.
>
> -- 
> Atenciosamente,
> *José Fernando de Morais Firmino.
> *
> Graduando no Curso Superior de Tecnologia em Automação Industrial.
> *IFPB,* Campus Cajazeiras.
> Currículo Lattes: clique aqui <http://lattes.cnpq.br/0001199049062038>.
> Diretório de Grupos de Pesquisa: clique aqui 
> <http://dgp.cnpq.br/dgp/espelhorh/0001199049062038>.
> E-mail acadêmico: fernando.morais@academico.ifpb.edu.br 
> <mailto:fernando.morais@academico.ifpb.edu.br>


[Attachment #3 (multipart/related)]

[Attachment #5 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello Fernando,<br>
    <br>
    thank you for your warm words about KDE and Cantor :-)<br>
    <br>
    The connection to and the initialization of a backend process takes
    some time. The times are different for different backends.<br>
    Your observations about the long evaluation times for the first
    expression and almost instant evaluation of the subsequent
    expressions<br>
    is because of the recent improvement that was done in 17.12.
    Previously, the initialization was done during the creation of a new
    session.<br>
    So, when opening a project file the user had to wait until the
    initialization is done even in cases where he/she doesn't plan to
    modify the worksheet at all.<br>
    This was changed. The creation of a new session or opening of saved
    project files is much faster now and the initialization of the
    backend process is <br>
    postponed to the point when the user really asks Cantor to evaluate
    something.<br>
    <br>
    The recommended versions for R and Sage are missing, yes. But those
    are minor issues compared to the crashes you have. Let's have a look
    at them first.<br>
    Which versions of Maxima and Sage are you using? Any chance to
    install the debuginfo package for Cantor and to try again? Without
    the debug symbols<br>
    the crash dumps are not really useful...<br>
    <br>
    Connection to R is broken, the fix for this is "work in progress" at
    the moment.<br>
    <br>
    Regards,<br>
    Alexander<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 12.01.2018 19:20, Fernando de Morais
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFReGtnTuGj9nUsaq1D89TOTsZsTQYiJhfwve=jbd+AXkDSoAA@mail.gmail.com">
      <div dir="ltr">Hello Alexander,
        <div><br>
        </div>
        <div>Thank you for a fast reply. I'll do my best to describe my
          problems:</div>
        <div><br>
        </div>
        <div>1 - The first strange behavior that I noticed is Cantor not
          showing the recommended version for R and Sage (Pic 1 and 2) :</div>
        <div><br>
        </div>
        <div><img src="cid:part1.05A66041.354101B5@web.de" class=""
            width="472" height="241"><br>
          <img src="cid:part2.3C31ED8B.E7B3A431@web.de" class=""
            width="472" height="241"><br>
          ​<br>
        </div>
        <blockquote style="margin:0px 0px 0px
          40px;border:none;padding:0px">
          <div>1.1 - It opposes for other backends (Pic 3 and 4):</div>
        </blockquote>
        <div><br>
        </div>
        <div>
          <blockquote style="margin:0px 0px 0px
            40px;border:none;padding:0px">
            <div><img src="cid:part3.ACA6E796.D7259D7D@web.de" class=""
                width="472" height="241"></div>
          </blockquote>
          <blockquote style="margin:0px 0px 0px
            40px;border:none;padding:0px">
            <div><img src="cid:part4.FF223921.D580AEA3@web.de" class=""
                width="472" height="241"></div>
          </blockquote>
          ​<br>
        </div>
        <div>2 - When I choose Sage as my backend and try to calculate
          any sheet I face a crash (Pic 5):</div>
        <div><br>
        </div>
        <div><img src="cid:part5.B4836B6B.94AC59DD@web.de" class=""
            width="472" height="236"><br>
          <br>
        </div>
        <blockquote style="margin:0px 0px 0px
          40px;border:none;padding:0px">
          <div>2.1 - I generated the "backtrace" file using drkonqi tool
            (attach_1).</div>
        </blockquote>
        <div><br>
        </div>
        <div>3 - The same behavior mentioned before occurs when I run
          any calculation with Maxima backend (Pic 6):</div>
        <div><br>
        </div>
        <div><img src="cid:part6.340530FC.DD22692A@web.de" class=""
            width="472" height="236"><br>
          <br>
        </div>
        <blockquote style="margin:0px 0px 0px
          40px;border:none;padding:0px">
          <div>3.1 - Again, I generated the "backtrace"​ file using
            drkonqi tool (attach_2).</div>
        </blockquote>
        <div><br>
        </div>
        <div>4 - About the slowness, I tested all the backends and
          marked the time (Ktimer) needed for Cantor show me the output.
          I use a simple "2+2" operation:</div>
        <div><br>
        </div>
        <div>
          <ul>
            <li>Julia: takes exactly 60 seconds to show the result
              (every simple calculation that I've tried);</li>
            <li>KAlgebra: instantly shows the result;</li>
            <li>Lua (LuaJIT): instantly shows the result;</li>
            <li>Maxima: crashes like I said in section 3 of this e-mail;</li>
            <li>Octave: circa 15 seconds to show the result (only in the
              first calculation of the section. Other simple
              calculations are instantly load);</li>
            <li>Python 2: circa 10~11 seconds to show the result (only
              in the first calculation of the section. Other simple
              calculations are instantly load);</li>
            <li>Python 3: circa 5 seconds to show the result (only in
              the first calculation of the section. Other simple
              calculations are instantly load);</li>
            <li>Qalculate!: instantly shows the result;</li>
            <li>R: never shows the result. I waited about 15 minutes and
              nothing. Cantor doesn't crash, but I have to close the
              software to use it again.</li>
            <li>Sage: crashes like I said in section 2 of this e-mail;</li>
            <li>Scilab: I can't do any test with this backend because it
              is still unstable on Arch Linux, so I did not install it.</li>
          </ul>
        </div>
        <blockquote style="margin:0px 0px 0px
          40px;border:none;padding:0px">
          <div>4.1 - All backends used is properly installed on my
            system (attach_3), with all dependencies satisfied; all
            backends are properly configured in Cantor; and the follow
            pic shows my system details (Pic 7):</div>
        </blockquote>
        <div><br>
        </div>
        <div>
          <blockquote style="margin:0px 0px 0px
            40px;border:none;padding:0px">
            <div><img src="cid:part7.14112114.840557A1@web.de" class=""
                width="472" height="243"><br>
              ​<br>
            </div>
          </blockquote>
        </div>
        <div>Well, I think this is a more accurate report that I can do
          by now.</div>
        <div><br>
        </div>
        <div>I love KDE (Qt stuff in general) and its applications, and
          I use them because I feel more productive with them. Cantor is
          a tool that I love, and one of the reasons for me migrate to
          KDE back in 2016. In that time I was using Debian GNU/Linux,
          but since I met Arch, I can't leave him.</div>
        <div><br>
        </div>
        <div>PS.: As I said before I'm a Arch Linux user, and I don't
          know if its a system specific problem, but it may be difficult
          for this to be the reason, because its a rolling release
          distro, so I use the latest stable packages.</div>
        <div><br>
        </div>
        <div>I like to thank all the support. Sorry for a long e-mail.</div>
        <div><br>
        </div>
        <div>Best regards.</div>
        <div class="gmail_extra">
          <div class="gmail_quote"><br>
          </div>
          <div class="gmail_quote">--  <br>
          </div>
          <div class="gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>Atenciosamente,<br>
                        </div>
                        <b>José Fernando de Morais Firmino.<br>
                        </b></div>
                      Graduando no Curso Superior de Tecnologia em
                      Automação Industrial.<br>
                    </div>
                    <span style="color:rgb(56,118,29)"><b>IFPB,</b></span>
                    Campus Cajazeiras.<br>
                  </div>
                  Currículo Lattes: <a
                    href="http://lattes.cnpq.br/0001199049062038"
                    target="_blank" moz-do-not-send="true">clique aqui</a>.<br>
                </div>
                Diretório de Grupos de Pesquisa: <a
                  href="http://dgp.cnpq.br/dgp/espelhorh/0001199049062038"
                  target="_blank" moz-do-not-send="true">clique aqui</a>.<br>
              </div>
              E-mail acadêmico: <a
                href="mailto:fernando.morais@academico.ifpb.edu.br"
                target="_blank" moz-do-not-send="true">fernando.morais@academico.ifpb.edu.br</a><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>

["Screenshot_20180112_134451.png" (image/png)]
["Screenshot_20180112_134507.png" (image/png)]
["Screenshot_20180112_140714.png" (image/png)]
["Screenshot_20180112_140731.png" (image/png)]
["Screenshot_20180112_134543.png" (image/png)]
["Screenshot_20180112_135232.png" (image/png)]
["Screenshot_20180112_142425.png" (image/png)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic