Web interface crashes when downloading result

20 views
Skip to first unread message

Val J. P. Syverson

unread,
Nov 27, 2024, 1:48:33 PMNov 27
to OxCal
Hi--
One for the developers here, but I did not see any other way to report bugs: I have a model that works fine in the OxCal web interface, but when I try to export the results it crashes the browser.  I've tried multiple instances of it on several different browsers and it's clearly repeatable. I haven't managed to export the data yet without it crashing. The offending code is attached to this message.
For context, I'm doing a project that involves generating and running several thousand OxCal models. Most of these I'm running using the oxcAAR package; I'm using the web interface to run a few dozen of them (only the ones that call C_Date(), which will not run with oxcAAR's executeOxcalScript() function). All the others ran & downloaded just fine -- this is the only one where this issue has appeared.
Thanks--
--Val Syverson
oxcode7237-JonesSpring.txt

Christopher Ramsey

unread,
Nov 27, 2024, 2:06:34 PMNov 27
to OxCal group
Dear Val

That will be an issue of resolution. You have errors ~1000 years and the default resolution in OxCal is 5 years - so the number of lines output will be very high.

The following reduces the resolution to 100:

Options()
{
Resolution=100;
Curve="intcal20.14c";
BCAD=FALSE;
};
Plot()
{
Phase("Collection Unit 7237")
{
Sequence("AU 84444")
{
Boundary("beginAnalysisUnit 84444");
Phase("Analysis Unit 84444")
{
R_Date('10743[QL-962]',48900,900);
C_Date('10742[66E1, Uranium series]',220000,80000);
C_Date('11471[66D2, Uranium series]', 51000,6400);
C_Date('11472[191D1, Uranium series]', 23400,1200);
C_Date('11473[191C1, Uranium series]', 78000,4000);
C_Date('11474[70B1, Uranium series]', 53000,6000);
Date("Event 84444");
};
Boundary("endAnalysisUnit 84444");
};
Sequence("AU 84445")
{
Boundary("beginAnalysisUnit 84445");
Phase("Analysis Unit 84445")
{
R_Date('10746[QL-1430]',51000,1500);
C_Date('11475[189E1, Uranium series]',101000,12000);
C_Date('11476[189E3, Uranium series]', 88700,6400);
C_Date('11477[189E4, Uranium series]', 86000,7000);
C_Date('11478[189D1, Uranium series]', 76000,5000);
C_Date('11479[189B1, Uranium series]',157000,14000);
C_Date('11480[192E1, Uranium series]',147000,7000);
C_Date('11481[192D1, Uranium series]', 44000,20000);
C_Date('11482[192C1, Uranium series]',150000,9000);
Date("Event 84445");
};
Boundary("endAnalysisUnit 84445");
};
Sequence("AU 84446")
{
Boundary("beginAnalysisUnit 84446");
Phase("Analysis Unit 84446")
{
R_Date('10748[SMU-96]',44040,2660);
C_Date('11483[69E1, Uranium series]',148000,10000);
C_Date('11484[69E2, Uranium series]',157000,8000);
C_Date('11485[69D1, Uranium series]', 19300,2000);
C_Date('11486[69B1, Uranium series]', 35400,2800);
C_Date('11487[186E1, Uranium series]', 39400,3000);
C_Date('11488[186E2, Uranium series]', 40300,3200);
C_Date('11489[186D1, Uranium series]', 43000,2000);
C_Date('11490[186B1, Uranium series]', 26000,1600);
C_Date('11491[187E1, Uranium series]', 74000,4200);
C_Date('11492[187E2, Uranium series]', 50000,2400);
C_Date('11493[187E3, Uranium series]', 38400,3000);
C_Date('11494[187D1, Uranium series]', 19600,800);
C_Date('11495[187B1, Uranium series]', 20300,800);
C_Date('11496[188E1, Uranium series]', 36800,2800);
C_Date('11497[188D1, Uranium series]', 19300,1600);
C_Date('11498[188B1, Uranium series]', 27700,1200);
C_Date('11499[92B1, Uranium series]', 59000,7000);
C_Date('11500[93B1, Uranium series]', 20000,3000);
Date("Event 84446");
};
Boundary("endAnalysisUnit 84446");
};
};
};

I have also renamed some of the events to prevent warnings about duplicated and included quotes where they were missing.

The browsers are pretty good at handling lots of data eg in the plot but the export utility puts them into a text box and most likely it is formatting that many lines which is crashing the browser. It might crash Excel too!

Best wishes

Christopher
> --
> You received this message because you are subscribed to the Google Groups "OxCal" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to oxcal+un...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/oxcal/f48fb5f9-1c56-44c4-b901-8b610182822an%40googlegroups.com.
> <oxcode7237-JonesSpring.txt>

Val J. P. Syverson

unread,
Nov 27, 2024, 3:48:14 PMNov 27
to OxCal
Wonderful, thank you! I hadn't figured out how to change the resolution. And now that I know what's going on, I'm rather surprised this was the only one of my models that had this problem.

Thanks again--
--Val
Reply all
Reply to author
Forward
0 new messages