Opened 18 years ago

Closed 17 years ago

Last modified 15 years ago

#275 closed bug (worksforme)

Crash when viewing attribute table

Reported by: lrntct@… Owned by: gsherman
Priority: critical: causes crash or data corruption Milestone:
Component: Digitising Version: 0.8
Keywords: Cc:
Must Fix for Release: Yes Platform: Windows
Platform Version: 2000 Awaiting user input: no

Description

When I try to view an attribute table of a shapefile feature, Qgis 0.8 preview 2 crash silently. It appear with Qgis's Alaska sample dataset and other shapfiles I have.

It's strange because the first time I ran Qgis after download it, things worked fine. I tried to edit an attribute, it worked. But after the save, when I ask the feature for attributes, Qgis crashed. Now, Qgis crash every time I try to view an attribute table.

Change History (13)

comment:1 by anonymous, 18 years ago

Priority: minormajor

comment:2 by g_j_m, 18 years ago

Try preview 3 when it's released. A recent changes may have fixed this (r5992).

comment:3 by rblazek, 17 years ago

Priority: majorcritical

comment:4 by gsherman, 17 years ago

Must Fix for Release: Yes

comment:5 by g_j_m, 17 years ago

Please try the windows version at http://qgis.org/uploadfiles/testbuilds/. My testing indicates that this problem has been resolved.

comment:6 by lrntct@…, 17 years ago

I've tested with the last link version. Qgis crash when I try to load a shapefile. Windows display a dialog box saying : "QGis as gererated errors... An error log is being created."

comment:7 by g_j_m, 17 years ago

Works for me. Can you attach the shapefile?

comment:8 by anonymous, 17 years ago

I've tested with the Alaska dataset.

comment:9 by wonder, 17 years ago

Does it crash for any shapefile or just some shapefiles?

What about other backends - e.g. delimited text or GPX provider - does opening attribute table crash also with them?

Using original Alaska shapefile crashes QGIS also?

Please try to specify the problem with as much details as possible to allow as to narrow down the possible reasons of the crash.

The best would be if you installed Dr. Mingw and provided us with backtrace of the crash.

comment:10 by lrntct@…, 17 years ago

I've just downloaded latest build here : http://qgis.org/uploadfiles/testbuilds/

I can't even load a file, raster or vector, Qgis crash. Dr. Mingw give the following :

qgis.exe caused an Access Violation at location 02787b42 in module proj.dll Writing to location 3d726968.

Registers: eax=027b0c80 ebx=0000004f ecx=3d726964 edx=027c078c esi=00000000 edi=6e697700 eip=02787b42 esp=0022a214 ebp=0022a234 iopl=0 nv up ei pl nz ac po nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00200216

Call stack: 02787B42 proj.dll:02787B42 pj_init_plus

or :

qgis.exe caused an Access Violation at location 02787b42 in module proj.dll Writing to location 3d726968.

Registers: eax=027b0c80 ebx=0000005f ecx=3d726964 edx=027c077c esi=00000000 edi=6e697700 eip=02787b42 esp=0022a194 ebp=0022a1b4 iopl=0 nv up ei pl nz ac po nc cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00200216

Call stack: 02787B42 proj.dll:02787B42 pj_init_plus

With a older version of Qgis (compiled with Qt4.1), I can load a vector, but when I try to view the attribute table, qgis crash silently, no reaction from Dr. Mingw. It do the same with differents shp files. The Alaska Qgis dataset make qgis crash too. A gpx file from GPS is working, though.

comment:11 by wonder, 17 years ago

Ummm, this is tough. It seems that crash is happening in Proj4 library... I have two ideas for now:

  • try using proj4 library from FWTools (http://fwtools.maptools.org/) I think you'll need to rename it from proj_fw.dll to proj.dll and copy to QGIS directory
  • try using QGIS debug version - maybe something interesting will be reported to console

Martin

comment:12 by gsherman, 17 years ago

Resolution: worksforme
Status: newclosed

This can't be duplicated -- I suspect it may be due to a library conflict or multiple versions of DLLs that aren't playing nicely. Try deleting old Qt and all QGIS versions from your machine and doing a clean install of QGIS.

I'm closing this bug. You can reopen it if the problem persists in the upcoming preview 3 release and you can provide more details to troubleshoot it.

comment:13 by (none), 15 years ago

Milestone: Version 0.8

Milestone Version 0.8 deleted

Note: See TracTickets for help on using tickets.