-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
netedit hangs when loading edge data #7604
Comments
Looks like the algorithm has a major-inefficiency somewhere. It works fine on a small network but takes very long on a large network. (tested with tests/tools/import/OSM/webWizard/osmimport.tools). I suspect this is related to computing the color-gradient (something along those lines came up previously). |
@ZoltanBaksa As a workaround for only looking at the data, you might as well use sumo-gui. |
@zoltan: If a rainbow was created, this implies that a valid data range was found. Look into the input file and find an edge that has a different value from the others. Then locate this edge in sumo gui. Activating "show edge color value" may also help to validate what you see. |
@palvarezlopez This is what came out of a quick gprof run:
|
Since my network and data file only have ~4000 edges I suspect that registerObject gets called a bit too often. |
also, when loading from a file, AttributeColors::updateValues should only be called after loading is complete. |
@ZoltanBaksa I disabled two functions thats create a bottleneck loading data elements. Can you check if in your loading in NETEDIT works now? |
pro:
|
Both functions are responsible you disabled have quadratic effort since every call iterates over all interval elements. It should be sufficient to call this once after loading is complete. |
works for me now |
Hi,
I use the latest dev version v1_7_0+0223-4752229c79.
I have created random trips with randomTrips.py using the option --weights-output-prefix to be able to visualize the start and end edges. When I try to load the generated .dst file into netedit in Data Mode by clicking on File->Data Elements->Load Data Wlements and selecting the generated dst file, netedit hangs and does not responds.
The text was updated successfully, but these errors were encountered: