Bug report #19118

Crash when clicking browse button in attachment edit widget

Added by Tom Chadwin almost 6 years ago. Updated almost 5 years 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 almost 6 years ago

Cannot reproduce on Linux/master

#3 Updated by Tom Chadwin almost 6 years 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 over 5 years ago

Still an issue.

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

#5 Updated by Tom Chadwin over 5 years ago

Issue still present in 3.4.1

#6 Updated by Giovanni Manghi over 5 years ago

  • Affected QGIS version changed from 3.0.3 to 3.4.1

#7 Updated by Benjamin Jakimow over 5 years ago

Issue still present in 3.4.4

#8 Updated by Jürgen Fischer over 5 years ago

#9 Updated by Peter Petrik about 5 years ago

unable to reproduce on Mac with 3.5 master

#10 Updated by Giovanni Manghi about 5 years ago

  • Status changed from Open to Feedback

#11 Updated by Tom Chadwin about 5 years ago

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

#13 Updated by Tom Chadwin about 5 years ago

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

#14 Updated by Giovanni Manghi about 5 years 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 about 5 years ago

  • Status changed from Feedback to Open

#16 Updated by Peter Petrik about 5 years ago

probably windows-only issue :)

#17 Updated by Samuel Wechsler about 5 years 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 about 5 years 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 about 5 years ago

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

#20 Updated by Tom Chadwin about 5 years ago

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

#21 Updated by Giovanni Manghi about 5 years ago

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

#22 Updated by Giovanni Manghi about 5 years 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 almost 5 years 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 almost 5 years ago

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

Also available in: Atom PDF