[MaximaPlugin][SS-4584] SM File not opening

[MaximaPlugin][SS-4584] SM File not opening - When attempting to open a file in smath, it doesn't respond if I try to open it - Messages

#1 Posted: 2/20/2019 2:44:55 PM
wvcamden

wvcamden

0 likes in 10 posts.

Group: User

When attempting to open a file in smath, it doesn't respond if I try to open it from smath. If I try to open it from the file directory, nothing is displayed on my screen but task manager says a smath process is running and in order to stop it, i have to end the process through task manager. I am currently using smath version .99 (build: 6988) with maxima

I have attached the file that cannot open. It is located in the same file directory as other smath files which have no trouble opening.p3.sm (75 KiB) downloaded 35 time(s).

I was having trouble with it the other day taking a long time to run the calculations on the page but it never failed to open until now.

Any help would be greatly appreciated, thank you.
#2 Posted: 2/20/2019 3:02:55 PM
Arie

Arie

93 likes in 285 posts.

Group: User

Your document crashed SMath on my machine as well. I'm running 0.99.6988. I tried opening on a portable version 0.98.6484 and that did not work either. My guess is there's something embedded within the .sm that's causing SMath to corrupt. I turned off auto-calculate before trying to open the .sm file, but that didn't seem to help.

I don't know what to do other than someone go through the .sm with a text editor looking for something funky.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
1 users liked this post
wvcamden 2/20/2019 3:05:00 PM
#3 Posted: 2/20/2019 3:07:58 PM
wvcamden

wvcamden

0 likes in 10 posts.

Group: User

The calculations I was trying to run do include definite integrals of summations and that's what was taking awhile to calculate. However, I have created test files doing close to the same thing and they work fine.
#4 Posted: 2/20/2019 3:25:42 PM
Arie

Arie

93 likes in 285 posts.

Group: User

Here's a fixed file. It did not like the function explicit(). I've disabled the two instances. I'm not familiar with this function so hopefully someone else can spread some light on why it took down SMath.

p3_alyles.sm (75 KiB) downloaded 29 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#5 Posted: 2/20/2019 3:47:58 PM
Arie

Arie

93 likes in 285 posts.

Group: User

For the devs:

Attached is a code snippet of the regions that were suspect. I ended up changing the tags to tags and disabling the region.

<region id="43" left="36" top="1071" width="671" height="258" color="#000000" bgColor="#ffffff" fontSize="10">
      <maximaplugin>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">Φ.analytic</e>
          <e type="operand">x</e>
          <e type="operand">a</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="1">-</e>
          <e type="operand">a</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="4">explicit</e>
        </input>
      </maximaplugin>
    </region>
    <region id="44" left="36" top="1359" width="671" height="258" color="#000000" bgColor="#ffffff" fontSize="10">
      <maximaplugin>
        <input>
          <e type="operand">x</e>
          <e type="function" args="1">Φ.series</e>
          <e type="operand">x</e>
          <e type="operand">a</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="operator" args="1">-</e>
          <e type="operand">a</e>
          <e type="operand">2</e>
          <e type="operator" args="2">/</e>
          <e type="function" args="4">explicit</e>
        </input>
      </maximaplugin>
    </region>
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
1 users liked this post
Davide Carpi 2/20/2019 4:03:00 PM
#6 Posted: 2/20/2019 4:06:19 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Yes, the problem is in those regions. A regular maxima region has additional data before the tag, hence the crash on reading; at the moment I'm not sure why that data is missing, though.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#7 Posted: 2/20/2019 4:51:19 PM
Andrey Ivashov

Andrey Ivashov

2269 likes in 3729 posts.

Group: Super Administrator

Maxima plug-in should be fixed to avoid code parts like:

            while ("ImageFile" != reader.Name)
            {
                reader.Read();
            }

reader.Read() returns boolean and if result is false then loop must be stopped.

Unfortunately there is no possibility to control this by SMath Studio itself.
1 users liked this post
Davide Carpi 2/21/2019 12:00:00 PM
  • New Posts New Posts
  • No New Posts No New Posts