Bug report #19118

Crash when clicking browse button in attachment edit widget

Added by Tom Chadwin about 1 year ago. Updated 2 months ago.

Status:Open
Priority:High
Assignee:-
Category:Edit widget
Affected QGIS version:3.7(master) Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:26948

Description

Steps to recreate:

1. Open a vector layer with at least one text field
2. Change a text field's edit widget to Attachment
3. Open the layer's attribute table
4. Toggle editing
5. Highlight a value in the column whose edit widget you just changed
6. Click the ellipsis browse button

On Win 7 and 10, we have confirmations that this causes a full QGIS crash, with no QGIS crash handler.

2019-01-29_09-29-35.gif - Screencast GIF of steps to reproduce this crash (4.96 MB) Tom Chadwin, 2019-01-29 10:31 AM

Screenshot_2019-05-22_11-37-15.png (640 KB) Grga Franges, 2019-05-22 11:39 AM


Related issues

Related to QGIS Application - Bug report #21775: qgis crash when filtering a layer with an attachment field Open 2019-04-05
Duplicated by QGIS Application - Bug report #20140: QgsExternalResourceWidgetWrapper crashes Closed 2018-10-17
Duplicated by QGIS Application - Bug report #21454: instant crash when using the "attachment" widget Closed 2019-03-03
Duplicated by QGIS Application - Bug report #21592: QGIS crash when opening file browser from attachment fiel... Closed 2019-03-15
Duplicated by QGIS Application - Bug report #21365: QGIS crashes with web view attachment widget in a relatio... Closed 2019-02-24

History

#2 Updated by Matthias Kuhn about 1 year ago

Cannot reproduce on Linux/master

#3 Updated by Tom Chadwin about 1 year ago

Crash still occurs in 3.2 and recent nightly. Using QGIS sample Alaska airports dataset, changing "USE" widget to Attachment, enabling editing, selecting the USE field of the NOATAK record, and clicking the browse button. Win7 x64.

#4 Updated by T Dunne 10 months ago

Still an issue.

Sometimes clicking the button does not cause a crash but adding an attachment does.

#5 Updated by Tom Chadwin 9 months ago

Issue still present in 3.4.1

#6 Updated by Giovanni Manghi 9 months ago

  • Affected QGIS version changed from 3.0.3 to 3.4.1

#7 Updated by Benjamin Jakimow 6 months ago

Issue still present in 3.4.4

#8 Updated by Jürgen Fischer 6 months ago

#9 Updated by Peter Petrik 6 months ago

unable to reproduce on Mac with 3.5 master

#10 Updated by Giovanni Manghi 6 months ago

  • Status changed from Open to Feedback

#11 Updated by Tom Chadwin 6 months ago

@Giovanni What feedback is needed - happy to help test.

#12 Updated by Tom Chadwin 6 months ago

#13 Updated by Tom Chadwin 6 months ago

Confirmed issue still present in 3.4.4 Win7 x64, as reported by @Benjamin Jakimow

#14 Updated by Giovanni Manghi 6 months ago

Tom Chadwin wrote:

@Giovanni What feedback is needed - happy to help test.

if a developer is having a look at the issue but is unable to replicate then is requested to the issuer to check again and/or improve the description (or as in your case add a screencast).

#15 Updated by Giovanni Manghi 6 months ago

  • Status changed from Feedback to Open

#16 Updated by Peter Petrik 6 months ago

probably windows-only issue :)

#17 Updated by Samuel Wechsler 5 months ago

still an issue in the current nightly built 3.7.0-Master (QGIS code revision 34a0650177). And yes I use windows.

#18 Updated by Giovanni Manghi 5 months ago

  • Operating System deleted (Windows 7, Windows 10)
  • Affected QGIS version changed from 3.4.1 to 3.7(master)

also on linux.

#19 Updated by Giovanni Manghi 5 months ago

  • Duplicated by Bug report #21454: instant crash when using the "attachment" widget added

#20 Updated by Tom Chadwin 5 months ago

@Giovanni Manghi That's the first report of this on non-Windows.

#21 Updated by Giovanni Manghi 4 months ago

  • Duplicated by Bug report #21592: QGIS crash when opening file browser from attachment field in attribute table added

#22 Updated by Giovanni Manghi 4 months ago

  • Duplicated by Bug report #21365: QGIS crashes with web view attachment widget in a relation widget in the attribute form added

#23 Updated by Grga Franges 2 months ago

Several bug reports have been marked as duplicates and merged with this one, but i feel it's description doesnt represent the full extent of this bug.

In my case crash happens whenever an entry is changed in an attachment widget with a web view document viever. Crash also happens when you switch to another feature in attribute table form view. (see attached image)

I have found this bug in 3.4. LTR on Mint 19, Windows 7 and Windows 10 environments. It totally ruins our organisation's usage scenario for QGIS and has caused us great pain. It is a regression from an important feature that used to work perfectly in 2.18.

It would be nice if we could at least get some update here on what is causing the issue and what are the prospects of resolving it.

#24 Updated by Alessandro Pasotti 2 months ago

  • Related to Bug report #21775: qgis crash when filtering a layer with an attachment field added

Also available in: Atom PDF