Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Camden  
#1 Posted : 20 February 2019 20:44:55(UTC)
Camden

Rank: Newbie

Groups: Registered
Joined: 20/02/2019(UTC)
Posts: 8
United States
Location: New York

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 (76kb) downloaded 16 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.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline alyles  
#2 Posted : 20 February 2019 21:02:55(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)
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
thanks 1 user thanked alyles for this useful post.
on 20/02/2019(UTC)
Offline Camden  
#3 Posted : 20 February 2019 21:07:58(UTC)
Camden

Rank: Newbie

Groups: Registered
Joined: 20/02/2019(UTC)
Posts: 8
United States
Location: New York

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.
Offline alyles  
#4 Posted : 20 February 2019 21:25:42(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)
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 (76kb) downloaded 12 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline alyles  
#5 Posted : 20 February 2019 21:47:58(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)
For the devs:

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

Code:
<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
thanks 1 user thanked alyles for this useful post.
on 20/02/2019(UTC)
Offline Davide Carpi  
#6 Posted : 20 February 2019 22:06:19(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
Yes, the problem is in those regions. A regular maxima region has additional data before the <input> tag, hence the crash on reading; at the moment I'm not sure why that data is missing, though.

Edited by user 21 February 2019 17:59:47(UTC)  | Reason: added thread tags

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Andrey Ivashov  
#7 Posted : 20 February 2019 22:51:19(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
Maxima plug-in should be fixed to avoid code parts like:

Code:
            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.
thanks 1 user thanked Andrey Ivashov for this useful post.
on 21/02/2019(UTC)
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.