Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question I can't run tiny wasm in my FireFox browser

Discussion in 'Project Tiny' started by SilenceJUJI, Aug 31, 2020.

  1. SilenceJUJI

    SilenceJUJI

    Joined:
    Sep 10, 2018
    Posts:
    4
    Hi,

    I build ProjectTinySamples0.29 successfully,then set up a local IIS server,it can run webgl.
    But when I tested it threw an exception upload_2020-8-31_10-49-24.png

    Did I do sth wrong?

    Any response will be greatly appreciated.

    Thank you
     
  2. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    Hi,
    Make sure that the server treats the contents of the data folder that generated when building the wasm as binary data and not text
    I'm just assuming that :) but would be great if you share more info about the error from the browser console and maybe more about your server setup
     
    SilenceJUJI likes this.
  3. SilenceJUJI

    SilenceJUJI

    Joined:
    Sep 10, 2018
    Posts:
    4
    Thank you very much for your reply,here is my browser console, upload_2020-9-1_13-2-53.png
    and my sever setup upload_2020-9-1_13-25-37.png
    Did I set the wrong MIME type for wasm?
     
  4. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    Can you confirm what is the transfer type for files inside the data directory Data/* ?
    upload_2020-9-2_9-53-57.png
     

    Attached Files:

  5. SilenceJUJI

    SilenceJUJI

    Joined:
    Sep 10, 2018
    Posts:
    4
    upload_2020-9-3_19-3-57.png
    Some untyped files:(
     
  6. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    888
  7. SilenceJUJI

    SilenceJUJI

    Joined:
    Sep 10, 2018
    Posts:
    4
    Ted_Wikman and AbdulAlgharbi like this.