tag:tenfourfox.tenderapp.com,2012-01-07:/discussions/problems/7505-problems-uploading-to-facebookTenFourFox: Discussion 2016-11-13T03:14:39Ztag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-13T00:36:50Z2015-11-13T00:36:50ZProblems uploading to facebook<div><p>Can you be more specific?</p></div>Cameron Kaisertag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-13T01:06:36Z2015-11-13T01:06:38ZProblems uploading to facebook<div><p>when I goto click the file (e.g. Photo or Video) the animation
comes up but sits their and never uploads. As I said safari 4.1.3
works great. It's something to do with the browser or communication
between facebook and the browser not sure. I'll attach a photo
below.</p></div>Brian Szemontag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-13T01:11:19Z2015-11-13T01:11:22ZProblems uploading to facebook<div><p>On another note the only type of file I can upload successfully
is a .png photo image .jpg will not upload.</p></div>Brian Szemontag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-13T05:37:05Z2015-11-13T05:37:05ZProblems uploading to facebook<div><p>I see this, too, but it's also in 38.3. Started this week and I
suspect it's a change Facebook introduced. I reported the problem
to FB yesterday. Also, I'll do more tests with Firefox 38
ESR/Windows.</p></div>Chris (chtrusch)tag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-13T12:24:47Z2015-11-13T12:26:21ZProblems uploading to facebook<div><p>OK, let's see:</p>
<p>TFF 17: Works without problems for uploading jpgs.</p>
<p>TFF 38.3/38.2.1: Uploading jpgs doesn't work. It used to work
until (at least) Oct. 22, that's when I last uploaded pictures to
FB with TFF 38.x. Spoofing a FF useragent doesn't work, either.</p>
<p>FF 38.4 Win: uploading .jpg results in an error message overlay,
however the image is uploaded. A test of Mac-FF 38.4 is
necessary.</p>
<p>TFF 38.4: Uploading jpgs doesn't work. Uploading pngs does work.
Renaming a jpg to png (or tif) and then uploading it also works.
Facebook just doesn't like the jpg suffix, there is no technical
reason and nothing actually broken on our side, I think. Maybe some
upload filter/security mechanism? Until this is sorted out by FB,
just rename pictures to .png (it doesn't matter, FB recompresses
them anyway).</p></div>Chris (chtrusch)tag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-13T15:03:12Z2015-11-13T15:03:12ZProblems uploading to facebook<div><p>Chris, is there anything in the console of note (Brian: you can
check yourself by going to Tools > Web Developer > any of Web
Console, Network or Browser Console -- don't post the whole thing,
please, just anything that appears there at the moment you try to
upload an image)?</p></div>Cameron Kaisertag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-13T16:44:56Z2015-11-13T16:44:57ZProblems uploading to facebook<div><p>Web Console:<br>
TypeError: asm.js type error: AsmJS not currently supported on
PowerPC<br>
"Assertion failed: Typed arrays 2 must be run on a little-endian
system" "Assertion failed: Typed arrays 2 must be run on a
little-endian system" Use of getAttributeNode() is deprecated. Use
getAttribute() instead.</p>
<p>Network:<br>
<a href="https://3-edge-chat.facebook.com/pull?channel">https://3-edge-chat.facebook.com/pull?channel</a><br>
Type: json<br>
over 50000ms<br>
this seems to be the problem as it repeats in the network console
over and over.<br>
~Photo is attached</p></div>Brian Szemontag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-13T18:18:41Z2015-11-13T18:24:47ZProblems uploading to facebook<div><p>I get the same console messages about PPC and little endian, but
I get them all over the place: when loading my profile page (most
of the time), on the messages page, sometimes when loading the
Timeline. They don't seem to be related to uploading files. I do
get these also when uploading a file for the first time, more
precisely when the dialog opens that lets you choose the file from
your computer. At this stage, FB doesn't yet know that I want to
upload a jpg. Uploading itself (after selecting the file) doesn't
give me any additional console message at all, no matter if it's
jpg or png.</p>
<p>I get these longer timings in Network (1500-5000 ms) for
<a href="https://xxx-edge-chat.facebook.com">https://xxx-edge-chat.facebook.com</a>
even if I don't try to upload anything. They seem to be related to
the chat.</p>
<p>BTW Facebook has a cool console message right after loading
pages, see picture attached.</p></div>Chris (chtrusch)tag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-13T18:31:36Z2015-11-13T18:31:38ZProblems uploading to facebook<div><p>I use my G4 7450 Mac Mini everyday Went as far as upgrading the
ram to 1GB myself just because apple and others say my mac is
obsolete I don't think so, Eventually I will have to upgrade to an
Intel mac that though is disturbing lol. As far as TenFour Fox goes
have had minor hickups but nothing as big as this.</p></div>Brian Szemontag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-15T15:05:34Z2015-11-15T15:05:34ZProblems uploading to facebook<div><p>Same here. The problem with Facebook came up first at 11th of
november 2015. It happens (to me) in only one situation: When
trying to add an additional image to a link-posting. After choosing
the image, nothing happens: no upload - but instead the console is
fireing up some messages about "asm.js is not supported on
powerpc". All other cases of uploading images and videos are
working fine - and asm.js is not even mentioned in the console.</p>
<p>I reported the problem to Facebook. But I got no reaction,
because I really didn't know what the exact reason of the problem
is.</p>
<p>Thanks a lot to Chris: Changing the image suffix from JPG to PNG
fixes it.</p>
<p>TenFourFox 38.4.0, Mac OSX 10.4.11, 1.5 GHz PowerPC G4, Mac
Mini</p></div>Juergentag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-15T21:31:24Z2015-11-15T21:31:24ZProblems uploading to facebook<div><p>The 50000ms timeout isn't the problem, that's Facebook Chat.</p>
<p>The asm.js issue <em>could</em> be the problem, but if it is,
there's no solution. The JavaScript engine is altered so that
asm.js simply falls back on the regular JIT (with a warning, as you
see). The reason I wrote it that way is because virtually all of
the asm.js out there assumes a little endian byte order, and Power
Macs are big endian, so there was no point in trying to optimize
something that won't run correctly on our systems in the first
place. In fact, the assertions it throws indicate that Facebook's
code is doing exactly that. There is no way around this because
there's currently no way to know the inherent endianness of the
asm.js code it's trying to run.</p>
<p>Facebook should have a fallback here, but my suspicion is that
they see Firefox, and mistakenly assume it's Firefox on x86 or
little-endian ARM. If you change the user agent to Safari, which
does not have asm.js support, does it act differently?</p></div>Cameron Kaisertag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-16T11:51:34Z2015-11-16T11:52:52ZProblems uploading to facebook<div><p>This doesn't make a difference (Safari 6 on Mac OS X 10.7).</p></div>Chris (chtrusch)tag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-16T14:45:52Z2015-11-16T14:45:52ZProblems uploading to facebook<div><p>Then we need three more data points:</p>
<ul>
<li>38ESR on Intel Mac</li>
<li>Current Firefox on Intel Mac</li>
<li>Current Firefox on PPC Linux</li>
</ul>
<p>If there is a difference between the first two, then it's a
change between 38 and current I need to investigate.</p>
<p>If the first two work but the third doesn't, it's probably the
endianness issue.</p>
<p>If they all work, then it's a local bug I introduced somewhere
(possibly another JIT edge case).</p></div>Cameron Kaisertag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-16T14:49:35Z2015-11-16T14:49:35ZProblems uploading to facebook<div><p>Actually, before all that: if you disable the JIT (turn off
baseline, turn off ion, turn off native regexp), does it work? Any
combination that it does work? (Baseline on, Ion off, ... ?)</p></div>Cameron Kaisertag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-16T15:33:00Z2015-11-16T15:33:00ZProblems uploading to facebook<div><p>Still doesn't upload with the JIT disabled completely or in
combinations.</p>
<p>I won't have the chance to get my hands on an Intel Mac (at
least not one I can install software on) until the next
weekend.</p></div>Chris (chtrusch)tag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-16T18:19:12Z2015-11-28T20:13:56ZProblems uploading to facebook<div><p>Thanks for trying to work out the bug or kink in whatever is
going on. I have been gone my job takes me all around wish I could
help further the effort but this is the only machine I have hope
something sheds light on this.</p></div>Brian Szemontag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-20T11:42:04Z2015-11-20T11:42:07ZProblems uploading to facebook<div><p>I have still not found anything and have reported the problem
detailed to facebook with out much response. Wonder if a script
could be written to automatically change .jpg to .png to spoof the
system with out user involvement?</p></div>Brian Szemontag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-20T15:39:14Z2015-11-20T15:39:14ZProblems uploading to facebook<div><p>Until this can be solved if it even can be, I still think it's
on facebooks end I just found out how to export photos from iPhoto
to .png and things are working that way. Thank you both for trying
to solve this.</p></div>Brian Szemontag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-22T17:29:43Z2015-11-22T17:29:45ZProblems uploading to facebook<div><hr>
<h2>
<a name="cameron-asked-if-you-change-the-user-agent-to-safari-which-does-not-have-asm-js-support-does-it-act-differently-" href="#cameron-asked-if-you-change-the-user-agent-to-safari-which-does-not-have-asm-js-support-does-it-act-differently-" class="anchor">
</a>Cameron asked: If you change the user agent to Safari, which
does not have asm.js support, does it act differently?</h2>
<p>The latest native PPC Safari version 4.1.3 doesn't have the
reported problem: JPG-upload to Facebook linkposts works fine.<br>
This version is not listed by default in the user agent list of
TenFourFox. Someone with more knowledge than me in editing user
agent profiles should test it.</p>
<p>However: Like Chris mentioned - changing the image suffix in the
finder before the upload from JPG to PNG fixes it. Upload works
fine. Facebook doesn't care, if the image is in fact a JPG.</p></div>Juergentag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-22T22:58:15Z2015-11-22T22:58:15ZProblems uploading to facebook<div><p>That's not what I asked. If changing the user agent fixes it,
then we know Facebook is sniffing the user agent and sending code
we're not compatible with.</p>
<p>Since the JIT does not appear to be to blame, we now need a data
point from someone on PPC Linux Firefox to know if it's an endian
issue.</p></div>Cameron Kaisertag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-11-28T22:23:47Z2015-11-28T22:23:47ZProblems uploading to facebook<div><p>This has been frustrating me for a few weeks. Converting /
changing file type to .png is a quick and simple fix. Just to be on
the safe side, I opened each of the pics I wanted to upload and
saved as a separate file using .png so I would not lose the .jpg
files. Thanks for the tip Brian Szemon & Chris (chtrusch). (;
></p></div>bobbymacbeantag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-12-26T10:57:51Z2015-12-26T10:57:52ZProblems uploading to facebook<div><p>This is most probably an endian issue indeed, because the same
thing does also happen when trying to upload to facebook using
leopard-webkit on PPC machines.</p>
<p>@Cameron Kaiser: I think the only solution would be to emulate
little endian typed arrays. In WebKit I had already done this once
but reverted it because it broke WebGL (or would at least slow it
down because of at least one byte order conversion on the way to
the GPU). Maybe I'll have to rethink that decision and discard fast
WebGL in favour of emulating little endian typed arrays - after all
WebGL is not that important.<br>
My investigations regarding this problem revealed that in order to
circumvent endian issues one simply has to interpret "little
endian" as "native endian" and "big endian" as "non-native endian"
- and in fact that seems to be the way single endian programmers
understand "little" and "big endian".<br>
In leopard-webkit I implemented this change for accessing an
ArrayBuffer using DataView; the second (optional) argument to
DataView's setters and getters is interpreted as "native endian"
(specification says "little endian"), defaulting to "non-native
endian" (specification says "big endian"). That change, while
potentially not providing best speed because of defaulting to
"non-native" instead of "big" endian, makes DataView API
independent from CPU endianness - provided the ArrayBuffer is
accessed through DataView exclusively. That way most (if not all)
endianness issues in test suites were fixed successfully - after
all knowing the exact endianness does only really matter when data
needs to be interchanged between different cores (like different
types of CPUs and/or GPUs) using all sort of interfaces (like PCI,
UART, Ethernet, ...); when dealing with data on one CPU only (or a
single virtual machine, like a JavaScript engine) native or
non-native byte order should be all you need to know (or be able to
specify) in almost any case.</p></div>Tobias Netzeltag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-12-26T23:31:37Z2015-12-26T23:31:37ZProblems uploading to facebook<div><p>That seems logical. I'll probably need to make analogous changes
to both the JIT and interpreter. I'm not sure I'd like to do this
as a running change with 38.</p></div>Cameron Kaisertag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332015-12-31T16:17:36Z2015-12-31T16:17:37ZProblems uploading to facebook<div><p>I can confirm that facebook upload does work properly in
leopard-webkit after changing TypedArrayViews to always read and
write values in little endian byte order. There's no need to change
the byte order of the ArrayBuffer itself. I guess facebook uses the
typed arrays to parse EXIF data (like GPS coordinates).<br>
As a consequence I removed my changes to DataView; having
endianness swapped in both DataView and TypedArrayViews leads to
confusion (like endianness tests detecting the byte order as big
endian again).<br>
Of course the change broke WebGL - might not be easy to fix that in
WebKit, but that's no problem for TFF.<br>
Depending on the implementation changing the endianness of
TypedArrayViews might affect a number of APIs like WebGL, Canvas,
FileReader, WebSockets, WebRTC, Web Workers and Web Audio -
JavaScript typed arrays seem to become more and more important.</p></div>Tobias Netzeltag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332016-03-01T10:43:40Z2016-03-01T10:43:40ZProblems uploading to facebook<div><p>This problem has now been fixed by Facebook.</p></div>Chris (chtrusch)tag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332016-03-05T23:25:39Z2016-03-05T23:25:39ZProblems uploading to facebook<div><p>Working again in leopard-webkit, too - without TypedArrayViews
reading/writing little endian data. (That was my only test case for
testing TypedArrayView's endianness...)</p></div>tobias.netzeltag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332016-03-06T03:50:25Z2016-03-06T03:50:25ZProblems uploading to facebook<div><p>There was still some issues with the ChaCha polyfill for
WhatsApp, so that might be the next place to try.</p>
<p>I'll leave this open for the moment, though.</p></div>Cameron Kaisertag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332016-03-22T16:35:35Z2016-03-22T16:35:36ZProblems uploading to facebook<div><p>It's working again I'm uploading .jpg to facebook no more
needing to convert to .png thank you for the fix and I'm happy I
could help out a bit with this after all tenfourfox saved my ppc
mac from just being shelved or turned into a server. Thank You very
much :)</p></div>Brian Szemontag:tenfourfox.tenderapp.com,2012-01-07:Comment/384516332016-11-13T03:14:37Z2016-11-13T03:14:37ZProblems uploading to facebook<div><p>Just as a followup, if Facebook uses the original code again, it
has been repaired in 45.5.0 which is now available as a release
candidate on <a href="http://tenfourfox.blogspot.com/">http://tenfourfox.blogspot.com/</a>
. Therefore, I'm going to close this ticket. If there are future
problems related to uploading images to Facebook, please open a
<em>new</em> ticket instead of using this one.</p></div>Cameron Kaiser