-
-
Notifications
You must be signed in to change notification settings - Fork 3k
-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Crash when chcking the "Show bounding boxes" option in 3D view settings #40766
Comments
Did you try with another version other than 3.16.2? I noticed some issues on 3.16.1 but 3.10(ltr) worked fine. |
Crash confirmed (same QGIS version and OS) also with a much smaller dataset, like the one attached (and happens also when choosing other CRS for the project other than the described one). |
@roya0045 is a regression then. |
I was referencing the black screen on windows VMs, I wanted to validate if it was indeed a regression. Did you try it out ? |
@roya0045 there is no black screen here, if fact is... white.I think that hoping to ha the 3d view to handle (quickly at least) a dataset that as the whole world extension, and that is being reprojected on the fly is a little bit too optimistic. Clipping that layer to a more reasonable geographic extension works just fine. |
I actually started with 3.10 from the main Ubuntu repository, had nothing but white in the 3D pane, and upgraded to 3.16 hoping the 3D support was better. I will try some more versions tonight to try to bisect the crash behavior. I'm not sure it's "unreasonable" to render the whole world dataset in 3D--- 30 arc-second resolution * 180 degrees in each axis = at most 466.56M grid points in view (one hemisphere)... that's a lot, but it fits easily in main memory, and even primitive LOD helps a lot. Google Earth manages something like this! I will try clipping and/or seeking out a lower-resolution data set to see whether that makes a difference. The irony is that I don't even care about the heightmap; I really just want to render my surface polygons from a high-altitude perspective. Note also that the crash happens regardless of whether the raster layer is loaded; I installed the GMTED data to try to suppress the "no terrain" error messages and because all of the 3D tutorials seem to start there. |
@spillner then why are you enabling the 3D view in the first place?
yes, this is the real issue here (reported in this ticket). About the blank 3d view: it seems there is a maximum scale/bounding box that can be rendered. Not sure if this is by design or not. You should ask in the developers mailing list. |
Thanks, that technique plus the Tilted Perspective projections give me what I need for now. I recommend leaving the bug open until there's at least a warning message for too much data in view, instead of the crash, and ideally until there's a filtering algorithm in place to sample the data at reduced resolution when wide areas are selected. I should have some time to attack that in a couple of weeks; appreciate your help for now. |
it is not the extent of the data that makes QGIS crash, is the option "Show bounding boxes" that does, regardless of the data. The fact that the 3D view shows nothing if the data has a very large extent could be another issue, or could by design @PeterPetrik any idea? |
no idea |
I can reproduce this on macOS consistently with nightly build now |
still present in 3.21.0 |
It looks like the recent change to limit the 3D scene extent made it easier to reproduce. |
I'm running QGis 3.16.2 from the qgis.org/debian repository, on a standard Ubuntu Focal (x86_64) installation. OpenGL is provided by version 455.38 of the NVidia proprietary driver , and I don't have any issues with 3D in other applications.
The 2D features in QGis seem to work just fine, but when I open the 3D preview pane I see nothing but a white canvas (even though can successfully build and manipulate world maps from vector and/or raster data sets in the 2D pane). PNG export likewise produces a white image, and selecting arbitrary points in the blank preview pane with the Identify tool never populates any data in the results tree.
While trying to debug this by toggling options under the 3D Configuration dialog, I get the following:
(1) When I enable the "Show Skybox" checkbox and Apply, I get the following on stderr:
Unchecking "Show Skybox" and clicking Apply again does not generate any new messages.
(2) When I enable "Show camera's view center" in the Advanced pane, I get just the message
(3) Most seriously, when I check "Show Bounding Boxes" in the Advanced pane, I always get the message
About 70% of the time, I also get an immediate application exit (either SEGV or SIGABRT) with the messages
Steps to reproduce:
QGis and OS versions:
Additional context:
I have all of the standard qgis dependency packages installed, and imported the GMTED2010 whole earth dataset at a 30-arcsecond resolution (BE / breakpoint emphasis version). The crashes happen with no layers loaded, with only the GMTED2010 raster data, with ArcGIS vector sets (e.g. https://hub.arcgis.com/datasets/UIA::uia-latitude-longitude-graticules-and-world-countries-boundaries) either by themselves or in combination with the elevation data, etc. It may be the case that I'm just picking bad data sets, but (1) that's not very obvious from the UI or online documentation, (2) it should be easier to acquire the necessary data to support 3D (e.g. a qgis-3d-elevation-data package; in the absence of that, I was following the instructions at https://www.qgistutorials.com/en/docs/working_with_terrain.html), (3) if enabling a 3D view before the necessary data is loaded, rendering on a smooth ellipsoid is a sensible default, and (4) in any event, segmentation fault is not a graceful way to handle user error.
The text was updated successfully, but these errors were encountered: