4 Replies Latest reply on Mar 22, 2014 9:46 AM by davidsan

    Long report crashes in Windows 7




      I am doing a very complex report. It is about 300 pages. It includes graphics and it is filled with information from many tables.


      The report is correctly generated by all the machines in the business except one. There is no problem in Mac or in Windows XP machines. However, there is a Windows 7 machine that even though generates the report correctly has a very strange behavior. Once the first page of the report appears (very quickly by the way), if I take the horizontal scrollbar in the Rolodex to the last page, FileMaker shows the blue disc on the poining cursor (while calculating all the pages to last one), then a minute later FileMaker title bar changes to "Does not respond" and a minute later FileMaker Pro says "Host comunication to the server was interrupted and it could not be restablished".


      If I go over the pages 20 by 20 or 50 by 50 it does not hang up and it does not lose the comunication.


      Last week I updated the Windows 7 operating system with some patch from Microsoft and the report started to work fine. This week, after another patch from Microsoft, the issue reappear. It seems like the component in Windows 7 that determines if a program is frozen or in a long task it is not properly recognizing a long FileMaker Pro task. I can see how the % of processor Filemaker uses suddenly drops to 0 after about two minutes. So it seems Windows 7 is shuting down FileMaker because it determines it is a malfunctioning program.


      Does anyone have any experience in a situation like this? Is this component configurable in Windows 7 machines to not automatically shut FileMaker Pro?

        • 1. Re: Long report crashes in Windows 7

          Can't speak to Win 7 specifically, but the behavior you're describing is network / bandwidth related. FileMaker is attempting to download all the records on the report from the server when you grab the scroll bar and drag it to the last record. It's waiting until it receives the last record to refresh the screen. Your assumption about timeout is probably either on the mark or very close. It's taking so long for the entire record set to download that Win 7 is getting impatient and shutting down FM before it has a chance to finish.


          You might be able to reconfigure your report to speed it up to avoid the issue by moving some of the fields out of the report table, thinning down the graphics, or using a Virtual List technique. This might allow FileMaker to finish what it's trying to do before Windows decides to cut it off at the knees.





          • 2. Re: Long report crashes in Windows 7

            Thank you Mike!


            I have discovered just a few minutes ago,  that the antivirus might be shuting down the network because "heavy traffic to a not responding process" could be interpreted as malware. The antivirus this computer has is ESET NOD32. There is a section that states web protocols filtering and I excluded the IP address of the server, so it does not apply any kind of filtering to the comunication to FileMaker Server.


            To my suprise, even though the "Do not respond" on the title bar still appears, Filemaker Pro can do the report and the "Communication with the host is lost dialog " does not appear.

            • 3. Re: Long report crashes in Windows 7

              I thought this issue was resolved with the antivirus setting. However. It is not.


              Today I got the error back on all Windows 7 machines. One with windows 7 Ultimate and one with Windows 7 Home Edition. The report works fine on Windows XP and Mac.

              • 4. Re: Long report crashes in Windows 7

                I think I can explain the whole issue. This may help to trouble shoot similar problems in the future.


                The main inconvinient in the report I was generating was the size of the images in it. Each page has at least 8 pictures and information from many tables. As a footnote, combining many tables into one, or use virtual list tecnique did not show any difference in this specific situation.


                I was under the impression that FileMaker Pro scaled any image to the size it was presented. I wrongly thought if the image is about 1024x768 pixels but the container is shown at 128x128, FileMaker Pro would scale the image to 128x128; however, it is not the case. The image is shrunk only in appearence but the real file remains. This leads to an enourmous use of memory while generating the report.


                Using "ProcessExplorer" on Windows, I saw how memory was retained but not released as the report was being generated. When memory was almost full, FileMaker showed the message "Connection with host was interrumpted and could not be reestablished". I though the message was triggered by network issues, but it seems the error was caused by low memory in FileMaker Pro which made the network module stop functioning.


                This was overlooked, mainly because the report could be generated on an old Snow Leopard machine (Macbook Pro, Core Duo) with 2 GB RAM, while it could not be created on a Windows 7 Ultimate machine (new desktop iCore5) with 4 GB RAM. Windows XP machine, Dual Core, 2 GB RAM could generate the report only the first time. Save as PDF was impossible on any Windows machine. Definitely, FileMaker Pro in Mac OS X has far better memory management.


                I decided to create a new container field with an optimized thumbnail using GetThumbnail (field, 128x128) just for the report and the error vanished completely. Also, PDF generation, that was impossible in any Windows machine, can now be done perfectly. The previous PDF report was about 300 MB, the new PDF report weigths only 15 MB.


                Of course, retooling the report also benefits the old Mac, which now creates the report 10x faster!