I have had this happen before but don't recall what it was. I found it by 
inserting some debug code to dump the contents of that buffer around the 
offending index. I had a note to bring this up with Alon but I seem to have 
lost it.

Good luck!

 - Bruce

Sent from my iPhone

> On Oct 17, 2014, at 7:56 PM, Jukka Jylänki <[email protected]> wrote:
> 
> Do you have steps to repro?
> 
> 2014-10-17 9:44 GMT+03:00 wolfviking0 <[email protected]>:
>> Hi, I just update the last incoming branch and one of my sample in WebCL 
>> give me this error when I build.
>> 
>> Any idea ?
>> 
>> Traceback (most recent call last):
>>   File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emscripten.py", line 
>> 1597, in <module>
>>     _main(environ=os.environ)
>>   File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emscripten.py", line 
>> 1585, in _main
>>     temp_files.run_and_clean(lambda: main(
>>   File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/tools/tempfiles.py", 
>> line 39, in run_and_clean
>>     return func()
>>   File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emscripten.py", line 
>> 1593, in <lambda>
>>     DEBUG_CACHE=DEBUG_CACHE,
>>   File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emscripten.py", line 
>> 1480, in main
>>     jcache=jcache, temp_files=temp_files, DEBUG=DEBUG, 
>> DEBUG_CACHE=DEBUG_CACHE)
>>   File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emscripten.py", line 
>> 913, in emscript_fast
>>     %s''' % (mem_init.count(',')+1, global_initializers, mem_init)) # XXX 
>> wrong size calculation!
>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 261764: 
>> ordinal not in range(128)
>> Traceback (most recent call last):
>>   File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/emcc", line 1269, in 
>> <module>
>>     final = shared.Building.emscripten(final, append_ext=False, 
>> extra_args=extra_args)
>>   File "/Volumes/APPLE_MEDIA/WORKSPACE/webcl/emscripten/tools/shared.py", 
>> line 1464, in emscripten
>>     assert os.path.exists(filename + '.o.js'), 'Emscripten failed to 
>> generate .js'
>> AssertionError: Emscripten failed to generate .js
>> make: *** [attractor_sample] Error 1
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "emscripten-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to