Skip to main content
April 1, 2011
Question

HelloWorld: HTMLLoader failed to initialize on MAC OSX

  • April 1, 2011
  • 9 replies
  • 2855 views

Hi All...

Just Started Playing with AIR. Installed the runtime and the latest jdk on a Mac running OSX 10.6.7.

Following the AIR 1.5 HTML Docs, attempted to run the HelloWorld application.

I copied and pasted the HelloWorld-app.xml content and HelloWorld.html content into their respective files. Copied also the AIRAliases.js to the HelloWorld folder and used the command line tools as indicated:

adl HelloWorld-app.xml

The commend executes, but what I get is the following, both on the console and on an ActionScript error window:

Error: HTMLLoader failed to initialize
        at flash.html::HTMLLoader/initHTMLEngine()
        at flash.html::HTMLLoader()
        at runtime::ContentPlayer/loadInitialContent()
        at runtime::ContentPlayer/playRawContent()
        at runtime::ContentPlayer/playContent()
        at runtime::AppRunner/run()
        at ADLAppEntry/run()
        at global/runtime::ADLEntry()

After dismissing the error window, the HellowWorld app window appears, but with no content.

I was unable to find any pointers to what is wrong, and where... I know that HelloWorld.html is being read because if i remove the file, i get a different complain, about it being missing... Also, if I remove all it's content, i don't get the error, but I also don't get the app window.

Any clues?

Thanks!

This topic has been closed for replies.

9 replies

lagerkoller
Participant
February 20, 2012

Mmmh, I reformatted my HD. Now I 'only' use Mac OS Extended (Journaled) without case sensitivity and the WebKit-based HTMLLoader works again. Seems like HTMLLoader has a problem with case sensitivity in file names.

chris.campbell
Legend
February 22, 2012

We did have a problem with the actual WebKit library and case sensitivity, but that should have been fixed a while back.  Would you mind adding a new bug on this over at bugbase.adobe.com?

Thanks,

Chris

lagerkoller
Participant
February 17, 2012

hi,

is there already an answer what caused this error? i get a pretty similar error:

Error: HTMLLoader failed to initialize

          at flash.html::HTMLLoader/initHTMLEngine()

          at flash.html::HTMLLoader()

          at de.johannesluderschmidt.emil.ui::BrowserContent()[/Users/johannes/Documents/Adobe Flash Builder 4.5/EMILUIFramework/src/de/johannesluderschmidt/emil/ui/BrowserContent.as:39]

my code used to work before i changed two things on my mac:

- i exchanged my harddrive, which is now formatted in Mac OS Extended (Case-sensitive, Journaled)

- i updated from 10.6.8. to 10.7.3

as you can see the path to the project has spaces. do you think that this causes the problems?

i use flash builder 4.5 and adobe air 3.1

Participant
July 14, 2011

I had the same problem on my Mac with case-sensitive filesystem. I tried moving the Flex SDK and the app to a disk image with case-insensitive filesystem and it worked fine. So it seems that yet another Adobe product suffers from sloppy spelling in the code (Adobe Reader being another example).

April 6, 2011

It is definitely something related to the Mac...Neither the HelloWorld nor pretty much any of the sample applications from

I installed windows xp on VirtualBox and then the SDK there, and the same HelloWorld-app.xml and related files work propperly.

So, the crossplatformness is not working this time...

Any clues as to what I can do to fix the issue on the Mac?

Adobe Employee
April 18, 2011

Hi,

Your issue might be related to another issue that we are currently investigating and trying to reproduce in house. Can you send us your test app? You can either put it on an external file server or if it's simple enough just paste the code in a reply.

Regarding your configuration, by latest air runtime and sdk you are referring to AIR 2.6?

Thanks,

--Catalin

April 1, 2011

Also. I tried packaging the application and was able to generate a HelloWorld.air package. When i run it, the application crashes.

I also downloaded some of the AIR applications offered by adobe on the SDK download window. Some run, some crash... The AOL Videos app crashes after the splash window, in a similar way that the HelloWorld.air app crashes...

Here is the first part error from the crash window... I can paste the whole thing, but it is very lengthy:

Process:         HelloWorld [1165]
Path:            /Users/me/ME's Applications/HelloWorld.app/Contents/MacOS/HelloWorld
Identifier:      examples.html.HelloWorld.1AF9A0824893844D8B6FA46EE87A19B2D2F3FA90.1
Version:         0.1 (???)
Code Type:       X86 (Native)
Parent Process:  launchd [186]

Date/Time:       2011-04-01 14:17:33.749 -0600
OS Version:      Mac OS X 10.6.7 (10J869)
Report Version:  6

Interval Since Last Report:          62855 sec
Crashes Since Last Report:           5
Per-App Interval Since Last Report:  1 sec
Per-App Crashes Since Last Report:   2
Anonymous UUID:                      8D9B3548-226F-4FAE-A57A-53C75B5EF89E

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000004
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

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

0   com.adobe.AIR                     0x029a0ea8 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1131149
1   com.adobe.AIR                     0x02a6a77f r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1956708
2   ???                               0x13e71651 0 + 333911633
3   com.adobe.AIR                     0x027f1490 XC_RSA_Decrypt_Zeroes_Coding_Lithium + 1798784
4   com.adobe.AIR                     0x027f1edf XC_RSA_Decrypt_Zeroes_Coding_Lithium + 1801423
5   com.adobe.AIR                     0x0275e0f2 XC_RSA_Decrypt_Zeroes_Coding_Lithium + 1195746
6   com.adobe.AIR                     0x02a8f4d1 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 2107574
7   com.adobe.AIR                     0x02a8f50d r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 2107634
8   com.adobe.AIR                     0x02a75cd6 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 2003131
9   com.adobe.AIR                     0x02a75f39 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 2003742
10  com.adobe.AIR                     0x02a762b9 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 2004638
11  com.adobe.AIR                     0x02a764df r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 2005188
12  com.adobe.AIR                     0x02b54dfd r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 2916834
13  com.adobe.AIR                     0x02b55335 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 2918170
14  com.adobe.AIR                     0x02b5571a r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 2919167
15  com.adobe.AIR                     0x02b689c6 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 2997675
16  com.adobe.AIR                     0x02b68b76 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 2998107
17  com.adobe.AIR                     0x02beb7d2 shaders_acos_ss + 320242
18  com.adobe.AIR                     0x028e5f2e r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 365331
19  com.adobe.AIR                     0x028e6073 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 365656
20  com.adobe.AIR                     0x02b78354 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 3061561
21  com.adobe.AIR                     0x02b784e4 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 3061961
22  com.adobe.AIR                     0x0256ddf4 0x255a000 + 81396
23  com.adobe.AIR                     0x025708d7 0x255a000 + 92375
24  ???                               0x1359024f 0 + 324600399
25  ???                               0x1359121c 0 + 324604444
26  ???                               0x13512ca8 0 + 324086952
27  ???                               0x13517994 0 + 324106644
28  ???                               0x13517fc8 0 + 324108232
29  com.adobe.AIR                     0x027f1490 XC_RSA_Decrypt_Zeroes_Coding_Lithium + 1798784
30  com.adobe.AIR                     0x027f1edf XC_RSA_Decrypt_Zeroes_Coding_Lithium + 1801423
31  com.adobe.AIR                     0x02a71bfd r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1986530
32  com.adobe.AIR                     0x02a71d1c r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1986817
33  com.adobe.AIR                     0x02576a00 0x255a000 + 117248
34  com.adobe.AIR                     0x02569109 0x255a000 + 61705
35  com.adobe.AIR                     0x02569288 0x255a000 + 62088
36  com.apple.Foundation              0x97a3e9d5 __NSFireDelayedPerform + 537
37  com.apple.CoreFoundation          0x91b51adb __CFRunLoopRun + 8059
38  com.apple.CoreFoundation          0x91b4f464 CFRunLoopRunSpecific + 452
39  com.apple.CoreFoundation          0x91b4f291 CFRunLoopRunInMode + 97
40  com.apple.HIToolbox               0x995c2e04 RunCurrentEventLoopInMode + 392
41  com.apple.HIToolbox               0x995c2af5 ReceiveNextEventCommon + 158
42  com.apple.HIToolbox               0x995c2a3e BlockUntilNextEventMatchingListInMode + 81
43  com.apple.AppKit                  0x9121378d _DPSNextEvent + 847
44  com.apple.AppKit                  0x91212fce -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
45  com.apple.AppKit                  0x911d5247 -[NSApplication run] + 821
46  com.adobe.AIR                     0x0255ed2c 0x255a000 + 19756
47  com.adobe.AIR                     0x0255f072 0x255a000 + 20594
48  ...D8B6FA46EE87A19B2D2F3FA90.1    0x00002ff7 start + 4363
49  ...D8B6FA46EE87A19B2D2F3FA90.1    0x00001fe7 start + 251
50  ...D8B6FA46EE87A19B2D2F3FA90.1    0x00001f15 start + 41

Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib                 0x9756b922 kevent + 10
1   libSystem.B.dylib                 0x9756c03c _dispatch_mgr_invoke + 215
2   libSystem.B.dylib                 0x9756b4f9 _dispatch_queue_invoke + 163
3   libSystem.B.dylib                 0x9756b29e _dispatch_worker_thread2 + 240
4   libSystem.B.dylib                 0x9756ad21 _pthread_wqthread + 390
5   libSystem.B.dylib                 0x9756ab66 start_wqthread + 30

Thread 2:
0   libSystem.B.dylib                 0x9756a9b2 __workq_kernreturn + 10
1   libSystem.B.dylib                 0x9756af48 _pthread_wqthread + 941
2   libSystem.B.dylib                 0x9756ab66 start_wqthread + 30

Thread 3:
0   libSystem.B.dylib                 0x975450e2 semaphore_wait_signal_trap + 10
1   libSystem.B.dylib                 0x97572c9c _pthread_cond_wait + 1089
2   libSystem.B.dylib                 0x975bb45f pthread_cond_wait + 48
3   com.adobe.AIR                     0x02a5e805 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1907690
4   com.adobe.AIR                     0x028ad14a r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 132399
5   com.adobe.AIR                     0x02a5e8e9 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1907918
6   com.adobe.AIR                     0x02a5e963 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1908040
7   com.adobe.AIR                     0x02a5e9fe r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1908195
8   libSystem.B.dylib                 0x975727fd _pthread_start + 345
9   libSystem.B.dylib                 0x97572682 thread_start + 34

Thread 4:
0   libSystem.B.dylib                 0x975450e2 semaphore_wait_signal_trap + 10
1   libSystem.B.dylib                 0x97572c9c _pthread_cond_wait + 1089
2   libSystem.B.dylib                 0x975bb45f pthread_cond_wait + 48
3   com.adobe.AIR                     0x02a5e805 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1907690
4   com.adobe.AIR                     0x028ad14a r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 132399
5   com.adobe.AIR                     0x02a5e8e9 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1907918
6   com.adobe.AIR                     0x02a5e963 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1908040
7   com.adobe.AIR                     0x02a5e9fe r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1908195
8   libSystem.B.dylib                 0x975727fd _pthread_start + 345
9   libSystem.B.dylib                 0x97572682 thread_start + 34

Thread 5:
0   libSystem.B.dylib                 0x975450fa semaphore_timedwait_signal_trap + 10
1   libSystem.B.dylib                 0x97572c85 _pthread_cond_wait + 1066
2   libSystem.B.dylib                 0x975a1aa8 pthread_cond_timedwait_relative_np + 47
3   com.adobe.AIR                     0x02a5e847 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1907756
4   com.adobe.AIR                     0x02a717a8 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1985421
5   com.adobe.AIR                     0x02a5e8e9 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1907918
6   com.adobe.AIR                     0x02a5e963 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1908040
7   com.adobe.AIR                     0x02a5e9fe r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1908195
8   libSystem.B.dylib                 0x975727fd _pthread_start + 345
9   libSystem.B.dylib                 0x97572682 thread_start + 34

Thread 6:
0   libSystem.B.dylib                 0x975450fa semaphore_timedwait_signal_trap + 10
1   libSystem.B.dylib                 0x97572c85 _pthread_cond_wait + 1066
2   libSystem.B.dylib                 0x975a1aa8 pthread_cond_timedwait_relative_np + 47
3   com.adobe.AIR                     0x02a5e847 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1907756
4   com.adobe.AIR                     0x02b6e93b r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 3022112
5   com.adobe.AIR                     0x02a5e8e9 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1907918
6   com.adobe.AIR                     0x02a5e963 r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1908040
7   com.adobe.AIR                     0x02a5e9fe r_0sxkwv70f9yg6kbm41b3d14u0dvqsem0nnvh83 + 1908195
8   libSystem.B.dylib                 0x975727fd _pthread_start + 345
9   libSystem.B.dylib                 0x97572682 thread_start + 34

Thread 0 crashed with X86 Thread State (32-bit):
  eax: 0x00000000  ebx: 0x029a0e11  ecx: 0x0003ce90  edx: 0x13f71154
  edi: 0xbfffd19c  esi: 0x13f710d0  ebp: 0xbfffd1b8  esp: 0xbfffd170
   ss: 0x0000001f  efl: 0x00010246  eip: 0x029a0ea8   cs: 0x00000017
   ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
  cr2: 0x00000004