π
<-

TI-Nspire CAS error: This document format is not supported

:32tins: :32tinsktpb: :32tinsktpn: :32tinscas: :32tinstpkc: :32tinstpktpb: :32tinstp: :32tinscastp: :32tinscmc: :32tinscx: :32tinscxcas:

TI-Nspire CAS error: This document format is not supported

Unread postby m3g1dd0 » 23 Jan 2025, 20:15

Hi,

Product: TI-Nspire CAS touchpad
OS version: 3.9.0.463

Error: This document format is not supported. peexam.tns


I'm studying for an exam. I created a document `peexam.tns` inside my calculator. I created the problems on the document, like Notes application and TI-Basic functions by the TI-Nspire function editor. I was enjoying it.

Once, I went outside the `peexam.tns` document and entered another document. At this point, the calculator OS asked me if I wanted to save the `peexam.tns` file. I had done it before without any problem, so I saved it again. But to my surprise, afterward, suddenly my calculator refused to open the document popping up a dialog containing this error:

Error: This document format is not supported. peexam.tns


I used an official TI-Nspire Computer Link software to copy the problematic document file from my calculator to my computer. I have uploaded the problematic document file here on Google Drive:

https://drive.google.com/file/d/1Yu5oZx ... sp=sharing

Can you investigate the file for me? Since I just created the file using the calculator, this error should NOT happen.

I have spent much time creating and improving this document and it's very frustrating to lose my data and effort.

I'm very frustrated. I shouldn't lose data. Since I believe I did nothing wrong. Just using the calculator in a normal workflow :(

I'd appreciate it if you help me. I have heard that TI-Nspire document files are just compressed files. I'd appreciate it if you investigate the file with any debugging tools you might have. I don't want to lose all my data and effort.

Thanks for your help.
Last edited by m3g1dd0 on 24 Jan 2025, 03:48, edited 1 time in total.
User avatar
m3g1dd0
Niveau 1: MD (Membre Débutant)
Niveau 1: MD (Membre Débutant)
Level up: 60%
 
Posts: 3
Joined: 23 Jan 2025, 20:13
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: TI-Nspire CAS error: This document format is not support

Unread postby m3g1dd0 » Yesterday, 03:10

The user `Goplat` on the following forum has fixed two corrupted TNS files:

https://www.omnimaga.org/general-calcul ... s-files/14

Anyway, I managed to dump the XML of the documents, remove the offending tag (it was just the cursor location, nothing important), zip them back up, and re-save on my TI-Nspire with OS 2.0.1 (in order to encrypt them - 3.0 doesn't allow unencrypted documents any more). Here you go.
* tns_fixed.zip (105.61 kB - downloaded 405 times.)


https://www.omnimaga.org/general-calcul ... -files/15/

Here you go; the password is same as the original. It might be best to avoid saving documents while editing a spreadsheet cell, to avoid this bug.

Edit: The bug is caused by the combination of two things: a colored row, and saving while editing a cell. Loading a spreadsheet that was saved while editing a cell somehow tries to retrieve the color of a cell in column -1, and if there exists a colored row, that crashes.
* Etude11_12fixed.zip (14.74 kB - downloaded 369 times.)


I wonder if anyone is familiar with the `Goplat` user's workflow to fix the TNS files?

https://www.omnimaga.org/profile/Goplat/

Thanks.
User avatar
m3g1dd0
Niveau 1: MD (Membre Débutant)
Niveau 1: MD (Membre Débutant)
Level up: 60%
 
Posts: 3
Joined: 23 Jan 2025, 20:13
Gender: Not specified
Calculator(s):
MyCalcs profile

Re: TI-Nspire CAS error: This document format is not support

Unread postby Adriweb » Yesterday, 15:41

I've spent a bit of time with various tools and messing with their source code to brute force some offsets and whatnot to find the zip entries, but it might be a bit too corrupted to actually retrieve things correctly.
Or maybe missing some bytes, or something like that. It doesn't help that the .tns files are also encrypted, not just compressed.

I've linked this topic to some other people who may have more experience in dealing with this kind of thing, so we'll see, but I'm not very optimistic.
Code: Select all
Central directory entry invalid. Doing manual search

good current_cdir_entry_offset found: 16997
     cdir_entry->file_offset: 0
     cdir_entry->disk: 0
     cdir_entry->method: 13
     cdir_entry->comment_len: 0
     cdir_entry->size_compressed: 4730
     cdir_entry->size_uncompressed: 69050
File 'Document.xml':
     file_entry->name_len: 12
     file_entry->extra_len: 0
     file_entry->method: 51760
     file_entry->size_compressed: 786433
     file_entry->size_uncompressed: 0
Invalid content.

The metadata is just all wrong :(

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 79.2%
 
Posts: 14777
Images: 1123
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: TI-Nspire CAS error: This document format is not support

Unread postby m3g1dd0 » Yesterday, 18:44

Adriweb wrote:I've spent a bit of time ...

I've linked this topic to some other people ...

The metadata is just all wrong...


Thanks for your help. I also tried TI customer service. So far no answer is recieved. I will try more.
User avatar
m3g1dd0
Niveau 1: MD (Membre Débutant)
Niveau 1: MD (Membre Débutant)
Level up: 60%
 
Posts: 3
Joined: 23 Jan 2025, 20:13
Gender: Not specified
Calculator(s):
MyCalcs profile


Return to Problèmes divers / Aide débutants

Who is online

Users browsing this forum: No registered users and 12 guests

-
Search
-
Social TI-Planet
-
Featured topics
Grand Concours 2024-2025 - Programmation Python
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
12345
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
914 utilisateurs:
>895 invités
>13 membres
>6 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)