Can't compile to HTML5

If I try to traget HTML5, I get those error:

/usr/lib/haxe/lib/swf/2,1,1/format/swf/utils/BitArray.hx
Error:(15, 18) Array access is not allowed on format.swf.utils.BitArray
Error:(62, 4) Array access is not allowed on format.swf.utils.BitArray
Error:(66, 4) Array access is not allowed on format.swf.utils.BitArray
Error:(70, 4) Array access is not allowed on format.swf.utils.BitArray
/usr/lib/haxe/lib/swf/2,1,1/format/swf/SWFData.hx
Error:(305, 9) Array access is not allowed on format.swf.SWFData
Error:(867, 17) Array access is not allowed on format.swf.SWFData
Error:(914, 17) Array access is not allowed on flash.utils.ByteArray
/Users/Apple/Documents/projects/web/client/client/src/com/clientside/main/Main.hx
Error:(23, 7) com.clientside.main.NativeBootstrap has no field or subtype LicenseBase

Here is my XML file:

 <haxelib name="swf" />
 <library path="Assets/assets-cc.swf" name="Compo"  type="swflite"/>

What I can do?

What version of lime and openfl do you have?
Does it work in neko?

I have:

OpenFL Command-Line Tools (3.3.8-LPNIQF)
Lime Command-Line Tools (2.6.8)

If I try to compile to neko, I get this error:

Process:               neko [76832]
Path:                  /usr/lib/neko/neko
Identifier:            neko
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        haxelib [76831]
Responsible:           idea [19376]
User ID:               501

Date/Time:             2015-10-09 21:56:37.171 +0300
OS Version:            Mac OS X 10.10.5 (14F27)
Report Version:        11
Anonymous UUID:        DFC80675-DEEC-90A1-9F17-00C5A044C282

Sleep/Wake UUID:       0918C84E-9514-4AAC-906A-AB7C9790835D

Time Awake Since Boot: 60000 seconds
Time Since Wake:       15000 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGBUS)
Exception Codes:       KERN_PROTECTION_FAILURE at 0x0000000100033120

VM Regions Near 0x100033120:
    __DATA                 0000000100031000-0000000100032000 [    4K] rw-/rwx SM=PRV  /usr/lib/neko/libneko.dylib
--> __DATA                 0000000100032000-0000000100065000 [  204K] rw-/rwx SM=COW  /usr/lib/neko/libneko.dylib
    __LINKEDIT             0000000100065000-0000000100078000 [   76K] r--/rwx SM=COW  /usr/lib/neko/libneko.dylib

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   ???                           	0x0000000100033120 GC_arrays + 0
1   lime.ndll                     	0x00000001028f9047 0x102800000 + 1019975
2   lime.ndll                     	0x0000000102813e54 0x102800000 + 81492
3   lime.ndll                     	0x0000000102805d18 0x102800000 + 23832
4   libneko.dylib                 	0x000000010000c102 neko_interp_loop + 11922
5   libneko.dylib                 	0x0000000100008ca9 neko_interp + 473
6   libneko.dylib                 	0x000000010000832d neko_val_callEx + 717
7   libneko.dylib                 	0x00000001000071d1 builtin_call + 81
8   libneko.dylib                 	0x000000010000ba27 neko_interp_loop + 10167
9   libneko.dylib                 	0x0000000100008ca9 neko_interp + 473
10  libneko.dylib                 	0x0000000100008ab6 neko_vm_execute + 134
11  libneko.dylib                 	0x0000000100011204 loader_loadmodule + 628
12  libneko.dylib                 	0x000000010000847f neko_val_callEx + 1055
13  neko                          	0x0000000100001718 0x100000000 + 5912
14  neko                          	0x0000000100000c1d 0x100000000 + 3101
15  neko                          	0x0000000100000b51 0x100000000 + 2897

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00007fff5fbfeb78  rbx: 0x00007fff5fbfed28  rcx: 0x00000001028fa650  rdx: 0x00000001028f90d9
  rdi: 0x00007fff5fbfed28  rsi: 0x00000001028f92dc  rbp: 0x00007fff5fbfeb40  rsp: 0x00007fff5fbfeb28
   r8: 0x0000000000000000   r9: 0x0000000000000004  r10: 0x0000000000000000  r11: 0x0000000000000000
  r12: 0x0000000000000000  r13: 0x00007fff77edb070  r14: 0x0000000000000001  r15: 0x0000000000000000
  rip: 0x0000000100033120  rfl: 0x0000000000010206  cr2: 0x0000000100033120
  
Logical CPU:     2
Error Code:      0x00000015
Trap Number:     14

Are you using an old version of Haxe?

$ haxe -v
Haxe Compiler 3.2.0 - ©2005-2015 Haxe Foundation

On OS X El Capitan, I experienced some issues like this.

When I tried building a project while the Lime NDLL was still building, this occurred immediately (even in -verbose) when trying to build. Afterward, I am noticing this error popping up in one project (but not another?) when processing a SWF library during the build process. The build appears to work. On this same system, I have a PiratePig project that shows this error when I exit the application, but not before. Other projects exit without an error message.

With PiratePig, it appears to be an issue with alc.closeDevice, looking into it

For right now, I am using OpenAL-soft on OS X instead of OpenAL.framework. It seems that there is a crash bug (that I cannot resolve) within the Apple version of OpenAL :frowning:

I also have a crash issue occurring with one project using the SWF library. Using jpeg_decode_header against bytes results in a segmentation fault, while using a file works fine. This same code operates well on other platforms, to my knowledge. For now, I’ve made a workaround in the SWF library tools to write to a temporary file rather than running from memory, but this is frustrating.

I tried to compile at the terminal, here is the full log, maybe it can help ? I really don’t know if it’s a successful build?

Do I have to use a PC rather than a Mac?

mac:client Apple$ haxelib run lime build /Users/Apple/Documents/project/client/client/project-client.xml html5 -verbose


/_ \ __
//\ \ /_\ ___ ___ __
\ \ \ /\ \ /’ __\ /’`\
_\ _\ \ /\ /\ /\ /\ /
/_
\ _\ _\ _\ _\ _
/
/ /////////____/

Lime Command-Line Tools (2.6.8)

Initializing project…
Using project file: /Users/Apple/Documents/project/client/client/project-client.xml
Reading HXCPP config: /Users/Apple/.hxcpp_config.xml
Using target platform: HTML5

Running command: UPDATE

  • Running command: haxelib run swf process /var/folders/8g/p8wtd8g17z973rpjrz5dx4_h0000gn/T//temp_5586909 /var/folders/8g/p8wtd8g17z973rpjrz5dx4_h0000gn/T//temp_11370073 -verbose --targetDirectory=/Users/Apple/Documents/project/client/client/Export/html5
  • Detected host architecture: X64
  • Processing library: Assets/compact-projects-assets-cc.swf [SWFLite]
  • Running command: /usr/lib/haxe/lib/lime/2,6,8/templates/bin/webify-mac /Users/Apple/Documents/project/client/client/Assets/fonts/LiberationSans-Regular.ttf
    Generating /Users/Apple/Documents/project/client/client/Assets/fonts/LiberationSans-Regular.eot
    Generating /Users/Apple/Documents/project/client/client/Assets/fonts/LiberationSans-Regular.woff
    Generating /Users/Apple/Documents/project/client/client/Assets/fonts/LiberationSans-Regular.svg
    Available cmaps

PlatformId | EncodingId | Description
0 | 3 | Unicode 2.0 and onwards semantics, Unicode BMP only
0 | 4 | Unicode 2.0 and onwards semantics, Unicode full repertoire
1 | 0 | Macintosh Roman 8-bit simple
3 | 1 | Microsoft Unicode BMP (UCS-2)
3 | 10 | Microsoft Unicode UCS-4

Selecting platformId 3 encodingId 1 – Microsoft Unicode BMP (UCS-2)

  • Running command: /usr/lib/haxe/lib/lime/2,6,8/templates/bin/webify-mac "/Users/Apple/Documents/project/client/client/Assets/fonts/qarmic sans free.otf"
    Generating /Users/Apple/Documents/project/client/client/Assets/fonts/qarmic sans free.eot
    Generating /Users/Apple/Documents/project/client/client/Assets/fonts/qarmic sans free.woff
  • Running command: /usr/lib/haxe/lib/lime/2,6,8/templates/bin/webify-mac "/Users/Apple/Documents/project/client/client/Assets/fonts/qarmic sans pro.otf"
    Generating /Users/Apple/Documents/project/client/client/Assets/fonts/qarmic sans pro.eot
    Generating /Users/Apple/Documents/project/client/client/Assets/fonts/qarmic sans pro.woff
  • Running command: /usr/lib/haxe/lib/lime/2,6,8/templates/bin/webify-mac /Users/Apple/Documents/project/client/client/Assets/fonts/StrVar.ttf
    Generating /Users/Apple/Documents/project/client/client/Assets/fonts/StrVar.eot
    Failed to convert /Users/Apple/Documents/project/client/client/Assets/fonts/StrVar.ttf
    unhandled os2 version 0
  • Running command: /usr/lib/haxe/lib/lime/2,6,8/templates/bin/webify-mac /Users/Apple/Documents/project/client/client/ui/android/fonts/Arabic-font-2013.ttf
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/Arabic-font-2013.eot
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/Arabic-font-2013.woff
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/Arabic-font-2013.svg
    Available cmaps

PlatformId | EncodingId | Description
0 | 3 | Unicode 2.0 and onwards semantics, Unicode BMP only
1 | 0 | Macintosh Roman 8-bit simple
3 | 1 | Microsoft Unicode BMP (UCS-2)

Selecting platformId 3 encodingId 1 – Microsoft Unicode BMP (UCS-2)

  • Running command: /usr/lib/haxe/lib/lime/2,6,8/templates/bin/webify-mac /Users/Apple/Documents/project/client/client/ui/android/fonts/bold.ttf
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/bold.eot
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/bold.woff
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/bold.svg
    Available cmaps

PlatformId | EncodingId | Description
0 | 3 | Unicode 2.0 and onwards semantics, Unicode BMP only
1 | 0 | Macintosh Roman 8-bit simple
3 | 1 | Microsoft Unicode BMP (UCS-2)

Selecting platformId 3 encodingId 1 – Microsoft Unicode BMP (UCS-2)

  • Running command: /usr/lib/haxe/lib/lime/2,6,8/templates/bin/webify-mac /Users/Apple/Documents/project/client/client/ui/android/fonts/italic.ttf
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/italic.eot
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/italic.woff
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/italic.svg
    Available cmaps

PlatformId | EncodingId | Description
0 | 3 | Unicode 2.0 and onwards semantics, Unicode BMP only
1 | 0 | Macintosh Roman 8-bit simple
3 | 1 | Microsoft Unicode BMP (UCS-2)

Selecting platformId 3 encodingId 1 – Microsoft Unicode BMP (UCS-2)

  • Running command: /usr/lib/haxe/lib/lime/2,6,8/templates/bin/webify-mac /Users/Apple/Documents/project/client/client/ui/android/fonts/LCDFont-webfont.ttf
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/LCDFont-webfont.eot
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/LCDFont-webfont.woff
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/LCDFont-webfont.svg
    Available cmaps

PlatformId | EncodingId | Description
0 | 3 | Unicode 2.0 and onwards semantics, Unicode BMP only
1 | 0 | Macintosh Roman 8-bit simple
3 | 1 | Microsoft Unicode BMP (UCS-2)

Selecting platformId 3 encodingId 1 – Microsoft Unicode BMP (UCS-2)

  • Running command: /usr/lib/haxe/lib/lime/2,6,8/templates/bin/webify-mac /Users/Apple/Documents/project/client/client/ui/android/fonts/regular.ttf
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/regular.eot
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/regular.woff
    Generating /Users/Apple/Documents/project/client/client/ui/android/fonts/regular.svg
    Available cmaps

PlatformId | EncodingId | Description
0 | 3 | Unicode 2.0 and onwards semantics, Unicode BMP only
1 | 0 | Macintosh Roman 8-bit simple
3 | 1 | Microsoft Unicode BMP (UCS-2)

Selecting platformId 3 encodingId 1 – Microsoft Unicode BMP (UCS-2)

  • Copying file: Assets/fonts/LiberationSans-Regular.eot -> Export/html5/bin/assets/fonts/LiberationSans-Regular.eot
  • Copying file: Assets/fonts/LiberationSans-Regular.svg -> Export/html5/bin/assets/fonts/LiberationSans-Regular.svg
  • Copying file: Assets/fonts/LiberationSans-Regular.woff -> Export/html5/bin/assets/fonts/LiberationSans-Regular.woff
  • Copying file: Assets/fonts/qarmic sans free.eot -> Export/html5/bin/assets/fonts/qarmic sans free.eot
  • Copying file: Assets/fonts/qarmic sans free.woff -> Export/html5/bin/assets/fonts/qarmic sans free.woff
    Warning: Could not find generated font file “Assets/fonts/qarmic sans free.svg”
  • Copying file: Assets/fonts/qarmic sans pro.eot -> Export/html5/bin/assets/fonts/qarmic sans pro.eot
  • Copying file: Assets/fonts/qarmic sans pro.woff -> Export/html5/bin/assets/fonts/qarmic sans pro.woff
    Warning: Could not find generated font file “Assets/fonts/qarmic sans pro.svg”
  • Copying file: Assets/fonts/StrVar.eot -> Export/html5/bin/assets/fonts/StrVar.eot
    Warning: Could not find generated font file "Assets/fonts/StrVar.woff"
    Warning: Could not find generated font file “Assets/fonts/StrVar.svg”
  • Copying file: ui/android/fonts/Arabic-font-2013.eot -> Export/html5/bin/ui/android/fonts/Arabic-font-2013.eot
  • Copying file: ui/android/fonts/Arabic-font-2013.svg -> Export/html5/bin/ui/android/fonts/Arabic-font-2013.svg
  • Copying file: ui/android/fonts/Arabic-font-2013.woff -> Export/html5/bin/ui/android/fonts/Arabic-font-2013.woff
  • Copying file: ui/android/fonts/bold.eot -> Export/html5/bin/ui/android/fonts/bold.eot
  • Copying file: ui/android/fonts/bold.svg -> Export/html5/bin/ui/android/fonts/bold.svg
  • Copying file: ui/android/fonts/bold.woff -> Export/html5/bin/ui/android/fonts/bold.woff
  • Copying file: ui/android/fonts/bold.svg -> Export/html5/bin/ui/android/fonts/bold.svg
  • Copying file: ui/android/fonts/bold.woff -> Export/html5/bin/ui/android/fonts/bold.woff
  • Copying file: ui/android/fonts/italic.eot -> Export/html5/bin/ui/android/fonts/italic.eot
  • Copying file: ui/android/fonts/italic.svg -> Export/html5/bin/ui/android/fonts/italic.svg
  • Copying file: ui/android/fonts/italic.eot -> Export/html5/bin/ui/android/fonts/italic.eot
  • Copying file: ui/android/fonts/italic.woff -> Export/html5/bin/ui/android/fonts/italic.woff
  • Copying file: ui/android/fonts/italic.svg -> Export/html5/bin/ui/android/fonts/italic.svg
  • Copying file: ui/android/fonts/italic.woff -> Export/html5/bin/ui/android/fonts/italic.woff
  • Copying file: ui/android/fonts/LCDFont-webfont.eot -> Export/html5/bin/ui/android/fonts/LCDFont-webfont.eot
  • Copying file: ui/android/fonts/LCDFont-webfont.svg -> Export/html5/bin/ui/android/fonts/LCDFont-webfont.svg
  • Copying file: ui/android/fonts/LCDFont-webfont.eot -> Export/html5/bin/ui/android/fonts/LCDFont-webfont.eot
  • Copying file: ui/android/fonts/LCDFont-webfont.woff -> Export/html5/bin/ui/android/fonts/LCDFont-webfont.woff
  • Copying file: ui/android/fonts/LCDFont-webfont.svg -> Export/html5/bin/ui/android/fonts/LCDFont-webfont.svg
  • Copying file: ui/android/fonts/LCDFont-webfont.woff -> Export/html5/bin/ui/android/fonts/LCDFont-webfont.woff
  • Copying file: ui/android/fonts/regular.eot -> Export/html5/bin/ui/android/fonts/regular.eot
  • Copying file: ui/android/fonts/regular.svg -> Export/html5/bin/ui/android/fonts/regular.svg
  • Copying file: ui/android/fonts/regular.eot -> Export/html5/bin/ui/android/fonts/regular.eot
  • Copying file: ui/android/fonts/regular.woff -> Export/html5/bin/ui/android/fonts/regular.woff
  • Copying file: ui/android/fonts/regular.svg -> Export/html5/bin/ui/android/fonts/regular.svg
  • Copying file: ui/android/fonts/regular.woff -> Export/html5/bin/ui/android/fonts/regular.woff
  • Copying template file: /usr/lib/haxe/lib/lime/2,6,8/templates/html5/template/index.html -> Export/html5/bin//index.html
  • Copying template file: /usr/lib/haxe/lib/openfl/3,3,8/templates/html5/template/index.html -> Export/html5/bin//index.html
  • Copying template file: /usr/lib/haxe/lib/lime/2,6,8/templates/haxe/ApplicationMain.hx -> Export/html5/haxe/ApplicationMain.hx
  • Copying template file: /usr/lib/haxe/lib/lime/2,6,8/templates/haxe/DefaultAssetLibrary.hx -> Export/html5/haxe/DefaultAssetLibrary.hx
  • Copying template file: /usr/lib/haxe/lib/openfl/3,3,8/templates/haxe/ApplicationMain.hx -> Export/html5/haxe/ApplicationMain.hx
  • Copying template file: /usr/lib/haxe/lib/openfl/3,3,8/templates/haxe/NMEPreloader.hx -> Export/html5/haxe/NMEPreloader.hx
  • Copying template file: /usr/lib/haxe/lib/lime/2,6,8/templates/html5/hxml/debug.hxml -> Export/html5/haxe/debug.hxml
  • Copying template file: /usr/lib/haxe/lib/lime/2,6,8/templates/html5/hxml/final.hxml -> Export/html5/haxe/final.hxml
  • Copying template file: /usr/lib/haxe/lib/lime/2,6,8/templates/html5/hxml/release.hxml -> Export/html5/haxe/release.hxml
  • Copying template file: /usr/lib/haxe/lib/openfl/3,3,8/templates/html5/hxml/debug.hxml -> Export/html5/haxe/debug.hxml
  • Copying template file: /usr/lib/haxe/lib/openfl/3,3,8/templates/html5/hxml/final.hxml -> Export/html5/haxe/final.hxml
  • Copying template file: /usr/lib/haxe/lib/openfl/3,3,8/templates/html5/hxml/release.hxml -> Export/html5/haxe/release.hxml

Running command: BUILD

  • Running command: haxe Export/html5/haxe/release.hxml
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/utils/BitArray.hx:15: characters 18-22 : Array access is not allowed on format.swf.utils.BitArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/utils/BitArray.hx:62: characters 4-8 : Array access is not allowed on format.swf.utils.BitArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/utils/BitArray.hx:66: characters 4-8 : Array access is not allowed on format.swf.utils.BitArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/utils/BitArray.hx:70: characters 4-8 : Array access is not allowed on format.swf.utils.BitArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/SWFData.hx:305: characters 9-13 : Array access is not allowed on format.swf.SWFData
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/SWFData.hx:867: characters 17-21 : Array access is not allowed on format.swf.SWFData
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/SWFData.hx:914: characters 17-21 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDebugID.hx:43: characters 51-55 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDebugID.hx:44: characters 43-47 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDebugID.hx:45: characters 43-47 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDebugID.hx:46: characters 43-47 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDebugID.hx:47: characters 58-62 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDefineBitsJPEG4.hx:30: characters 6-16 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDefineBitsJPEG3.hx:30: characters 6-16 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDefineBitsJPEG2.hx:23: characters 6-16 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/data/etc/MPEGFrame.hx:146: characters 2-9 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/data/etc/MPEGFrame.hx:153: characters 2-6 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDefineSound.hx:128: characters 9-12 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDefineSound.hx:137: characters 9-12 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDefineSound.hx:146: characters 30-33 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDefineSound.hx:147: characters 30-33 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDefineSound.hx:148: characters 30-33 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDefineSound.hx:149: characters 30-33 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDefineSound.hx:151: characters 28-31 : Array access is not allowed on flash.utils.ByteArray
    /usr/lib/haxe/lib/swf/2,1,1/format/swf/tags/TagDefineSound.hx:152: characters 28-31 : Array access is not allowed on flash.utils.ByteArray