Faulty Distribution map display for Corydoras schwartzi
- bekateen
- Posts: 9328
- Joined: 09 Sep 2014, 17:50
- I've donated: $40.00!
- My articles: 4
- My images: 141
- My cats species list: 145 (i:105, k:35)
- My aquaria list: 41 (i:18)
- My BLogs: 45 (i:150, p:2729)
- My Wishlist: 35
- Spotted: 183
- Location 1: USA, California, Stockton
- Location 2: USA, California, Stockton
- Contact:
Faulty Distribution map display for Corydoras schwartzi
Hi Jools,
When I click on the link (a tiny icon of a map) to display the distribution map for , the screen opens up a larger area for the map, but no map displays in the area (all I see is a blank field; see photo 1). This doesn't occur for other species I tested, whether Corydoras or other genera; for those, the map worked normally (photo 2).
Once the open area appears for schwartzi, if I then click again on the same small map icon (now displayed below the bigger map area) in order to make the map not display, this works. But if I then try once more to make the map appear by clicking on the same map-area icon link one more time, I get an error message (see photo 3).
Cheers, Eric
When I click on the link (a tiny icon of a map) to display the distribution map for , the screen opens up a larger area for the map, but no map displays in the area (all I see is a blank field; see photo 1). This doesn't occur for other species I tested, whether Corydoras or other genera; for those, the map worked normally (photo 2).
Once the open area appears for schwartzi, if I then click again on the same small map icon (now displayed below the bigger map area) in order to make the map not display, this works. But if I then try once more to make the map appear by clicking on the same map-area icon link one more time, I get an error message (see photo 3).
Cheers, Eric
Last edited by bekateen on 04 Dec 2015, 07:36, edited 1 time in total.
Find me on YouTube & Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code bekateen for 15% off your order. Also, for you Swifties: Https://youtu.be/ZUKdhXL3NCw
- bekateen
- Posts: 9328
- Joined: 09 Sep 2014, 17:50
- I've donated: $40.00!
- My articles: 4
- My images: 141
- My cats species list: 145 (i:105, k:35)
- My aquaria list: 41 (i:18)
- My BLogs: 45 (i:150, p:2729)
- My Wishlist: 35
- Spotted: 183
- Location 1: USA, California, Stockton
- Location 2: USA, California, Stockton
- Contact:
Re: Faulty Distribution map display for Corydoras schwartzi
Hmmm. I encountered the same problem with . Both this species and schwartzi have the Purus as their only locality. I wonder if that might be part of the problem - maybe it's not the species giving us issues, but it's the Purus as a single location.
By comparison, I clicked on some other cats which also have the Purus as a location, but they ALSO have other localities. And in their CLOGs, the map appeared normally, and the Purus marker also appeared.
The mystery deepens.
Cheers, Eric
By comparison, I clicked on some other cats which also have the Purus as a location, but they ALSO have other localities. And in their CLOGs, the map appeared normally, and the Purus marker also appeared.
The mystery deepens.
Cheers, Eric
Find me on YouTube & Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code bekateen for 15% off your order. Also, for you Swifties: Https://youtu.be/ZUKdhXL3NCw
- bekateen
- Posts: 9328
- Joined: 09 Sep 2014, 17:50
- I've donated: $40.00!
- My articles: 4
- My images: 141
- My cats species list: 145 (i:105, k:35)
- My aquaria list: 41 (i:18)
- My BLogs: 45 (i:150, p:2729)
- My Wishlist: 35
- Spotted: 183
- Location 1: USA, California, Stockton
- Location 2: USA, California, Stockton
- Contact:
Re: Faulty Distribution map display for Corydoras schwartzi
Okay, eventually I clicked on the maps for all 22 fish listed along the Purus and here is what I found:
Every species with more than one "Distribution" occurrence works (i.e., displays occurrence data as markers on the Google Map):
The only thing I see different about these two last species is that their Type Locality data includes Lat/Long coordinates. All the other non-working links either have NO Type Locality data, or they contain Type Locality data without Lat/Long coordinates. Does one of the PlanetCatfish website bots search for Lat/Long coordinates and post these as occurrences on the map, even though these are not listed as Distribution occurrences?
I apologize if the list seems long; I'm just trying to trouble-shoot the error and characterize its behavior for you. Hopefully that will aid in diagnosis.
Cheers, Eric
Every species with more than one "Distribution" occurrence works (i.e., displays occurrence data as markers on the Google Map):
- (Purus > Humaitá)
- (Purus > Branco (Acre))
- (Purus > Macauá)
- - No text for either its Type Locality or for its "Distribution" field (I submitted the Brazil, Rio Madeira, Humaitá for a Distribution text field to see if this matters, but I don't expect it will help. EDIT: After this Distribution text submission was accepted, nope, it didn't make a difference - it still doesn't display the map)
- - Has text in both Type Locality and Distribution fields
- - Has text in both Type Locality and Distribution fields
- - Has text in both Type Locality and Distribution fields
- - Has text in Distribution field but not in Type Locality field
- - Has text in Distribution field but not in Type Locality field
- - Has text in Distribution field but not in Type Locality field
- - Has text in both Type Locality and Distribution fields
- - Has text in Distribution field but not in Type Locality field
The only thing I see different about these two last species is that their Type Locality data includes Lat/Long coordinates. All the other non-working links either have NO Type Locality data, or they contain Type Locality data without Lat/Long coordinates. Does one of the PlanetCatfish website bots search for Lat/Long coordinates and post these as occurrences on the map, even though these are not listed as Distribution occurrences?
I apologize if the list seems long; I'm just trying to trouble-shoot the error and characterize its behavior for you. Hopefully that will aid in diagnosis.
Cheers, Eric
Find me on YouTube & Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code bekateen for 15% off your order. Also, for you Swifties: Https://youtu.be/ZUKdhXL3NCw
- MatsP
- Posts: 21038
- Joined: 06 Oct 2004, 13:58
- My articles: 4
- My images: 28
- My cats species list: 117 (i:33, k:0)
- My aquaria list: 10 (i:8)
- My BLogs: 4 (i:0, p:97)
- Spotted: 187
- Location 1: North of Cambridge
- Location 2: England.
Re: Faulty Distribution map display for Corydoras schwartzi
I will have a look.
Note that it's not what it says in the distribution as such that matters, but what it says in the "occurrence" records for that species.
The coordinates in the database for Rio Purus should show this:
https://www.google.co.uk/maps/place/5%C ... :0x0?hl=en
(I hope that link works!)
I'm not sure why that particular "single occurrence" goes wrong.
--
Mats
Note that it's not what it says in the distribution as such that matters, but what it says in the "occurrence" records for that species.
The coordinates in the database for Rio Purus should show this:
https://www.google.co.uk/maps/place/5%C ... :0x0?hl=en
(I hope that link works!)
I'm not sure why that particular "single occurrence" goes wrong.
--
Mats
- bekateen
- Posts: 9328
- Joined: 09 Sep 2014, 17:50
- I've donated: $40.00!
- My articles: 4
- My images: 141
- My cats species list: 145 (i:105, k:35)
- My aquaria list: 41 (i:18)
- My BLogs: 45 (i:150, p:2729)
- My Wishlist: 35
- Spotted: 183
- Location 1: USA, California, Stockton
- Location 2: USA, California, Stockton
- Contact:
Re: Faulty Distribution map display for Corydoras schwartzi
Understood. I kept using the term distribution because that's the heading on the CLOG page where occurrences are reported.MatsP wrote:Note that it's not what it says in the distribution as such that matters, but what it says in the "occurrence" records for that species.
It's not just the Rio Purus. I just found this problem again when looking at the profiles for and . They're from the Negro. But again, same circumstance - only one occurrence, nothing more specific than Negro, and no Lat/Long data for type locality. I haven't had time to check all other entries for the Rio Negro, so I don't know how broad that problem is.MatsP wrote:I'm not sure why that particular "single occurrence" goes wrong.
Cheers, Eric
Find me on YouTube & Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code bekateen for 15% off your order. Also, for you Swifties: Https://youtu.be/ZUKdhXL3NCw
- MatsP
- Posts: 21038
- Joined: 06 Oct 2004, 13:58
- My articles: 4
- My images: 28
- My cats species list: 117 (i:33, k:0)
- My aquaria list: 10 (i:8)
- My BLogs: 4 (i:0, p:97)
- Spotted: 187
- Location 1: North of Cambridge
- Location 2: England.
Re: Faulty Distribution map display for Corydoras schwartzi
Yeah, I figured out what the problem is. When trying to figure out the "scale" to fit everything in, the code would divide by zero (or something like that) when there is only ONE entry on the map - which was leading to "weird" results in the remaining math. It works out SOMETIMES, but not always, so I changed the code to only try to calculate the scale if there is more than one place on the map, and just use the closest zoom level when there is a single entry on the map.
I can see the error with a little of debug code, and see that it is fixed in the updated code, so I'm pretty sure this is the right fix, and I have a tested a few different species with one and multiple entries.
@Jools: r1605 (1604 contains the main fix, but I left my debug "alert" in the code).
--
Mats
I can see the error with a little of debug code, and see that it is fixed in the updated code, so I'm pretty sure this is the right fix, and I have a tested a few different species with one and multiple entries.
@Jools: r1605 (1604 contains the main fix, but I left my debug "alert" in the code).
--
Mats
- bekateen
- Posts: 9328
- Joined: 09 Sep 2014, 17:50
- I've donated: $40.00!
- My articles: 4
- My images: 141
- My cats species list: 145 (i:105, k:35)
- My aquaria list: 41 (i:18)
- My BLogs: 45 (i:150, p:2729)
- My Wishlist: 35
- Spotted: 183
- Location 1: USA, California, Stockton
- Location 2: USA, California, Stockton
- Contact:
Re: Faulty Distribution map display for Corydoras schwartzi
I stand corrected. The occurrences do appear on the map for these species on my old Windows 7 phone, but the map doesn't appear on my new Windows 10 phone. So that may be my phone's fault, or Microsoft's fault.bekateen wrote:It's not just the Rio Purus. I just found this problem again when looking at the profiles for and . They're from the Negro. But again, same circumstance - only one occurrence, nothing more specific than Negro, and no Lat/Long data for type locality. I haven't had time to check all other entries for the Rio Negro, so I don't know how broad that problem is.
Cheers, Eric
Find me on YouTube & Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code bekateen for 15% off your order. Also, for you Swifties: Https://youtu.be/ZUKdhXL3NCw
- MatsP
- Posts: 21038
- Joined: 06 Oct 2004, 13:58
- My articles: 4
- My images: 28
- My cats species list: 117 (i:33, k:0)
- My aquaria list: 10 (i:8)
- My BLogs: 4 (i:0, p:97)
- Spotted: 187
- Location 1: North of Cambridge
- Location 2: England.
Re: Faulty Distribution map display for Corydoras schwartzi
I doubt it. It's probably more a case of "how does that particular version of web-browser deal with the bad math that we do" (either dividing by zero or taking square root of a negative number, or something else like that - I didn't go through the entire math-sequence to see what actually went wrong, just logically saw that we get zero somewhere, and that's not what the math is expecting).bekateen wrote:I stand corrected. The occurrences do appear on the map for these species on my old Windows 7 phone, but the map doesn't appear on my new Windows 10 phone. So that may be my phone's fault, or Microsoft's fault.bekateen wrote:It's not just the Rio Purus. I just found this problem again when looking at the profiles for and . They're from the Negro. But again, same circumstance - only one occurrence, nothing more specific than Negro, and no Lat/Long data for type locality. I haven't had time to check all other entries for the Rio Negro, so I don't know how broad that problem is.
Cheers, Eric
Jools hasn't said that he's uploaded the new version, so it's still b0rked.
--
Mats
- Jools
- Expert
- Posts: 16140
- Joined: 30 Dec 2002, 15:25
- My articles: 198
- My images: 948
- My catfish: 237
- My cats species list: 87 (i:237, k:1)
- My BLogs: 7 (i:10, p:202)
- My Wishlist: 23
- Spotted: 450
- Location 1: Middle Earth,
- Location 2: Scotland
- Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
- Contact:
Re: Faulty Distribution map display for Corydoras schwartzi
I've done the upload now, however it's my first major upload from a new laptop, so would confirm it looks OK?
Jools
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- MatsP
- Posts: 21038
- Joined: 06 Oct 2004, 13:58
- My articles: 4
- My images: 28
- My cats species list: 117 (i:33, k:0)
- My aquaria list: 10 (i:8)
- My BLogs: 4 (i:0, p:97)
- Spotted: 187
- Location 1: North of Cambridge
- Location 2: England.
Re: Faulty Distribution map display for Corydoras schwartzi
It seems to work, once I reloaded the page properly (Ctrl-F5).
--
Mats
--
Mats
- bekateen
- Posts: 9328
- Joined: 09 Sep 2014, 17:50
- I've donated: $40.00!
- My articles: 4
- My images: 141
- My cats species list: 145 (i:105, k:35)
- My aquaria list: 41 (i:18)
- My BLogs: 45 (i:150, p:2729)
- My Wishlist: 35
- Spotted: 183
- Location 1: USA, California, Stockton
- Location 2: USA, California, Stockton
- Contact:
Re: Faulty Distribution map display for Corydoras schwartzi
Yes, it works on my Windows 10 phone too. Thanks guys, another great bug fix.
Cheers, Eric
Cheers, Eric
Find me on YouTube & Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code bekateen for 15% off your order. Also, for you Swifties: Https://youtu.be/ZUKdhXL3NCw
- bekateen
- Posts: 9328
- Joined: 09 Sep 2014, 17:50
- I've donated: $40.00!
- My articles: 4
- My images: 141
- My cats species list: 145 (i:105, k:35)
- My aquaria list: 41 (i:18)
- My BLogs: 45 (i:150, p:2729)
- My Wishlist: 35
- Spotted: 183
- Location 1: USA, California, Stockton
- Location 2: USA, California, Stockton
- Contact:
Re: Faulty Distribution map display for Corydoras schwartzi
P.S., I still get a similar error message ("out of stack space") in Windows 10 (phone) if I exit and then reenter the map for Schwartzi as described in the OP, but at least now the map works right the first time, and works again if I reload/refresh the page and try again.
I also tested the schwartzi page on my PC running Win 7. Got similar errors (in different phrasing) when entering/leaving/reentering the map using IE 11 ("e:Error: Out of stack space"), Firefox ("e:InternalError: Too much recursion") and Chrome ("e:RangeError: Maximum call stack size exceeded").
The maps work the first time, and I don't know how many people try to enter, leave, and enter the map again without first leaving the entire page and returning to it (which resets the map and doesn't cause an error as far as I can tell). So... Close enough in my book, but I'll let you guys decide if you want to pursue it further.
Cheers, Eric
I also tested the schwartzi page on my PC running Win 7. Got similar errors (in different phrasing) when entering/leaving/reentering the map using IE 11 ("e:Error: Out of stack space"), Firefox ("e:InternalError: Too much recursion") and Chrome ("e:RangeError: Maximum call stack size exceeded").
The maps work the first time, and I don't know how many people try to enter, leave, and enter the map again without first leaving the entire page and returning to it (which resets the map and doesn't cause an error as far as I can tell). So... Close enough in my book, but I'll let you guys decide if you want to pursue it further.
Cheers, Eric
Find me on YouTube & Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code bekateen for 15% off your order. Also, for you Swifties: Https://youtu.be/ZUKdhXL3NCw
- MatsP
- Posts: 21038
- Joined: 06 Oct 2004, 13:58
- My articles: 4
- My images: 28
- My cats species list: 117 (i:33, k:0)
- My aquaria list: 10 (i:8)
- My BLogs: 4 (i:0, p:97)
- Spotted: 187
- Location 1: North of Cambridge
- Location 2: England.
Re: Faulty Distribution map display for Corydoras schwartzi
Completely missed the stack overflow error. I will try to look into that. I can reproduce on my machine. Probably won't do anything on that until at least Monday.
--
Mats
--
Mats
- Jools
- Expert
- Posts: 16140
- Joined: 30 Dec 2002, 15:25
- My articles: 198
- My images: 948
- My catfish: 237
- My cats species list: 87 (i:237, k:1)
- My BLogs: 7 (i:10, p:202)
- My Wishlist: 23
- Spotted: 450
- Location 1: Middle Earth,
- Location 2: Scotland
- Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
- Contact:
Re: Faulty Distribution map display for Corydoras schwartzi
*bump*MatsP wrote:Completely missed the stack overflow error. I will try to look into that. I can reproduce on my machine. Probably won't do anything on that until at least Monday.
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- Jools
- Expert
- Posts: 16140
- Joined: 30 Dec 2002, 15:25
- My articles: 198
- My images: 948
- My catfish: 237
- My cats species list: 87 (i:237, k:1)
- My BLogs: 7 (i:10, p:202)
- My Wishlist: 23
- Spotted: 450
- Location 1: Middle Earth,
- Location 2: Scotland
- Interests: All things aquatic, Sci-Fi, photography and travel. Oh, and beer.
- Contact:
Re: Faulty Distribution map display for Corydoras schwartzi
Is this now fixed Eric?
Jools
Jools
Owner, AquaticRepublic.com, PlanetCatfish.com & ZebraPleco.com. Please consider donating towards this site's running costs.
- bekateen
- Posts: 9328
- Joined: 09 Sep 2014, 17:50
- I've donated: $40.00!
- My articles: 4
- My images: 141
- My cats species list: 145 (i:105, k:35)
- My aquaria list: 41 (i:18)
- My BLogs: 45 (i:150, p:2729)
- My Wishlist: 35
- Spotted: 183
- Location 1: USA, California, Stockton
- Location 2: USA, California, Stockton
- Contact:
Re: Faulty Distribution map display for Corydoras schwartzi
I haven't noticed this again. Thanks.
Find me on YouTube & Facebook: http://youtube.com/user/Bekateen1; https://www.facebook.com/Bekateen
Buying caves from https://plecocaves.com? Plecocaves sponsor Bekateen's Fishroom. Use coupon code bekateen for 15% off your order. Also, for you Swifties: Https://youtu.be/ZUKdhXL3NCw