HaxeFoundation / neko

The Neko Virtual Machine
https://nekovm.org
Other
550 stars 106 forks source link

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

Open mynameGY opened 5 years ago

mynameGY commented 5 years ago

How to deal with it please help me

ppenzin commented 5 years ago

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

mynameGY commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

ppenzin commented 5 years ago

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 commented 5 years ago

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

ncannasse commented 5 years ago

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

ppenzin commented 5 years ago

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

ncannasse commented 5 years ago

Well you don't have the 256MB limit.

On Sat, Jan 5, 2019 at 7:18 AM Petr Penzin notifications@github.com wrote:

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

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/HaxeFoundation/neko/issues/189#issuecomment-451631657, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-bwMDK3zNDTnTP4ZGB84Ivy445U5A1ks5vAEPLgaJpZM4Zjj3A .