Skip to content

Failed to find codegen/metagen on Unity 6000.3.13f1 WebGL game #544

Description

@Phononenom

As per your comments, unsure if "a bug in my code, inlined code/meta reg, or modified libil2cpp".
Attached are the .wasm and global-metadata.dat files
Thank you for your time and efforts
My Discord is the same as my user here

Build.zip

Relevant terminal output of the command: ./cpp2il --force-binary-path C:\Users\[]\assets\Build\18a190a3abfb31a4affccfd60ceb4985.wasm --force-metadata-path C:\Users\[]\assets\Build\extracted_data\Il2CppData\Metadata\global-metadata.dat --wasm-framework-file C:\Users\[]\assets\Build\9ae7402020cf5a6fe9d56eb17a6fa34b.framework.js --force-unity-version 6000.3.13f1 --verbose

[Verb] [Library]        Attempting to locate code and metadata registration functions...
[Verb] [Library]                -Searching for MetadataReg...
[Verb] [Library]                        Looking for the number of type definitions, 0x3659
[Verb] [Library]                        Looking for bytes: 59 36 00 00
[Verb] [Library]                        Found 2 instances of the number of type definitions: [19EB30, 2942D4]
[Verb] [Library]                        Found 2 potential metadata registrations: [19EB00, 2942A4]
[Verb] [Library]                        Rejected Metadata registration at 0x19EB00, because it has a count field 0xFFFFFFE8 at offset 8 which is above sanity limit of 0xC0000. If metadata registration detection fails, may need to bump up the limit.
[Verb] [Library]                        Warning: metadata registration 0x2942A4 has 11715 metadata usages at a pointer of 0x2E84. We're on v27, these should be 0.
[Verb] [Library]                        Rejecting metadata registration 0x2942A4 because it has 7995 types, which is less than metadata-file-defined type def count of 13913
[Verb] [Library]                -Searching for CodeReg...
[Verb] [Library]                        Using mscorlib full-disassembly approach to get codereg, this may take a while...
[Verb] [Library]                        Looking for bytes: 6d 73 63 6f 72 6c 69 62 2e 64 6c 6c 00
[Verb] [Library]                        Found 1 occurrences of mscorlib.dll: [28B1E]
[Verb] [Library]                        Looking for bytes: 1e 8b 02 00
[Verb] [Library]                        Found 2 potential codegen modules for mscorlib: [41709C, 43945C]
[Verb] [Library]                        Looking for bytes: 9c 70 41 00
[Verb] [Library]                        Looking for bytes: 5c 94 43 00
[Verb] [Library]                        Found 1 address for potential codegen modules in potential codegen module lists: [417294]
[Verb] [Library]                        Looking for bytes: 04 71 41 00
[Verb] [Library]                        Looking for bytes: 00 71 41 00
[Verb] [Library]                        Looking for bytes: fc 70 41 00
[Verb] [Library]                        Looking for bytes: f8 70 41 00
[Verb] [Library]                        Looking for bytes: f4 70 41 00
[Verb] [Library]                        Looking for bytes: f0 70 41 00
[Verb] [Library]                        Looking for bytes: ec 70 41 00
[Verb] [Library]                        Looking for bytes: e8 70 41 00
[Verb] [Library]                        Looking for bytes: e4 70 41 00
[Verb] [Library]                        Looking for bytes: e0 70 41 00
[Warn] [Library] Hit backtrack limit of 110 modules and still didn't find a valid pCodegenModules pointer.
[Info] [Library] Got Binary codereg: 0x0, metareg: 0x0 in 258ms.
[Info] [Library] Initializing Binary...
[Warn] [Library] At least one of the registration structs was not able to be found. Attempting to use fallback locator delegate to find them (this will fail unless you have a plugin that helps with this!)...
[Verb] [Library] After fallback, code registration is null and metadata registration is null.
[Fail] [Program]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions