Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross platform issues when uploading to different slots #134

Open
MikeGstefan opened this issue Nov 1, 2020 · 4 comments
Open

Cross platform issues when uploading to different slots #134

MikeGstefan opened this issue Nov 1, 2020 · 4 comments
Labels
bug Something isn't working p: normal Normal priority todo This will be worked on next

Comments

@MikeGstefan
Copy link

MikeGstefan commented Nov 1, 2020

Expected Behavior:

When uploading to a different slot, the code remains in the other slot

Actual Behavior:

If the code in a different slot was uploaded from a different OS it is removed with the upload. When we upload into slot 2 (or any slot but 2 in this example) from a windows computer, if the other programs on the v5 were uploaded from a mac they get removed ex. a program in slot 1 was removed when trying to upload to slot 2

Steps to reproduce:

Upload from a different OS

System information:

Windows 10 and OS X 10.15.6

PROS Version: 3.3.1

Additional Information

Sometimes it will throw an error about not finding the device header, it does not do this every time.

Screenshots/Output Dumps/Stack Traces

mac error with device header error

windows error

windows error with device header error

@edjubuh
Copy link
Member

edjubuh commented Nov 2, 2020

I think I read two issues here:

  1. Sometimes device header isn't found on both mac and windows.
    This needs to be investigated further.

  2. Uploading program A and program B from one OS, and later trying to upload program B from another OS causes program A to be removed.
    This may be intended behavior depending on storage available on the device. PROS library and the associated user programs may be removed if V5 reports not enough space. The PROS library is host-specific today and can't be reused if you compile the same program on a different computer.

@MikeGstefan
Copy link
Author

I think I read two issues here:

  1. Sometimes device header isn't found on both mac and windows.

This needs to be investigated further.

  1. Uploading program A and program B from one OS, and later trying to upload program B from another OS causes program A to be removed.

This may be intended behavior depending on storage available on the device. PROS library and the associated user programs may be removed if V5 reports not enough space. The PROS library is host-specific today and can't be reused if you compile the same program on a different computer.

  1. I only remember encountering this error when Im getting the other one as well, I have yet to see it independently.

  2. We were trying to upload completely different programs from the other OS when we encountered the error.

@HotelCalifornia
Copy link
Contributor

2. We were trying to upload completely different programs from the other OS when we encountered the error.

yeah the problem elliot noted is that the cold package (libpros.a, etc) gets compiled per-host in this case. so compiling from different machines does technically produce different cold packages, which as you've seen can trigger the ensure_library_space behavior

@Sleuth56
Copy link
Contributor

I also have noticed this issue when deleting surten files from a pros project. I just assumed that it was a vex problem.

@omegaStag omegaStag added bug Something isn't working p: normal Normal priority labels Sep 6, 2022
@ayushuk ayushuk added the todo This will be worked on next label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p: normal Normal priority todo This will be worked on next
Projects
None yet
Development

No branches or pull requests

7 participants