Various bugs in 6.4.96-36

15 views
Skip to first unread message

Seldor Sore

unread,
Aug 1, 2026, 8:49:48 AMAug 1
to TopoDroid
Hi
I just upgraded to 6.4.96-36 and noted that when going into the devices screen from a survey, the back-button does nothing anymore. I can only close this screen via menu->close
The same is true for the project dir screen from the main menu (cancel button works though)

3D-Viewer:
  1. A Multi-Centerline survey now correctly shows as multiple surveys in the graphical viewer. However in the equate-dialogue such a survey is now shown for example 3 times, So in the dialogue I have to equate between Survey A and Survey B, Survey B and Survey B -- not sure how to use that dialogue like that, Survey B should only be displayed once :)
  2. Also in the equates view (graphical display of the centerlines), selecting a station is still very very hard. I don't know if it only accepts it in a very small radius? This is nothing new, but I always find it very very hard to select a station with the finger just to move it to the correct place, it usually takes about 20 tries until I get it. What's new is, that this screen now is very slow, something is off and now often android even reports that the app is stuck. Maybe that's even the cause for the 'hard to select' thing. One symptom of it is, that when I suceesfully select a station (the circle shows immediately), it takes about 2-4 seconds until the title updates showing that station.
    1. After experimenting a while, Android even keeps insisting, that TopoDroid is not reacting anymore. When I click wait, I can continue to use it but the Android dialogue now keeps popping up every few seconds. It keeps popping up even when I quit topodroid !
    2. If you don't understand what I mean, I can record a video, but just try to select and move one sketch in that viewer, and it's close to impossible due to the delays
    3. Also I'd expect that as long as another station is within the circle, it would be able to connect it, but it seems that it needs to be much, much closer, making it very hard to connect it, because it seems it has to be like in the inner 10% of that circle
  3. And in the station inline-dialogue (the one that's shown on a single short click), at least on my device, the buttons are pushed outside the screen when the station+survey name get too long. Maybe it should either just clip or break on another line (making the whole blue area bigger - which would be much better than clipping)
  4. And I just got a great idea: Why not make the station dialog accessible as well by simply clicking on the blue area? To me that would be very logical to click on that text to 'show more'. Could also be done with some kind of an "(i)" icon, but that would again consume space.
  5. Long-Tap Station selection for the dialog: I think you changed some logic here and it feels much better now. But from what I'm used from other programs, I think it would be better if the dialogue would not wait to show on keyup but on "keydown without movement for 1sec", I think that would feel much better since you see the action after that 1sec and not only after keyup (when you'd already kinda have given up that something happens). This would also be more consistent with other long-tap actions in TopoDroid.
And a last thing Claude found while I analyzed what some values might mean in a translation, I don't exactly know/understand how this calculation works, calculating the length and D- and D+ of a cave (or two selected points in the 3D Viewer), but there's something wrong:
    1. The weighting comment at TglMeasure.java:30-32 and the code at TglParser.java:320-322 disagree:

      if ( cln > 10.0 ) {
        double dz = leg.len * Math.sin( leg.cln );
        if ( cln < 30.0 ) dz *= ( 30.0 - cln )/20.0;   // <-- ramp runs backwards

      The comment specifies (clino - 10)/20 for 10°–30°, which ramps 0 → 1 and joins continuously with the 0 below 10° and the 1 above 30°. The code's (30 - cln)/20 ramps 1 → 0 instead, giving a discontinuous weight: 0 below 10°, jumping to ≈1 just above 10°, falling to 0 at 30°, then jumping back to 1 above 30°. So a 29° leg contributes almost nothing while an 11° leg contributes almost fully — the inverse of the intent. Looks like a sign slip; (cln - 10.0)/20.0 is what the comment describes.

Marco Corvi

unread,
Aug 1, 2026, 11:23:37 AMAug 1
to topo...@googlegroups.com


On Sat, Aug 1, 2026, 14:49 Seldor Sore <matthias...@gmail.com> wrote:
Hi
I just upgraded to 6.4.96-36 and noted that when going into the devices screen from a survey, the back-button does nothing anymore. I can only close this screen via menu->close
The same is true for the project dir screen from the main menu (cancel button works though)

android version ?

3D-Viewer:
  1. A Multi-Centerline survey now correctly shows as multiple surveys in the graphical viewer. However in the equate-dialogue such a survey is now shown for example 3 times, So in the dialogue I have to equate between Survey A and Survey B, Survey B and Survey B -- not sure how to use that dialogue like that, Survey B should only be displayed once :)
dialog must be disabled for disconnected surveys.
it could use the fullname of surveys but user cannot tell which is which because the subnames are set by the program.
  1. Also in the equates view (graphical display of the centerlines), selecting a station is still very very hard. I don't know if it only accepts it in a very small radius?
this is the system configuration value for a tap on a point.
i might increase it by a factor ...
  1. This is nothing new, but I always find it very very hard to select a station with the finger just to move it to the correct place, it usually takes about 20 tries until I get it. What's new is, that this screen now is very slow,
this is symptom of ANR (the android dialog).
please attach surveys and tdconfig file you are testing with.
  1. something is off and now often android even reports that the app is stuck. Maybe that's even the cause for the 'hard to select' thing. One symptom of it is, that when I suceesfully select a station (the circle shows immediately), it takes about 2-4 seconds until the title updates showing that station.
    1. After experimenting a while, Android even keeps insisting, that TopoDroid is not reacting anymore. When I click wait, I can continue to use it but the Android dialogue now keeps popping up every few seconds. It keeps popping up even when I quit topodroid !
    2. If you don't understand what I mean, I can record a video, but just try to select and move one sketch in that viewer, and it's close to impossible due to the delays
    3. Also I'd expect that as long as another station is within the circle, it would be able to connect it, but it seems that it needs to be much, much closer, making it very hard to connect it, because it seems it has to be like in the inner 10% of that circle
  2. And in the station inline-dialogue (the one that's shown on a single short click), at least on my device, the buttons are pushed outside the screen when the station+survey name get too long. Maybe it should either just clip or break on another line (making the whole blue area bigger - which would be much better than clipping)
i will consider this
  1. And I just got a great idea: Why not make the station dialog accessible as well by simply clicking on the blue area? To me that would be very logical to click on that text to 'show more'. Could also be done with some kind of an "(i)" icon, but that would again consume space.
nice
  1. Long-Tap Station selection for the dialog: I think you changed some logic here and it feels much better now. But from what I'm used from other programs, I think it would be better if the dialogue would not wait to show on keyup but on "keydown without movement for 1sec", I think that would feel much better since you see the action after that 1sec and not only after keyup (when you'd already kinda have given up that something happens). This would also be more consistent with other long-tap actions in TopoDroid.
please provide pull request

And a last thing Claude found while I analyzed what some values might mean in a translation, I don't exactly know/understand how this calculation works, calculating the length and D- and D+ of a cave (or two selected points in the 3D Viewer), but there's something wrong:
    1. The weighting comment at TglMeasure.java:30-32 and the code at TglParser.java:320-322 disagree:

      if ( cln > 10.0 ) {
        double dz = leg.len * Math.sin( leg.cln );
        if ( cln < 30.0 ) dz *= ( 30.0 - cln )/20.0;   // <-- ramp runs backwards

      The comment specifies (clino - 10)/20 for 10°–30°, which ramps 0 → 1 and joins continuously with the 0 below 10° and the 1 above 30°. The code's (30 - cln)/20 ramps 1 → 0 instead, giving a discontinuous weight: 0 below 10°, jumping to ≈1 just above 10°, falling to 0 at 30°, then jumping back to 1 above 30°. So a 29° leg contributes almost nothing while an 11° leg contributes almost fully — the inverse of the intent. Looks like a sign slip; (cln - 10.0)/20.0 is what the comment describes.
comment is right
implementation was wrong
thx

--
You received this message because you are subscribed to the Google Groups "TopoDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topodroid+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/topodroid/9278f24b-8134-4d00-b71f-97f72858c37dn%40googlegroups.com.

Seldor Sore

unread,
Aug 3, 2026, 4:03:47 AM (13 days ago) Aug 3
to TopoDroid
Hi Marco
Thanks for the detailed reply and for this reply, I've already updated to 6.4.97 (not sure what commit it corresponds to tough).




Hi
I just upgraded to 6.4.96-36 and noted that when going into the devices screen from a survey, the back-button does nothing anymore. I can only close this screen via menu->close
The same is true for the project dir screen from the main menu (cancel button works though)

android version ?
Android 15 on Fairphone 5.
Did you already fix the first dialog? Because that one is working now. But from the main screen going in the project directory selection screen, the back button still does now work.

3D-Viewer:
  1. A Multi-Centerline survey now correctly shows as multiple surveys in the graphical viewer. However in the equate-dialogue such a survey is now shown for example 3 times, So in the dialogue I have to equate between Survey A and Survey B, Survey B and Survey B -- not sure how to use that dialogue like that, Survey B should only be displayed once :)
dialog must be disabled for disconnected surveys.
it could use the fullname of surveys but user cannot tell which is which because the subnames are set by the program.
Ah so you mean that an unconnected survey is split into three 'synthetical' surveys by and you'd still need to know which is meant? Couldn't this be easily found out by the code? I mean with my example of the unconnected Survey B, the dialogue would still show A and B and since all station names are unique in B, it could easily internally map it to the correct subsurvey? I quite like this dialog because most often it's much faster using that dialog since I already know (or quickly see) which stations are related, then it's much faster to enter them by hand than painstakingly trying to align them.
  1. Also in the equates view (graphical display of the centerlines), selecting a station is still very very hard. I don't know if it only accepts it in a very small radius?
this is the system configuration value for a tap on a point.
i might increase it by a factor ...
That would be great, currently it seems to be so small, I rarely can select it when using the finger 
  1. This is nothing new, but I always find it very very hard to select a station with the finger just to move it to the correct place, it usually takes about 20 tries until I get it. What's new is, that this screen now is very slow,
this is symptom of ANR (the android dialog).
please attach surveys and tdconfig file you are testing with.
Concerning which of these points exactly? Not being able to move it (I think it's the same problem as above, that the radius is too small) or about the slow resposne? I believe you mean the second.
It's very easy to reproduce:
  1. create a survey "test" with a measurement from A to B
  2. create a survey "test" with unconnected centerlines: B to C and 0 to 1
  3. Add them both to a new TDR project and enter the equate screen
  4. Start selecting and moving them and very soon it gets very sluggish
    1. I believe it starts when I one again miss a station and the dialog shows "TopoDroidManager test2 null" (this could even be the bug itself)
    2. This leads to a moment when I cannot select anything at all anymore, after a while (1-5sec) it seems to be 'released' again and selecting a station starts to work again
Ah and another suggestion: Show station points on that screen. Currently my only indicator is the Label or as long as the centerline makes a good zigzag I can assume the real location of the point, but usually I automatically click the label as it's the only visible element, but since it's offset from the real point, this also drives me more away from the real location where topodroid expects the click. Having the dot would make tapping the right place easier.
  1. something is off and now often android even reports that the app is stuck. Maybe that's even the cause for the 'hard to select' thing. One symptom of it is, that when I suceesfully select a station (the circle shows immediately), it takes about 2-4 seconds until the title updates showing that station.
    1. After experimenting a while, Android even keeps insisting, that TopoDroid is not reacting anymore. When I click wait, I can continue to use it but the Android dialogue now keeps popping up every few seconds. It keeps popping up even when I quit topodroid !
    2. If you don't understand what I mean, I can record a video, but just try to select and move one sketch in that viewer, and it's close to impossible due to the delays
    3. Also I'd expect that as long as another station is within the circle, it would be able to connect it, but it seems that it needs to be much, much closer, making it very hard to connect it, because it seems it has to be like in the inner 10% of that circle
  2. And in the station inline-dialogue (the one that's shown on a single short click), at least on my device, the buttons are pushed outside the screen when the station+survey name get too long. Maybe it should either just clip or break on another line (making the whole blue area bigger - which would be much better than clipping)
i will consider this
thanks for fixing, it works now. Clipping is no issue anymore thanks to the button for the dialog! 
  1. And I just got a great idea: Why not make the station dialog accessible as well by simply clicking on the blue area? To me that would be very logical to click on that text to 'show more'. Could also be done with some kind of an "(i)" icon, but that would again consume space.
nice
Thanks for adding that button! 
  1. Long-Tap Station selection for the dialog: I think you changed some logic here and it feels much better now. But from what I'm used from other programs, I think it would be better if the dialogue would not wait to show on keyup but on "keydown without movement for 1sec", I think that would feel much better since you see the action after that 1sec and not only after keyup (when you'd already kinda have given up that something happens). This would also be more consistent with other long-tap actions in TopoDroid.
please provide pull request
I'm no Android developer so sadly I don't think I can help with that. Tried opening the project once in Android Studio, but it seems it quires a lot more manual setup which I found no documentation about. But another solution just surfaced now that I'm trying the new button: I think the long-press simply is not necessary anymore since clicking the station and then selecting the (i) is just as fast and all these long-clicks are not very intuitive anyway (the user has to find them in the manual to even know about them) - so my suggestion would be, drop the long-press alltogether and keep the new workflow.

Thanks for all your work
Matt 

Marco Corvi

unread,
Aug 3, 2026, 5:07:09 AM (13 days ago) Aug 3
to topo...@googlegroups.com


On Mon, Aug 3, 2026, 10:03 Seldor Sore <matthias...@gmail.com> wrote:
Hi Marco
Thanks for the detailed reply and for this reply, I've already updated to 6.4.97 (not sure what commit it corresponds to tough).




Hi
I just upgraded to 6.4.96-36 and noted that when going into the devices screen from a survey, the back-button does nothing anymore. I can only close this screen via menu->close
The same is true for the project dir screen from the main menu (cancel button works though)

android version ?
Android 15 on Fairphone 5.
Did you already fix the first dialog? Because that one is working now. But from the main screen going in the project directory selection screen, the back button still does now work.

tested on android-16 samsung q4
and it works.

good that you have the menu CLOSE.

3D-Viewer:
  1. A Multi-Centerline survey now correctly shows as multiple surveys in the graphical viewer. However in the equate-dialogue such a survey is now shown for example 3 times, So in the dialogue I have to equate between Survey A and Survey B, Survey B and Survey B -- not sure how to use that dialogue like that, Survey B should only be displayed once :)
dialog must be disabled for disconnected surveys.
it could use the fullname of surveys but user cannot tell which is which because the subnames are set by the program.
Ah so you mean that an unconnected survey is split into three 'synthetical' surveys by and you'd still need to know which is meant? Couldn't this be easily found out by the code? I mean with my example of the unconnected Survey B, the dialogue would still show A and B and since all station names are unique in B, it could easily internally map it to the correct subsurvey? I quite like this dialog because most often it's much faster using that dialog since I already know (or quickly see) which stations are related, then it's much faster to enter them by hand than painstakingly trying to align them.

unfortunately once loaded the data are split in connected components, and the relation to the survey in the database is lost.

with your suggestion a user can equate two stations in the same connected component.

the purpose of the view is to have a graphical control on which stations are equated.
entering the names it is more likely to make mistakes.
  1. Also in the equates view (graphical display of the centerlines), selecting a station is still very very hard. I don't know if it only accepts it in a very small radius?
this is the system configuration value for a tap on a point.
i might increase it by a factor ...
That would be great, currently it seems to be so small, I rarely can select it when using the finger 

it used to work fine on my androids.
a factor would require another setting.
  1. This is nothing new, but I always find it very very hard to select a station with the finger just to move it to the correct place, it usually takes about 20 tries until I get it. What's new is, that this screen now is very slow,
this is symptom of ANR (the android dialog).
please attach surveys and tdconfig file you are testing with.
Concerning which of these points exactly? Not being able to move it (I think it's the same problem as above, that the radius is too small) or about the slow resposne? I believe you mean the second.

the second

It's very easy to reproduce:
  1. create a survey "test" with a measurement from A to B
  2. create a survey "test" with unconnected centerlines: B to C and 0 to 1
  3. Add them both to a new TDR project and enter the equate screen
  4. Start selecting and moving them and very soon it gets very sluggish
    1. I believe it starts when I one again miss a station and the dialog shows "TopoDroidManager test2 null" (this could even be the bug itself)
    2. This leads to a moment when I cannot select anything at all anymore, after a while (1-5sec) it seems to be 'released' again and selecting a station starts to work again
tried several times and could not reproduce.
the display gets sluggish if i try to make a project with big surveys (well over 1000 stations) because of the refresh of the names of the stations.
clearly that is asking too much to the android system

Ah and another suggestion: Show station points on that screen. Currently my only indicator is the Label or as long as the centerline makes a good zigzag I can assume the real location of the point, but usually I automatically click the label as it's the only visible element, but since it's offset from the real point, this also drives me more away from the real location where topodroid expects the click. Having the dot would make tapping the right place easier.

ok, dots can be added to mark the station points
  1. something is off and now often android even reports that the app is stuck. Maybe that's even the cause for the 'hard to select' thing. One symptom of it is, that when I suceesfully select a station (the circle shows immediately), it takes about 2-4 seconds until the title updates showing that station.
    1. After experimenting a while, Android even keeps insisting, that TopoDroid is not reacting anymore. When I click wait, I can continue to use it but the Android dialogue now keeps popping up every few seconds. It keeps popping up even when I quit topodroid !
    2. If you don't understand what I mean, I can record a video, but just try to select and move one sketch in that viewer, and it's close to impossible due to the delays
    3. Also I'd expect that as long as another station is within the circle, it would be able to connect it, but it seems that it needs to be much, much closer, making it very hard to connect it, because it seems it has to be like in the inner 10% of that circle
  2. And in the station inline-dialogue (the one that's shown on a single short click), at least on my device, the buttons are pushed outside the screen when the station+survey name get too long. Maybe it should either just clip or break on another line (making the whole blue area bigger - which would be much better than clipping)
i will consider this
thanks for fixing, it works now. Clipping is no issue anymore thanks to the button for the dialog! 
  1. And I just got a great idea: Why not make the station dialog accessible as well by simply clicking on the blue area? To me that would be very logical to click on that text to 'show more'. Could also be done with some kind of an "(i)" icon, but that would again consume space.
nice
Thanks for adding that button! 
  1. Long-Tap Station selection for the dialog: I think you changed some logic here and it feels much better now. But from what I'm used from other programs, I think it would be better if the dialogue would not wait to show on keyup but on "keydown without movement for 1sec", I think that would feel much better since you see the action after that 1sec and not only after keyup (when you'd already kinda have given up that something happens). This would also be more consistent with other long-tap actions in TopoDroid.
please provide pull request
I'm no Android developer so sadly I don't think I can help with that. Tried opening the project once in Android Studio, but it seems it quires a lot more manual setup which I found no documentation about. But another solution just surfaced now that I'm trying the new button: I think the long-press simply is not necessary anymore since clicking the station and then selecting the (i) is just as fast and all these long-clicks are not very intuitive anyway (the user has to find them in the manual to even know about them) - so my suggestion would be, drop the long-press alltogether and keep the new workflow.

at the moment the long-tap seems unnecessary.
however if the station dialog gets more rich with informations, it can be useful to jump straight to that, instead of going through the station bar.


Thanks for all your work
Matt 

--
You received this message because you are subscribed to the Google Groups "TopoDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topodroid+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages