Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

right clicking on attribute table of point file seg faults #11209

Closed
qgib opened this issue Jul 11, 2008 · 5 comments
Closed

right clicking on attribute table of point file seg faults #11209

qgib opened this issue Jul 11, 2008 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Jul 11, 2008

Author Name: arkygeek - (arkygeek -)
Original Redmine Issue: 1149

Assignee: nobody -


when selectin multiple features from a postgis layer and right clicking to save to shapefile, immediate seg fault.

arkygeek@arkygeek-desktop:~/apps/qgis/bin$ ./qgis
Debug:
**********************************
Debug: [[QgsApplication]] state:
Debug: Prefix       :/home/arkygeek/apps/qgis
Debug: Plugin Path  :/home/arkygeek/apps/qgis/lib/qgis
Debug: [[PkgData]] Path :/home/arkygeek/apps/qgis/share/qgis
Debug: Theme Path   :/home/arkygeek/apps/qgis/share/qgis/themes/default/
Debug: User DB Path :/home/arkygeek/apps/qgis/share/qgis/resources/qgis.db
Debug: **********************************

Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Debug:
**********************************
Debug: [[QgsApplication]] state:
Debug: Prefix       :/home/arkygeek/apps/qgis
Debug: Plugin Path  :/home/arkygeek/apps/qgis/lib/qgis
Debug: [[PkgData]] Path :/home/arkygeek/apps/qgis/share/qgis
Debug: Theme Path   :/home/arkygeek/apps/qgis/share/qgis/themes/default/
Debug: User DB Path :/home/arkygeek/apps/qgis/share/qgis/resources/qgis.db
Debug: **********************************

Loaded /home/arkygeek/apps/qgis/lib/qgis/libcopyrightlabelplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libdelimitedtextplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libdelimitedtextprovider.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libgeorefplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libgpsimporterplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libgpxprovider.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libgrassplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libgrassprovider.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libgridmakerplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libmemoryprovider.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libnortharrowplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libogrprovider.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libpggeoprocessingplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libpostgresprovider.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libquickprintplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libscalebarplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libspitplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libwfsplugin.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libwfsprovider.so
Loaded /home/arkygeek/apps/qgis/lib/qgis/libwmsprovider.so
Debug: current properties:
Debug: name: properties
Debug:  key: <GRASS>  subkey: <GRASS>
Debug:          name: GRASS
Debug:                  key: <WorkingLocation>  value: shuna
Debug:                  key: <WorkingGisdbase>  value: /home/arkygeek/GRASSDATA
Debug:                  key: <WorkingMapset>  value: shuna
Debug:  key: <Gui>  subkey: <Gui>
Debug:          name: Gui
Debug:                  key: <SelectionColorBluePart>  value: 0
Debug:                  key: <CanvasColorGreenPart>  value: 255
Debug:                  key: <CanvasColorRedPart>  value: 255
Debug:                  key: <SelectionColorRedPart>  value: 255
Debug:                  key: <SelectionColorGreenPart>  value: 255
Debug:                  key: <CanvasColorBluePart>  value: 255
Debug:  key: <PositionPrecision>  subkey: <PositionPrecision>
Debug:          name: [[PositionPrecision]]
Debug:                  key: <DecimalPlaces>  value: 2
Debug:                  key: <Automatic>  value: true
Debug: /home/arkygeek/devel/qgis_unstable/src/core/qgsproject.cpp : 558  unable to find title element

Warning: QFSFileEngine::open: No file name specified
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.
Warning: QFSFileEngine::open: No file name specified
Warning: No valid projection. Unable to set map units.
Warning: No valid projection. Unable to set map units.

--accepting rule at line 79 ("siteno")
--accepting rule at line 61 ("=")
--accepting rule at line 75 ("2221001")
--accepting rule at line 81 (" ")
--accepting rule at line 59 ("OR")
--accepting rule at line 81 (" ")
--accepting rule at line 79 ("siteno")
--accepting rule at line 61 ("=")
--accepting rule at line 75 ("2020012")
--accepting rule at line 81 (" ")
--accepting rule at line 59 ("OR")
--accepting rule at line 81 (" ")
--accepting rule at line 79 ("siteno")
--accepting rule at line 61 ("=")
--accepting rule at line 75 ("2221017")
--accepting rule at line 81 (" ")
--accepting rule at line 59 ("OR")
--accepting rule at line 81 (" ")
--accepting rule at line 79 ("siteno")
--accepting rule at line 61 ("=")
--accepting rule at line 75 ("2323009")
--accepting rule at line 81 (" ")
--accepting rule at line 59 ("OR")
--accepting rule at line 81 (" ")
--accepting rule at line 79 ("siteno")
--accepting rule at line 61 ("=")
--accepting rule at line 75 ("2021030")
--accepting rule at line 81 (" ")
--accepting rule at line 59 ("OR")
--accepting rule at line 81 (" ")
--accepting rule at line 79 ("siteno")
--accepting rule at line 61 ("=")
--accepting rule at line 75 ("2121065")
--accepting rule at line 81 (" ")
--accepting rule at line 59 ("OR")
--accepting rule at line 81 (" ")
--accepting rule at line 79 ("siteno")
--accepting rule at line 61 ("=")
--accepting rule at line 75 ("2120049")
--accepting rule at line 81 (" ")
--accepting rule at line 59 ("OR")
--accepting rule at line 81 (" ")
--accepting rule at line 79 ("siteno")
--accepting rule at line 61 ("=")
--accepting rule at line 75 ("2321002")
--accepting rule at line 81 (" ")
--accepting rule at line 59 ("OR")
--accepting rule at line 81 (" ")
--accepting rule at line 79 ("siteno")
--accepting rule at line 61 ("=")
--accepting rule at line 75 ("2021039")
--accepting rule at line 81 (" ")
--accepting rule at line 59 ("OR")
--accepting rule at line 81 (" ")
--accepting rule at line 79 ("siteno")
--accepting rule at line 61 ("=")
--accepting rule at line 75 ("2321003")
--accepting rule at line 81 (" ")
--accepting rule at line 59 ("OR")
--accepting rule at line 81 (" ")
--accepting rule at line 79 ("siteno")
--accepting rule at line 61 ("=")
--(end of buffer or a NUL)
--accepting rule at line 75 ("2021013")
--(end of buffer or a NUL)
--EOF (start condition 0)
Segmentation fault

@qgib
Copy link
Contributor Author

qgib commented Jul 11, 2008

Author Name: Jürgen Fischer (@jef-n)


Any more information about the data you're exporting? I can export selected features to shapes just fine. Can you produce a backtrace?

@qgib
Copy link
Contributor Author

qgib commented Jul 11, 2008

Author Name: arkygeek - (arkygeek -)


yeah, sorry about the vague nature of the ticket... I was in a bit of a hurry
I have a table in a postgis layer containing about 10,000 records. I selected 11 of them, and showed only the selected records. then I tried right clicking on them. seg fault

I will try to get a backtrace for you

@qgib
Copy link
Contributor Author

qgib commented Jul 11, 2008

Author Name: arkygeek - (arkygeek -)


(gdb) bt
#_0 0x0812230f in ?? ()
#_3905 0x0812a863 in ?? ()
#_3906 0xb759a9b0 in QWidget::event () from /usr/lib/libQtGui.so.4
#_3907 0xb78cf063 in QFrame::event () from /usr/lib/libQtGui.so.4
#_3908 0xb7962c0f in QAbstractScrollArea::viewportEvent () from /usr/lib/libQtGui.so.4
#_3909 0xb7a0bd38 in QAbstractItemView::viewportEvent () from /usr/lib/libQtGui.so.4
#_3910 0xb7963f95 in ?? () from /usr/lib/libQtGui.so.4
#_3911 0xb7e72a21 in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib/libQtCore.so.4
#_3912 0xb7542be3 in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#_3913 0xb754800e in QApplication::notify () from /usr/lib/libQtGui.so.4
#_10 0xb7e726a9 in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#_3914 0xb75af448 in ?? () from /usr/lib/libQtGui.so.4
#_3915 0xb75ad6b1 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#_3916 0xb75d63ba in ?? () from /usr/lib/libQtGui.so.4
#_3917 0xb65dabf8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#_3918 0xb65dde5e in ?? () from /usr/lib/libglib-2.0.so.0
#_3919 0xb65de3ac in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#_3920 0xb7e9df98 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#_3921 0xb75d61b5 in ?? () from /usr/lib/libQtGui.so.4
#_3922 0xb7e7192d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#_3923 0xb7e71abd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#_3924 0xb7e73d3d in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#_3925 0xb7542567 in QApplication::exec () from /usr/lib/libQtGui.so.4
---Type to continue, or q to quit---
#_3926 0x080ecd28 in ?? ()
#_3927 0xb66b7450 in +libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#_3928 0x080ea971 in ?? ()
(gdb)

@qgib
Copy link
Contributor Author

qgib commented Jul 11, 2008

Author Name: Tim Sutton (Tim Sutton)


Fix with 30c9aa0 (SVN r8755).. At times the current row can be returned as -1 which will cause a crash if you try to fetch its display role. The fix checks for invalid row numbers and skips fetching data for them if this is the case. May result in edge cases where user clicks and attribute actions are not invoked.


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Aug 21, 2009

Author Name: Anónimo (Anónimo)


Milestone Version 0.11.0 deleted

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant