Search Unity

WASM build new TinyJsonInterface("[0,1]", Allocator.Temp); error

Discussion in 'Project Tiny' started by AVOlight, Sep 25, 2021.

  1. AVOlight

    AVOlight

    Joined:
    Apr 15, 2014
    Posts:
    423
    should this be working for WASM builds ?

    Code (CSharp):
    1.  
    2. var JSON_interface = new TinyJsonInterface("[0,1]", Allocator.Temp);
    3.  
    4.  
    5. [libil2cpp] A managed exception was thrown. The Tiny runtime does not support managed exceptions.
    6. dfd85f08-3a77-40ca-9df1-7ab339959867:25 [libil2cpp] The exception message is: ToString is not implemented on System.Object for the Tiny profile. Please override ToString in the derived class if it is required.
    7. dfd85f08-3a77-40ca-9df1-7ab339959867:25 [libil2cpp] No managed stack trace exists. Make sure this is a development build to enable managed stack traces.
    8. dfd85f08-3a77-40ca-9df1-7ab339959867:25 [libil2cpp] No native stack trace exists. Make sure this is platform supports native stack traces.
    9. 0190b836:0x33052f Uncaught RuntimeError: unreachable
    10.     at il2cpp::os::CrashHelpers::CrashImpl() (<anonymous>:wasm-function[17143]:0x33052f)
    11.     at il2cpp::os::CrashHelpers::Crash() (<anonymous>:wasm-function[17137]:0x3303be)
    12.     at tiny::vm::Exception::Raise(char const*) (<anonymous>:wasm-function[17109]:0x32e98f)
    13.     at tiny::vm::Exception::Raise(Il2CppException*) (<anonymous>:wasm-function[17110]:0x32e9d3)
    14.     at Object_ToString_m2255D56CEABBD8AED41F4C28A3BEC09BF876F9AC (<anonymous>:wasm-function[10714]:0x189287)
    15.     at String_Format_m53E42DE5FCB5F75F96D4932D0F67B59A5A1C8451 (<anonymous>:wasm-function[10746]:0x18a2ee)
    16.     at String_Format_mC574153FA247578A22DD455DBDEBAEBB46E5E0A7 (<anonymous>:wasm-function[10748]:0x18a423)
    17.     at SerializedObjectReader_ReadObject_mCFC7882B44A40480F9C6E8FC2DDE1769B193BD39 (<anonymous>:wasm-function[13926]:0x2529c0)
    18.     at TinyJsonData__ctor_m5F9E69D1322D6A5C9C00BD999D8D25B136054D1C (<anonymous>:wasm-function[14352]:0x26eaaf)
    19.     at TinyJsonInterface__ctor_m2B34494A1962A3A83B1B16412C1971EB4C611FB6 (<anonymous>:wasm-function[14357]:0x26f1a5)
    or

    Code (CSharp):
    1.  
    2. var JSON_interface = new TinyJsonInterface("{[0,1]}", Allocator.Temp);
    3.  
    4. [libil2cpp] A managed exception was thrown. The Tiny runtime does not support managed exceptions.
    5. 052dc685-7d32-4a56-9e59-8b61426f0cb0:25 [libil2cpp] The exception message is: ToString is not implemented on System.Object for the Tiny profile. Please override ToString in the derived class if it is required.
    6. 052dc685-7d32-4a56-9e59-8b61426f0cb0:25 [libil2cpp] No managed stack trace exists. Make sure this is a development build to enable managed stack traces.
    7. 052dc685-7d32-4a56-9e59-8b61426f0cb0:25 [libil2cpp] No native stack trace exists. Make sure this is platform supports native stack traces.
    8. 0190cd7e:0x330873 Uncaught RuntimeError: unreachable
    9.     at il2cpp::os::CrashHelpers::CrashImpl() (<anonymous>:wasm-function[17148]:0x330873)
    10.     at il2cpp::os::CrashHelpers::Crash() (<anonymous>:wasm-function[17142]:0x330702)
    11.     at tiny::vm::Exception::Raise(char const*) (<anonymous>:wasm-function[17114]:0x32ecd3)
    12.     at tiny::vm::Exception::Raise(Il2CppException*) (<anonymous>:wasm-function[17115]:0x32ed17)
    13.     at Object_ToString_m2255D56CEABBD8AED41F4C28A3BEC09BF876F9AC (<anonymous>:wasm-function[10717]:0x1894f2)
    14.     at String_Format_m53E42DE5FCB5F75F96D4932D0F67B59A5A1C8451 (<anonymous>:wasm-function[10749]:0x18a559)
    15.     at JsonValidationResult_ToString_m52DFD114D4E7008C6A7AE746689C037C7BE52926 (<anonymous>:wasm-function[13907]:0x251856)
    16.     at JsonTokenizer_Write_mEE1979A74D7872E2E7707B400549A1E427ABA5C7 (<anonymous>:wasm-function[13906]:0x251699)
    17.     at SerializedObjectReader_FillBuffers_m128811A4DFF41D799A488664B0E2A41261C8426F (<anonymous>:wasm-function[13928]:0x252b71)
    18.     at SerializedObjectReader_ReadObject_mCFC7882B44A40480F9C6E8FC2DDE1769B193BD39 (<anonymous>:wasm-function[13929]:0x252bb2)
     
    Last edited: Sep 25, 2021
  2. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    660
    Code (CSharp):
    1. {[0,1]}
    That is not a valid JSON
     
unityunity