specify / specify7

Specify 7
https://www.specifysoftware.org/products/specify-7/
GNU General Public License v2.0
62 stars 36 forks source link

`NS_ERROR_FAILURE` when attempting to generate label #3115

Open grantfitzsimmons opened 1 year ago

grantfitzsimmons commented 1 year ago

Specify 7 Crash Report - 2023-03-08T03 34 15.722Z.txt

image

https://purdueherbaria11023-edge.test.specifysystems.org/specify/view/collectionobject/167304/

I am unable to run a label for a Collection Object on either v7.8.4 or edge.

Steps to Recreate:

  1. Go to the linked record above (/view/collectionobject/167304/) in the purdueherbaria db
  2. Click on the "generate label" button on the bottom right hand side of the form
  3. Click on TYPE labels MARGINS
  4. See error
[Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: https://purdueherbaria11023-edge.test.specifysystems.org/static/js/main.88058465e6734808d152.bundle.js :: 99147/U/< :: line 2"  data: no]
maxpatiiuk commented 1 year ago

This could be a Firefox bug - https://bugzilla.mozilla.org/show_bug.cgi?id=941146

Though, the bug doesn't happen for me (in Firefox Developer Edition):

Screenshot 2023-03-08 at 08 42 50

Doesn't happen in Chrome either

The stack trace is minifed, and the js file no longer exists, so can't tell where the exception occurred

grantfitzsimmons commented 1 year ago

I can still recreate this every time on Firefox Developer Edition. I cannot recreate in Chrome.

grantfitzsimmons commented 1 year ago

Happened today on the workshop Specify Cloud instance on edge

grantfitzsimmons commented 1 year ago

Still happening:

image

https://sp7demofish.specifycloud.org/specify/view/loan/new/

Create a new loan, save, click "Fish Loan Report", see error.

[Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: https://sp7demofish.specifycloud.org/static/js/main.b5199a0ffb3d057b9519.bundle.js :: 99147/U/< :: line 2"  data: no]

U@https://sp7demofish.specifycloud.org/static/js/main.b5199a0ffb3d057b9519.bundle.js:2:550738
H@https://sp7demofish.specifycloud.org/static/js/main.b5199a0ffb3d057b9519.bundle.js:2:551722
ae@https://sp7demofish.specifycloud.org/static/js/main.b5199a0ffb3d057b9519.bundle.js:2:557817
ne@https://sp7demofish.specifycloud.org/static/js/main.b5199a0ffb3d057b9519.bundle.js:2:555435
te@https://sp7demofish.specifycloud.org/static/js/main.b5199a0ffb3d057b9519.bundle.js:2:554915
a@https://sp7demofish.specifycloud.org/static/js/main.b5199a0ffb3d057b9519.bundle.js:2:152749
ce@https://sp7demofish.specifycloud.org/static/js/main.b5199a0ffb3d057b9519.bundle.js:2:559387
section
Container.Center
div
Container.FullGray

Specify 7 Crash Report - 2023-03-30T13 25 55.133Z.txt

Happens on Firefox, macOS

grantfitzsimmons commented 1 year ago

Reported by Laura at University of Wyoming

grantfitzsimmons commented 1 year ago

Laura is wondering when we can fix this in Firefox

maxpatiiuk commented 1 year ago

From @carlosmbe:

Describe the bug This is a quite the strange bug. I don't understand what's causing it so please forgive the rather vague explanations.

Talk to @melton-jason for more details.

To Reproduce Steps to reproduce the behavior:

  1. Go to Clean NHMD Log in as petrifiedroadkill and go to the NHMD Amber Collection
  2. Find the first loan created in it. Namely Loan: 2023-EN-001 or just use the link below
  3. Make some changes or just clone
  4. Experiment with either Generate Invoice on Save being on/off
  5. See error

Link to loan cleannhmdtest030823copy-v79-dev.test.specifysystems.org/specify/view/loan/224/

Make up sure you have pop ups enabled on the page.

One of three things could happen when saving the loan:

  1. It works
  2. Report Query Returned No Results
  3. An NS_Error is thrown

Expected behavior It always works

Beautiful Pictures

Screenshot 2023-07-12 at 2 42 00 PM Screenshot 2023-07-12 at 2 14 34 PM Screen.Recording.2023-07-12.at.2.47.07.PM.mov Desktop:

  • OS: Mac OS
  • Browser: Chrome
  • Specify 7 Version: 7.9
grantfitzsimmons commented 1 year ago

Screen.Recording.2023-07-12.at.2.47.07.PM.mov Desktop:

  • OS: Mac OS
  • Browser: Chrome
  • Specify 7 Version: 7.9

Based on that screenshot, it is evidently Firefox, not Chrome.

grantfitzsimmons commented 1 year ago

@carlosmbe If this is not resolved before you return, I think this is something you should look into when we begin programming tasks :smile:

grantfitzsimmons commented 1 year ago

It doesn't happen if you enable pop-ups.

maxpatiiuk commented 1 year ago

Does it happen at all anymore? Since it's a Firefox bug, it could have been fixed on their side by now

grantfitzsimmons commented 1 year ago

Yes, I tried to troubleshoot it to better understand it. It only happens when pop-ups are blocked.

https://stackoverflow.com/questions/48303223/ns-error-failure-in-firefox-on-setting-font-of-canvas-inside-a-hidden-iframe

combs-a commented 2 months ago

Still having this issue, had it occur in sdnhm_herps_2_8_24 when running the Gift Invoice label, as well as on PriPaleo_SchemaUpdated_CM_202304211540 on various Loan labels/reports. It randomly happened to fix itself on sdnhm_herps. Still on Firefox.

emenslin commented 2 months ago

Can recreate in edge (7.9.6)