Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Open for appending creates glitched variables #113

Open
beckadamtheinventor opened this issue Dec 13, 2018 · 5 comments
Open

Open for appending creates glitched variables #113

beckadamtheinventor opened this issue Dec 13, 2018 · 5 comments

Comments

@beckadamtheinventor
Copy link
Contributor

https://i.imgur.com/56cpMgI.png
Is this a known bug?
I have attempted to narrow down the issue, and the corrupted variables happen around the opening of the appvar for appending.

@PeterTillema
Copy link
Owner

I've no idea but it might be related to this: CE-Programming/toolchain#165 ? Can you try to narrow it down and send me code?

@beckadamtheinventor
Copy link
Contributor Author

beckadamtheinventor commented Dec 14, 2018

It could also be an issue with random numbers though.

rand->RNG
RNG/65536->RNGU
(RNG/256)plotsquare255->RNGM
RNGplotsquare255->RNGL
//work with those random numbers and store stuff to WDTEMP
sum(1,WDFILE,"a+->D
sum(7,PYRMX,D
sum(7,PYRMY,D
sum(4,WDTEMP,64,1,D
sum(3,D

Also I did check all of the code that is used to store to WDTEMP, making sure that it is storing correctly.
Alloc(100)+9->WDTEMP
That is what I did, so that I could store to negative offsets of it, Idk if this could be a problem.
all of my code is correct syntax, and does not store to unmapped pointers. I have gone over my entire source code almost fifty times, but the issue persists even if I try to open the file as "r+" and add stuff to the end.
It's probably a rand and RandInt issue :P

EDIT: just saw the issue you posted; probably not a random number issue
EDIT 2: Perhaps I should just unarchive the variable first?

@beckadamtheinventor
Copy link
Contributor Author

Update: this bug only manifests itself when the variable is not archived. I have had success with appending varibles, but only if they are archived.

@beckadamtheinventor
Copy link
Contributor Author

This is still happening.
From what I have seen, this file opening mode does not work on programs which compile to over 10Kb.
Also, this is purely an ICE issue; due to the nature of this.

I will try to fix ICE myself, for my own personal use, but I might end up re-uploading it.
If you know anything about why this could be happening, please let me know.
If you have time/motivation/ability to fix, please do 😛

@PeterTillema
Copy link
Owner

Can you send me one source program where the error happens? Then I might figure out what the problem is.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants