Skip to content

Crash in release build when returning a string from a method #60

Description

@SeleDreams

Hi, I am working on a project and I found a weird issue that only happens in release build

I have a a function that returns a string
image
(Member is a string member I use quickly for this example but basically it happened with all my code)
and it works in the editor, the string is properly returned and I can work with it, but when I test it in a standalone build, the game crashes immediatly when the function is called
this is the log it generated when crashing

error.log

Activity

  1. jacksondunstan commented on Mar 7, 2020

    @jacksondunstan
    Owner

    It's hard to tell what's happening here from just the small snippet of code and the error.log file. What is Member? How is this function being called?

    I noticed you're using Unity 2017.2. While it's not strictly required, you may also benefit from upgrading to a newer, supported version.

  2. SeleDreams commented on Mar 8, 2020

    @SeleDreams
    Author

    I think i'll make a small reproduction project to help you identify the issue.

    I was using unity 2017 because I was creating a feature for a game under unity 2017.2.3

  3. SeleDreams commented on Mar 8, 2020

    @SeleDreams
    Author

    image
    also if versions superior to 2017 are supported, it could be good to update the description

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions