Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception - alloc.c(177) : max_string_size reached #189

Open
mynameGY opened this issue Dec 28, 2018 · 10 comments
Open

Uncaught exception - alloc.c(177) : max_string_size reached #189

mynameGY opened this issue Dec 28, 2018 · 10 comments

Comments

@mynameGY
Copy link

How to deal with it please help me

@ppenzin
Copy link
Collaborator

ppenzin commented Dec 28, 2018

Hi @mynameGY , can you please add more details. What neko code are you running, can you post the source?

@mynameGY
Copy link
Author

mynameGY commented Jan 2, 2019

I used haxeflixel to build flash and failed.
When I delete some of the resources under my assets, I can build again successfully.

Here's the details error :

Called from ? line 1
Called from CommandLineTools.hx line 1385
Called from CommandLineTools.hx line 25
Called from CommandLineTools.hx line 126
Called from CommandLineTools.hx line 604
Called from lime/project/PlatformTarget.hx line 70
Called from lime/tools/platforms/FlashPlatform.hx line 260
Called from lime/tools/helpers/FlashHelper.hx line 872
Called from lime/tools/helpers/FlashHelper.hx line 685
Called from format/swf/Writer.hx line 60
Called from format/swf/Writer.hx line 1425
Called from format/tools/Deflate.hx line 33
Called from /usr/lib/haxe/std/neko/_std/haxe/zip/Compress.hx line 48
Called from /usr/lib/haxe/std/haxe/io/Bytes.hx line 457
Uncaught exception - alloc.c(177) : max_string_size reached
Build halted with errors (haxelib.exe).

@ppenzin
Copy link
Collaborator

ppenzin commented Jan 2, 2019

Looks like the string describing resources becomes too long to be allocated in Neko. You would probably have to report the issue for the tool that is getting this error.

@ncannasse, @andyli, what do yo think?

@ncannasse
Copy link
Member

This is some issue related to lime and should be handled at lime level. It seems weird that there is a 256MB limit to resources as I think some projects have more than that.

@mynameGY
Copy link
Author

mynameGY commented Jan 3, 2019

I want to increase the limit of more than 256M. How can I solve this problem?

@ppenzin
Copy link
Collaborator

ppenzin commented Jan 4, 2019

This needs to be fixed in Lime (openfl/lime, right @ncannasse?). To get help with fixing it you should report this issue in the lime repository.

@mynameGY
Copy link
Author

mynameGY commented Jan 4, 2019

Okay, thank you very much @ppenzin .I really look forward to ncannasse's help. Thank @ncannasse in advance.

@ncannasse
Copy link
Member

@ppenzin yes, this is somewhat lime specific. Maybe recompiling and running the build tool with HashLink would prevent this error from occurring.

@ppenzin
Copy link
Collaborator

ppenzin commented Jan 5, 2019

Are strings allocated differently in HashLink? I haven't gotten to building it yet since I got stuck with FreeBSD build of Haxe :)

@ncannasse
Copy link
Member

ncannasse commented Jan 5, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants