cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime error when printing one diagram (others are fine)

Highlighted
Contributor

Runtime error when printing one diagram (others are fine)

Hi, 

 

Scratching my head here... There is a least one diagram (value stream) that generates an error when trying to print it. The other ones that I have tested are fine.

 

Here is the url showing the error:

https://<BASE>/Hopex/extref.aspx?data=generationType-externalReference&userdata=~.I7wxz0)xSvB3447258453&filename=Error%3A%20The%20report%20cannot%20be%20run

Here is the result of the error :

Server Error in '/Hopex' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

Problem happens in both viewing and editing mode.

Saving thepicture works fine.

 

Did anyone experiend that ?

 

Thanks, 


Raphaël.

 

Snag_8b8a82e.png

Snag_8b87b90.pngSnag_8b8869c.pngSnag_8b89235.png

 

5 Replies
MEGA

Re: Runtime error when printing one diagram (others are fine)

Hi RGenin,

 

Do you have access to the Windows Front-end? What happens if you attempt the same via that perspective? Also, at the time when you encounter the error, what entries are logged in the Hopex Error logfiles... specifically, the megerr2019XXXX (where "XXXX" is the date when you encountered the error)?

 

JCAMARA

Contributor

Re: Runtime error when printing one diagram (others are fine)

Thanks for the quick answer !

Yes I do. When doing the same on the Windows Front-End, the Print dialog open allowing me to choose the printer. Saving Image works as well.

 

I have retried just now, same error. Here is the Session:

* -- MEGA Session (HOPEX V2R1 U03.01 7.85.5072.5081) -- *   Date: 2019/05/30 12:10:32
     System   : Windows Server 2016Datacenter Edition  (Build 14393), 64-bit.  IE: 11.2969.14393.0.
     Site     : Investment   (D:\MEGA\HOPEX V2R1\System)   US PID(22496)
     Location   : C:\ProgramData\MEGA\Logs
     Environment: \\<REDACTED>\HopexEnv\<REDACTED>\SysDb (SystemUpdateMarker - HOPEX Version 785U03)
PID(22496);Thread(28692);Time(12:10:32);Session(RGenin A);CONTEXT:ThreadName(Pool);
PID(22496);Thread(28692);Time(12:10:32);Session(RGenin A);error Application: 0x0100800D: stdljson.cpp(1031)
PID(22496);Thread(28692);Time(12:10:32);Session(RGenin A);              Unsupported function
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);-------------------------------------------------------------------
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);- Version : HOPEX V2R1 U03.01 785.5072
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);- Site : Investment  (D:\MEGA\HOPEX V2R1)  English
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);- Environment : \\<REDACTED>\HopexEnv\<REDACTED>\Db
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);- Database : <REDACTED>
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);- User : [D7EBD89E581C4D26] RGenin
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);- Component : Report Engine: Analysis: SaveThread
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);-------------------------------------------------------------------
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);An error occured in saving thread:
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);Error : Image top or bottom margin is too large 0,0 image file:C:\WINDOWS\TEMP\mega.tmp\005700895CF05AAD.png
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);in file <missing debug info> in class aspose.pdf.internal.z225                                         in method m1          at line <missing debug info>
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);in file <missing debug info> in class aspose.pdf.internal.z214                                         in method m1          at line <missing debug info>
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);in file <missing debug info> in class aspose.pdf.internal.z232                                         in method m1          at line <missing debug info>
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);in file <missing debug info> in class aspose.pdf.xml.DocumentBase                                      in method m1          at line <missing debug info>
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);in file <missing debug info> in class aspose.pdf.internal.z206                                         in method m1          at line <missing debug info>
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);in file <missing debug info> in class aspose.pdf.Pdf                                                   in method save        at line <missing debug info>
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);in file <missing debug info> in class com.mega.modeling.analysis.documentrenderers.PDFDocumentRenderer in method EndDocument at line 74
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);in file <missing debug info> in class com.mega.modeling.analysis.Analysis$SaveThread                   in method run         at line 260
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);-------------------------------------------------------------------
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);- End
PID(22496);Thread(18848);Time(12:10:50);Session(RGenin T);-------------------------------------------------------------------
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);CONTEXT:ThreadName(SuspendableMacro-tU50520ySLZM);CurrentMacro(BwsgNnETDDmQ);
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);-------------------------------------------------------------------
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);CONTEXT:ThreadName(SuspendableMacro-tU50520ySLZM);
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);- Version : HOPEX V2R1 U03.01 785.5072
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);- Site : Investment  (D:\MEGA\HOPEX V2R1)  English
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);- Environment : \\<REDACTED>\HopexEnv\<REDACTED>\Db
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);- Database : <REDACTED>
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);- User : [D7EBD89E581C4D26] RGenin
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);- Component : (Java) New Analysis Engine: Analysis: Generate
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);-------------------------------------------------------------------
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);&nbsp;
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);Analysis generation failed:
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);Error :  (Result too large)
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);in file <missing debug info> in class java.io.FileInputStream             in method open0                       at line <missing debug info>
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);in file <missing debug info> in class java.io.FileInputStream             in method open                        at line <missing debug info>
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);in file <missing debug info> in class java.io.FileInputStream             in method <init>                      at line <missing debug info>
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);in file <missing debug info> in class com.mega.modeling.analysis.Analysis in method Generate                    at line 3508
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);in file <missing debug info> in class com.mega.modeling.analysis.Analysis in method GenerateWithProgressControl at line 3210
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);-------------------------------------------------------------------
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);- End
PID(22496);Thread(24872);Time(12:10:50);Session(RGenin A);-------------------------------------------------------------------
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);MWA Error : The external reference has no valid file matching it.
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);error Application: 0x01031001: MEGA Automation Batch Exception : MEGAMWAExtRefPage.cpp - GetResult(0)
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              URL Causing the error = generationType%2dexternalReference
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              <html dir=ltr>
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              <head>
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              <style>
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              a:link			{font:8pt/11pt verdana; color:FF0000}
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              a:visited		{font:8pt/11pt verdana; color:#4e4e4e}
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              </style>
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              <META NAME="ROBOTS" CONTENT="NOINDEX">
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              <title>The page cannot be displayed</title>
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              <META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              </head>
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              <body bgcolor="FFFFFF">
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);                <input type="hidden" name=ResultType value="ErrInvalidExtRefFileName:text/html">
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              <table width="410" cellpadding="3" cellspacing="5">
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);                <tr>   
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);                  <td align="left" valign="middle" width="360">
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              	<h1 style="COLOR:000000; FONT: 13pt/15pt verdana"><!--Problem-->The page cannot be displayed</h1>
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);                  </td>
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);                </tr>
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);                
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              <tr>   
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);                  <td align="left" valign="middle" width="360">
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);                  <ul>
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);                  <li style="FONT:verdana"> <h3 style="COLOR:000000; FONT: 13pt/15pt verdana">Error Message</h3> The external reference has no valid file matching it.</li
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);error Application: 0x01020009: MegaMWAThreadGenerator.cpp(321)
PID(22496);Thread(8796);Time(12:10:50);Session(RGenin A);              Exception occurred.

Thanks, 

Raphaël.

Contributor

Re: Runtime error when printing one diagram (others are fine)

Might be important: 

Diagram is set up to be on two pages.


Snag_8de8ec1.png

MEGA

Re: Runtime error when printing one diagram (others are fine)

Hello

 

Web diagram printing uses a Java component

It may be a memory issue for Java components. Try to increase option Maximum heap size in M

See KB https://community.mega.com/t5/custom/page/page-id/mega-kb-solution?sid=501D0000000MhETIA0

If the issue persists, please open a case so that we can perform further investigations.

Jerome
Contributor

Re: Runtime error when printing one diagram (others are fine)

Thanks Jerome, we will do some tests with that annd I will update