[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 - Сообщения

#1 Опубликовано: 20.02.2019 14:44:55
wvcamden

wvcamden

0 сообщений из 10 понравились пользователям.

Группа: 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 КиБ) скачан 35 раз(а).

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 Опубликовано: 20.02.2019 15:02:55
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: 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 пользователям понравился этот пост
wvcamden 20.02.2019 15:05:00
#3 Опубликовано: 20.02.2019 15:07:58
wvcamden

wvcamden

0 сообщений из 10 понравились пользователям.

Группа: 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 Опубликовано: 20.02.2019 15:25:42
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: 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 КиБ) скачан 29 раз(а).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#5 Опубликовано: 20.02.2019 15:47:58
Arie

Arie

93 сообщений из 285 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Davide Carpi 20.02.2019 16:03:00
#6 Опубликовано: 20.02.2019 16:06:19
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 20.02.2019 16:51:19
Andrey Ivashov

Andrey Ivashov

2269 сообщений из 3729 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Davide Carpi 21.02.2019 12:00:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений