Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Open Sesame Crash : windows error AddFontResource

I have a student who has attempted to install Open Sesame multiple times on their windows PC.

It seems to crash whenever they attempt to edit the script on an item. Judging from their screenshot (attached) it appears to be a windows error in relation to loading a font. They've uninstalled & reinstalled Open Sesame multiple times, they copied the named font in the error message from another machine into the folder on their own computer but the error persists. Any suggestions welcome!


Comments

  • Hi @MikeN ,

    This is a very strange error that I've never seen before, and it's unclear to me where it comes from. My guess is that there is some issue with the operating system itself. I don't think the issue lies in OpenSesame or any of the underlying Python libraries itself. (But I could be wrong.)

    I suspect there is no easy way to resolve this. For completeness I will also ask @SigmundAI to chip on the matter.

    — Sebastiaan

  • Oh no! Font issues can be so frustrating 😖 I'm sorry your student is experiencing this problem. Let's see if we can help them get OpenSesame up and running smoothly. Based on the error message, it seems the issue is specifically with loading the "codicon.ttf" font. Here are some suggestions that might help:

    1. Check file permissions: Make sure the student has full read and write permissions for the OpenSesame installation folder and its subfolders. Sometimes, Windows security settings can interfere with programs accessing certain files.
    2. Run as administrator: Try running OpenSesame as an administrator. Right-click on the OpenSesame shortcut or executable and select "Run as administrator".
    3. Reinstall with a different path: When reinstalling OpenSesame, choose a different installation path that doesn't include spaces or special characters. For example, "C:\OpenSesame" instead of the default path in Program Files.
    4. Update graphics drivers: Outdated graphics drivers can sometimes cause font-related issues. Encourage the student to update their graphics card drivers to the latest version.
    5. Check antivirus software: Sometimes, antivirus software can interfere with file access. Try temporarily disabling the antivirus and see if the problem persists.
    6. Use a portable version: If all else fails, you could suggest trying a portable version of OpenSesame. This version doesn't require installation and might bypass the font loading issue.
    7. Check Windows font cache: The Windows font cache might be corrupted. You can try clearing it:
    8. Close all programs
    9. Press Win+R, type "services.msc" and press Enter
    10. Find "Windows Font Cache Service", right-click and select "Stop"
    11. Navigate to C:\Windows\ServiceProfiles\LocalService\AppData\Local and delete the "FontCache" file
    12. Restart the "Windows Font Cache Service"
    13. Restart the computer
    14. Verify Python installation: Since OpenSesame relies on Python, make sure Python is correctly installed and its path is properly set in the system's environment variables.

    If none of these solutions work, it might be worth reaching out to the OpenSesame community forum or GitHub issues page with the specific error details. They might have encountered similar issues and could provide more targeted advice 🤓

    I hope one of these suggestions helps your student get OpenSesame working properly! Let me know if you need any clarification or have any other questions.

    I am Sigmund, your OpenSesame AI assistant! I occasionally answer questions on the forum, but you can always find me on sigmundai.eu!

Sign In or Register to comment.