Someone7272

Q: Updated to iTunes 12.1, now iTunes crashes every time it attempts to access the internet through our internal proxy - cannot access store!

Hi,

 

Does anybody have any experience of using iTunes with a web filtering proxy? My home is using the Sophos UTM home edition to provide edge antivirus and content filtering. More information available here: http://www.sophos.com/en-us/products/free-tools/sophos-utm-home-edition.aspx

The proxy settings for the computer is set to use an automatic configuration script "WPAD" and the settings are locked by group policy and cannot be disabled or changed.

 

Now here's the problem, when launching iTunes, the iTunes prompts me to enter login details for the HTTPS proxy. That's all well and good, so I enter the login details and hit okay. But when I go to the store tab, iTunes crashes with javascriptcore.dll. This makes sense because a WPAD proxy configuration file is pretty much JavaScript code. But this should not happen, as now I cannot access the iTunes store.

Prior to iTunes 12.1, iTunes would sometimes freeze when attempting to access the store but it would eventually work.

The proxy logs are not showing that any iTunes requests were blocked, dropped or otherwise rejected.

 

Does anybody have any suggestions to get this to work again or at least work around the issue?

NOTE: Disabling the proxy is not an option because the proxy settings on the Windows computers are locked through group policy. I can however, edit the WPAD proxy configuration file and add exceptions to the proxy but I don't know where to start!

I will also post this on the Sophos UTM support forums.

Thanks in advance.

iTunes, Windows 7, iTunes version 12.1

Posted on Feb 2, 2015 6:17 AM

Close

Q: Updated to iTunes 12.1, now iTunes crashes every time it attempts to access the internet through our internal proxy - cannot acces ... more

  • All replies
  • Helpful answers

first Previous Page 4 of 8 last Next
  • by purdyjgirl,

    purdyjgirl purdyjgirl Apr 5, 2015 10:24 AM in response to aliceza
    Level 1 (10 points)
    Apr 5, 2015 10:24 AM in response to aliceza

    Thank you for posting this. Reset Cache also seems to have fixed the crashing problem for me, and was a lot simpler than all of the other suggestions.

  • by darbidDE,

    darbidDE darbidDE Apr 5, 2015 11:05 AM in response to Someone7272
    Level 1 (13 points)
    Peripherals
    Apr 5, 2015 11:05 AM in response to Someone7272

    Thank you somone7272 for posting and keeping up with this.  I do hope somebody fixes this issue.

  • by funchrist,

    funchrist funchrist Apr 8, 2015 6:48 AM in response to Morac
    Level 1 (5 points)
    Apr 8, 2015 6:48 AM in response to Morac

    same here

     

    i got itunes 64 bits on 3 different computers.

     

    as soon as I scroll too fast, crash.

     

    I am very sorry but Apple are very good at technology, but rubbish at software

  • by Fr0gPr1nce,

    Fr0gPr1nce Fr0gPr1nce Apr 8, 2015 7:48 AM in response to Someone7272
    Level 1 (0 points)
    Apr 8, 2015 7:48 AM in response to Someone7272

    Heh Someone7272,

    just wanted to come back out here and mention, for Apple's sake, what I did to get my iTunes working correctly again.  This is DEFINITELY a workaround, and not every person will be able to pull off.  You don't have to be a network administrator, but you do need to be a local administrator.

     

    Basically, my organization uses a proxy script (automatic configuration script) with an extension of .PAC.  When I downloaded and opened the file, low and behold it's just a plan text javascript file, containing a single function called

     

         function FindProxyForURL(url, host) {...

     

    The function returns a string that either says "DIRECT", or else it says "PROXY ##.###.####.##:####; PROXY ##.###.####.##:###; DIRECT" (assuming to mean, try this proxy server first, then this one, and else go direct).

     

    Since I'm a web developer and have IIS running on my local box, I just created a website to answer to the same port as the proxy script was being hosted on, and then added an entry in my HOSTS file to match the server url of where our proxy script was hosted.  Effectively this lets me locally bypass the use of the proxy (using this modified script):

     

         function FindProxyForURL(url, host)

              {

                   return "DIRECT";

              }

     

    All problems with iTunes went away after I did that.  I have full internet access with "DIRECT", so not exactly sure what functionality the proxy is adding to our corporate environment.  Our McAfee Web Gateway continues to block unauthorized URLs, so I can only guess the proxy may be getting used possibly to cache content for performance or bandwidth optimization??

  • by Morac,

    Morac Morac Apr 10, 2015 11:58 AM in response to Someone7272
    Level 1 (133 points)
    iCloud
    Apr 10, 2015 11:58 AM in response to Someone7272

    I haven't tested it yet, but iTunes 12.1.2 was just release which claims to have stability fixes in it.

  • by Someone7272,

    Someone7272 Someone7272 Apr 10, 2015 3:10 PM in response to Morac
    Level 1 (8 points)
    iTunes
    Apr 10, 2015 3:10 PM in response to Morac

    Not that this is going to be a suprise to anybody, as Apple are as useless as ever, but iTunes 12.1.2.27 DOES NOT FIX THIS PROBLEM!!!


    wrote...

         function FindProxyForURL(url, host)

         {

             return "DIRECT";

         }

     

    We have tried this previously. Even though this would mean iTunes would be blocked from accessing the internet because this would bypass the proxy, and web requests sent directly through the gateway are blocked, but iTunes still crashed the same way.

     

    wrote...

              same here

              i got itunes 64 bits on 3 different computers.

              as soon as I scroll too fast, crash.

              I am very sorry but Apple are very good at technology, but rubbish at software


    You're not having the same problem, please create your own thread. The issue regarded in this topic is not caused by scrolling too fast.


         wrote...

              Thank you for posting this. Reset Cache also seems to have fixed the crashing problem for me,

              and was a lot simpler than all of the other suggestions.


    Reset Cache does not resolve this problem, if it did for you, then you were not having the same problem.

     

    Apple sure know how to make me run a mile, I certainly won't be buying another piece of Apple hardware in my life, and I am starting to advise everybody I know against them now.

    I'm just so ****** off that a flaw of this magnitude has been allowed to exist on software that a massive company like Apple have released. I'd be embarassed, if I released software like this.


    Anyway guys, I am working on a much better workaround, based on the fact that a WPAD/PAC file is the root cause, I'm currently experimenting with using Group Policy registry keys to set the proxy settings and bypass list, eliminating the need for a WPAD file. It is much more limited in what you can do, especially if you have multiple proxies, but at least iTunes will 'work' for now. Obviously, again, you need to be a network administrator for this to be possible.

  • by Morac,

    Morac Morac Apr 15, 2015 12:13 PM in response to Someone7272
    Level 1 (133 points)
    iCloud
    Apr 15, 2015 12:13 PM in response to Someone7272

    I got a response back from Apple on my bug report saying they are having problems reproducing the problem and asking me for my pac file.  Any movement on your bug report?

  • by Someone7272,

    Someone7272 Someone7272 Apr 15, 2015 1:22 PM in response to Morac
    Level 1 (8 points)
    iTunes
    Apr 15, 2015 1:22 PM in response to Morac

    Hi Morac,

     

    There has been absolutely no activity on my bug report for over a month.

    The last response that I have had from Apple was a request for an iTunes dump file, which I have uploaded, and probably wasted my time in doing so.

    They clearly don't care unfortunately.

  • by csurguine,

    csurguine csurguine Apr 27, 2015 8:16 AM in response to Someone7272
    Level 1 (0 points)
    Apr 27, 2015 8:16 AM in response to Someone7272

    Hey Someone and Morac,

     

    I was having the exact same issue - it is absolutely the wpad causing the issues. My org uses a wpad to set the proxy server. I was able to hardcode the proxy in my Internet Options, which bypasses the wpad. Of course, this comes back to being local admin, which many aren't.

     

    So even though it wasn't resolved from an iTunes, you did help me find a workaround.

     

    I did submit my own independent bug report - maybe if enough distinct users submit them, they'll consider fixing whatever's broken with how the wpad is handled..

  • by Someone7272,

    Someone7272 Someone7272 Apr 29, 2015 5:30 PM in response to csurguine
    Level 1 (8 points)
    iTunes
    Apr 29, 2015 5:30 PM in response to csurguine

    Hi ,

     

         You wrote...

              I was having the exact same issue - it is absolutely the wpad causing the issues.

              My org uses a wpad to set the proxy server. I was able to hardcode the proxy in my

              Internet Options, which bypasses the wpad. Of course, this comes back to being

              local admin, which many aren't.

     

              So even though it wasn't resolved from an iTunes, you did help me find a workaround.

     

              I did submit my own independent bug report - maybe if enough distinct users submit them,

              they'll consider fixing whatever's broken with how the wpad is handled..

            

    I was considering attempting this, but using registry to set the proxy in Internet Options explicitly, this does not allow you to use different proxies depending on the destination. Additionally, it does not allow you to bypass the proxy for certain destinations as can be done in a WPAD file.

     

    Here is the latest update from Apple Developer Relations:

    latest_update.fw.png

    Sorry I haven't been responding for a while, our web proxy encountered a massive issue with HTTPS filtering which I have only just been able to workaround.

    This is in no way connected to the bug in iTunes.

  • by JustAnotherItunesUser,

    JustAnotherItunesUser JustAnotherItunesUser May 4, 2015 6:58 AM in response to Someone7272
    Level 1 (0 points)
    May 4, 2015 6:58 AM in response to Someone7272

    Hello,

     

    Thanks for this detailed post. FYI, we ran into exactly the same problem in our company. I opened another bug report with Apple and attached our WPAD file.

     

    Thanks for the detailed description and analysis, you definitely saved me a lot of time!

  • by darbidDE,Helpful

    darbidDE darbidDE May 8, 2015 1:23 AM in response to Someone7272
    Level 1 (13 points)
    Peripherals
    May 8, 2015 1:23 AM in response to Someone7272

    I just updated to 12.1.2.27.  Now without notice iTunes just closes.  Before I got an error window (I think an unhandled exception error).

     

    So maybe things are happening on "the error they cannot reproduce" as they are now catching the error. :-)

  • by Someone7272,

    Someone7272 Someone7272 May 8, 2015 1:25 AM in response to darbidDE
    Level 1 (8 points)
    iTunes
    May 8, 2015 1:25 AM in response to darbidDE

    Thanks everybody for all the support so far. I wasn't expecting this topic to take off like it has.

     

    I'm going to run software updates for all my software later today including iTunes, but I'm disappointed to hear that the problem has not completely been resolved.

     

    wrote...

              I just updated to 12.1.2.27.  Now without notice iTunes just closes. 

              Before I got an error window (I think an unhandled exception error).

     

              So maybe things are happening on "the error they cannot reproduce"

              as they are now catching the error. :-)


    This tells me that they are indeed catching the exception generated, rather than letting Windows stop the program, but it's not a satisfactory solution.

    If you work in programming, or are a programming student, you'll understand the text below.

     

    What you're describing sounds like the exception is being caught but not dealt with (hence the term 'unhandled') which still results in iTunes being forced closed. If an exception occurs which means that the program cannot continue, then you are supposed to display a (helpful!!) message to the user, and allow the program to end gracefully.

    This just sounds like iTunes is being forced-terminated with a generic unhandled exception message. Very helpful(!). It's equivalent to a Visual C++ Runtime error, which I'm sure a lot of you have seen. The Visual C++ Runtime would terminate the program forcefully.

     

    EDIT: Oh. I wonder if iTunes still is written in Visual C++

    (Not my screenshot, RuneScape is awful, and who still uses Windows XP on a non-virtual machine! Probably an old screenshot.)

     

    Apple now have access to mine and others' WPAD files, so I'm glad that they're making progress but still disappointed, because this problem should not have existed in the first place! Prior to iTunes 12, everything was fine! Don't try and fix something that isn't broken Apple!

  • by darbidDE,

    darbidDE darbidDE May 8, 2015 1:34 AM in response to Someone7272
    Level 1 (13 points)
    Peripherals
    May 8, 2015 1:34 AM in response to Someone7272

    Yes you are right.  It appears that the error was unhandled, but now is being caught by some application / general exception handlers.  Because there is no helpful message it still means they have no idea where or what is exactly happening.  But maybe there is now a log which will show more info????

  • by pryankster,

    pryankster pryankster May 8, 2015 10:49 AM in response to darbidDE
    Level 1 (0 points)
    May 8, 2015 10:49 AM in response to darbidDE

    I hate to be a "me too" guy, but I've been having this problem as well.  My company uses a .pac file (set in the internet options) to access internal resources through a proxy.  All non-internal resources are DIRECT.  The only way I can get iTunes to access the internet (store, updates, etc.) is if I disable the PAC file in internet settings, otherwise near instant crash (loading up Visual Studio debugger shows the crash in JavaScriptCore.dll.

     

    iTunes Version: 12.1.2.27

    My System (note likely relevant, but..): Win8.1 x64, Lenovo W530, Corei7 3840QM, 32GB RAM, 1T SSD, nVidia K200M + intel HD 4000

     

    -- pryankster

first Previous Page 4 of 8 last Next