Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline TIAGO_ENG2012  
#1 Posted : 17 February 2022 16:28:08(UTC)
TIAGO_ENG2012


Rank: Member

Groups: Registered
Joined: 09/12/2021(UTC)
Posts: 26
Brazil
Location: MG

Was thanked: 1 time(s) in 1 post(s)
FXsp.sm (503kb) downloaded 10 time(s).

When trying to open the file, the following error appears "object reference not defined for an instance of an object".

Can you tell me how to solve it.

Edited by moderator 18 February 2022 21:37:58(UTC)  | Reason: Marked as bug

Offline Jean Giraud  
#2 Posted : 17 February 2022 16:40:54(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,186
Canada

Was thanked: 910 time(s) in 738 post(s)
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
When trying to open the file, the following error appears "object reference not defined for an instance of an object".

File does not open incorrect format
Probably caused by an active AV at time saved.
Offline TIAGO_ENG2012  
#3 Posted : 17 February 2022 16:42:57(UTC)
TIAGO_ENG2012


Rank: Member

Groups: Registered
Joined: 09/12/2021(UTC)
Posts: 26
Brazil
Location: MG

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
When trying to open the file, the following error appears "object reference not defined for an instance of an object".

File does not open incorrect format
Probably caused by an active AV at time saved.



it is possible solver?
Offline Jean Giraud  
#4 Posted : 17 February 2022 16:54:01(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,186
Canada

Was thanked: 910 time(s) in 738 post(s)
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
it is possible solver?

If it would relate to a solver of some kind it would turn red.
Try to save as instead of just save.
Personally, I always save as ... never simply save.
Offline TIAGO_ENG2012  
#5 Posted : 17 February 2022 16:58:10(UTC)
TIAGO_ENG2012


Rank: Member

Groups: Registered
Joined: 09/12/2021(UTC)
Posts: 26
Brazil
Location: MG

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
it is possible solver?

If it would relate to a solver of some kind it would turn red.
Try to save as instead of just save.
Personally, I always save as ... never simply save.



So this scrypt is lost?
Offline Jean Giraud  
#6 Posted : 17 February 2022 17:02:45(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,186
Canada

Was thanked: 910 time(s) in 738 post(s)
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
So this script is lost ?

Maybe yes up to this point ?
Can't help so far !
Offline TIAGO_ENG2012  
#7 Posted : 17 February 2022 17:08:25(UTC)
TIAGO_ENG2012


Rank: Member

Groups: Registered
Joined: 09/12/2021(UTC)
Posts: 26
Brazil
Location: MG

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
So this script is lost ?

Maybe yes up to this point ?
Can't help so far !


thank you very much friend
Offline overlord  
#8 Posted : 17 February 2022 18:45:28(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 829
Turkey

Was thanked: 290 time(s) in 204 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
So this script is lost ?

Maybe yes up to this point ?
Can't help so far !

I won't make a promise, but maybe it can be recoverable.
At least and maybe, some parts of it.
Don't fall into Jean's false claims.
Offline overlord  
#9 Posted : 17 February 2022 19:03:57(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 829
Turkey

Was thanked: 290 time(s) in 204 post(s)
First attempt to fix the file.
I have removed the force crash section.
Next I am going to correct the crashing section.
I think I can fix very most part of it.

Regards

FXsp_r0.sm (474kb) downloaded 2 time(s).
Offline overlord  
#10 Posted : 17 February 2022 19:33:20(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 829
Turkey

Was thanked: 290 time(s) in 204 post(s)
Here is your file, completely recovered.

Regards

FXsp_r1.sm (604kb) downloaded 11 time(s).

Click to Enlarge

Edited by user 17 February 2022 19:36:52(UTC)  | Reason: Not specified

thanks 1 user thanked overlord for this useful post.
on 17/02/2022(UTC)
Offline TIAGO_ENG2012  
#11 Posted : 17 February 2022 19:39:51(UTC)
TIAGO_ENG2012


Rank: Member

Groups: Registered
Joined: 09/12/2021(UTC)
Posts: 26
Brazil
Location: MG

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: overlord Go to Quoted Post
Here is your file, completely recovered.

Regards

FXsp_r1.sm (604kb) downloaded 11 time(s).

Click to Enlarge


thank you very much friend, can you tell me what was done to fix this error?
Offline overlord  
#12 Posted : 17 February 2022 20:32:30(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 829
Turkey

Was thanked: 290 time(s) in 204 post(s)
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
thank you very much friend, can you tell me what was done to fix this error?

You are welcome.
Culprit is usually an empty \[REGION[####]]\. Yours was at line#1963.
SMath files are sophisticated xml files actually.
You can edit them with a text editor.
The hash inside \[REGION[#####]]\ can differ, but pattern is always same.
\[REGION[#######################]]\
I usually search for this and remove its regions entirely.
If fix works, then try to remove \[REGION[###]]\ individually.

This mostly works to fix the files.
If it doesn't, I remove <region **** </region> sections one by one.
Or multiple of them at same time until file works again.
Then re-add them to pinpoint which region makes crash.

Most important, I always work on file copies to prevent more data loss.

Regards

2022-02-17_20-23.png
Offline TIAGO_ENG2012  
#13 Posted : 17 February 2022 21:22:03(UTC)
TIAGO_ENG2012


Rank: Member

Groups: Registered
Joined: 09/12/2021(UTC)
Posts: 26
Brazil
Location: MG

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: overlord Go to Quoted Post
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
thank you very much friend, can you tell me what was done to fix this error?

You are welcome.
Culprit is usually an empty \[REGION[####]]\. Yours was at line#1963.
SMath files are sophisticated xml files actually.
You can edit them with a text editor.
The hash inside \[REGION[#####]]\ can differ, but pattern is always same.
\[REGION[#######################]]\
I usually search for this and remove its regions entirely.
If fix works, then try to remove \[REGION[###]]\ individually.

This mostly works to fix the files.
If it doesn't, I remove <region **** </region> sections one by one.
Or multiple of them at same time until file works again.
Then re-add them to pinpoint which region makes crash.

Most important, I always work on file copies to prevent more data loss.

Regards

2022-02-17_20-23.png


thx u pro
Offline TIAGO_ENG2012  
#14 Posted : 17 February 2022 21:23:18(UTC)
TIAGO_ENG2012


Rank: Member

Groups: Registered
Joined: 09/12/2021(UTC)
Posts: 26
Brazil
Location: MG

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: overlord Go to Quoted Post
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
thank you very much friend, can you tell me what was done to fix this error?

You are welcome.
Culprit is usually an empty \[REGION[####]]\. Yours was at line#1963.
SMath files are sophisticated xml files actually.
You can edit them with a text editor.
The hash inside \[REGION[#####]]\ can differ, but pattern is always same.
\[REGION[#######################]]\
I usually search for this and remove its regions entirely.
If fix works, then try to remove \[REGION[###]]\ individually.

This mostly works to fix the files.
If it doesn't, I remove <region **** </region> sections one by one.
Or multiple of them at same time until file works again.
Then re-add them to pinpoint which region makes crash.

Most important, I always work on file copies to prevent more data loss.

Regards

2022-02-17_20-23.png


thx u pro -->can you tell me why I can't save this same file in .exe form?
Offline overlord  
#15 Posted : 17 February 2022 21:44:20(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 829
Turkey

Was thanked: 290 time(s) in 204 post(s)
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
thx u pro -->can you tell me why I can't save this same file in .exe form?

I don't know your Windows setup. So can't tell.
I even use linux and I could make an exe file.
Try to Log-in to your account in SMath.
(Login button is Up-Right of SMath window)
This will activate pro mode while saving exe's.
And uncheck compression option.
This is what I did.

Regards

This zip file contains exe of your file:
FXsp_r1.exe.gz (1,888kb) downloaded 5 time(s).

2022-02-17_21-40.png
Offline TIAGO_ENG2012  
#16 Posted : 17 February 2022 22:13:34(UTC)
TIAGO_ENG2012


Rank: Member

Groups: Registered
Joined: 09/12/2021(UTC)
Posts: 26
Brazil
Location: MG

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: overlord Go to Quoted Post
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
thx u pro -->can you tell me why I can't save this same file in .exe form?

I don't know your Windows setup. So can't tell.
I even use linux and I could make an exe file.
Try to Log-in to your account in SMath.
(Login button is Up-Right of SMath window)
This will activate pro mode while saving exe's.
And uncheck compression option.
This is what I did.

Regards

This zip file contains exe of your file:
FXsp_r1.exe.gz (1,888kb) downloaded 5 time(s).

2022-02-17_21-40.png


I still get the same error as in the topic below

https://en.smath.com/for...ing-to-save-to--exe.aspx

Offline overlord  
#17 Posted : 17 February 2022 22:20:20(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 829
Turkey

Was thanked: 290 time(s) in 204 post(s)
Originally Posted by: TIAGO_ENG2012 Go to Quoted Post
I still get the same error as in the topic below

https://en.smath.com/for...ing-to-save-to--exe.aspx


Let me try this with a Windows installed computer.
Than maybe I can get what is going on about the issue.
Offline overlord  
#18 Posted : 17 February 2022 23:08:08(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 829
Turkey

Was thanked: 290 time(s) in 204 post(s)
I tried your file with a windows 10 installed computer.
It didn't made the executable file on that either.
I have replaced writer plugin regions with embedded text regions.
Now exe file can be created, but not visually as you desired I guess.
And it creates some maple files in document directory when executed.

Actually you don't need maple to solve that kind of functions you used.
Embedded solve() or roots() enough for that, I have replaced it.

So, there is a inconsistency with Linux and Windows versions.
While using Writer Regions and making executable files,
Windows version can't finish while Linux can.
Interesting finding indeed.

Regards

FXsp_r2.sm (503kb) downloaded 6 time(s).
Offline TIAGO_ENG2012  
#19 Posted : 18 February 2022 00:03:00(UTC)
TIAGO_ENG2012


Rank: Member

Groups: Registered
Joined: 09/12/2021(UTC)
Posts: 26
Brazil
Location: MG

Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: overlord Go to Quoted Post
I tried your file with a windows 10 installed computer.
It didn't made the executable file on that either.
I have replaced writer plugin regions with embedded text regions.
Now exe file can be created, but not visually as you desired I guess.
And it creates some maple files in document directory when executed.

Actually you don't need maple to solve that kind of functions you used.
Embedded solve() or roots() enough for that, I have replaced it.

So, there is a inconsistency with Linux and Windows versions.
While using Writer Regions and making executable files,
Windows version can't finish while Linux can.
Interesting finding indeed.

Regards

FXsp_r2.sm (503kb) downloaded 6 time(s).



perfect thank you very much for making your time available, I have been using smart for 4 months and in this learning phase you are one of the best help, thank you very much friend

thanks 1 user thanked TIAGO_ENG2012 for this useful post.
on 18/02/2022(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.