2

When I try to open my project it gives me error saying "Heads up! Could not open project". Could you please help me? Let me know if you want me to share the file.

We were working on that file till then and suddenly after saving we were not able to open it next time.

Thanks, RaviProject file that gives me this error

5
  • 2
    Please provide more details. Which OS you use? Application version? Any specific actions you've taken before this issue appeared and what have you tried to troubleshoot it?
    – Alex
    Feb 11, 2022 at 6:49
  • 1
    I run ev3 on windows EV3 classroom 1.5.2. We wanted to make a copy of the existing program and did save as and given new file name. Is there any way I could share the file to you so that you can take a look. Feb 11, 2022 at 12:44
  • You could use a file sharing app like Google Drive, OneDrive, Dropbox, etc. Feb 12, 2022 at 15:44
  • drive.google.com/file/d/1gtLcj8iC3xoKfA_XRJMmK5TMHXdgtGW9/… Please find the link below. Let us know what went wrong. Appreciate if you could have this file open in ev3 Feb 14, 2022 at 1:04
  • @DavidLechner Could you please confirm if you were able to download file and fix it? Feb 14, 2022 at 12:39

3 Answers 3

4

This is a generic error message, so everyone that gets the error won't have the same problem. However, using the methods described below could help find other problems as well.

The project files for the MINDSTORMS programming software are just ZIP files and can be opened with standard ZIP file tools. For Scratch-based software like EV3 Classroom, this file contains 3 files, one of which is scratch.sb3. The scratch.sb3 file is another ZIP file and can be extracted as well. Inside of the scratch.sb3 are two files, one of which is project.json. This is the actual project code file.

This file contains minified JSON that is hard to read, but modern code editors like Visual Studio Code contain tools to automatically format the file in a more readable way. Once this is done, an experienced coder can use their intuition to look for anomalies in the file.

The JSON file contains a top-level object with 4 sections, "targets", "monitors", "extensions" and "meta". The contents of these sections will depend on the project, but in general, "targets" contains an array of two objects, one where "isStage": true and one where "isStage": false. The former looks to be default Scratch stuff that isn't used and the latter is the bulk of the project file. The "monitor" section will be empty unless you have monitors (variable value watchers) set up in your project. The "extensions" section contains a list of the different block types used in your project and "meta" is some more default Scratch stuff.

I was able to find the issue with the file provided by noticing that in the "targets" section, there were two "isStage": true and two "isStage": false objects. So it appears that somehow two versions of the project got saved in the same file. I was able to recover the projects by making two copies of the original file. In one, I deleted the second two targets and in the other I deleted the first two targets. I used a diff tool to compare the contents of these and they similar but not identical, so I deduced that they are two versions of the same project. I then updated the ZIP files with the modified project.json and was able to open the projects in the EV3 Classroom software.

2
2

I have created a small Lego App Tool kit to fix the problem, until LEGO service team does -> https://legoapptools.azurewebsites.net

2

How to get an image of a corrupted Spike Prime .llsp file or a corrupted Ev3 Classroom .lmsp file.

If you suddenly get the dreaded message of “Heads up! Could not open project” don’t lose hope, there is a way - unfortunately it will still require redoing the code.

This method shows you have to get an image of your entire code so that you can copy from it:

  1. Make a copy of your corrupted file. Just in case.
  2. Rename your file and change the file extension to .zip
  3. Click yes on the pop up that warns you about changing the name
  4. Open the zipped folder (you can extract the files but it isn’t necessary)
  5. Open the .svg file in a browser (Google Chrome, Firefox, Microsoft Edge)
  6. Open a new spike prime project and copy your program from your image OR use the ‘Windows Snipping Tool’ or ‘Snip & Sketch’ tool to take a screen grab of your program then you can save it as a jpeg and use it later.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.