[GRASS-user] disappearing d.mon

Colleagues,

     Finally, after probably a year I now have no errors about incompatible versions of wxwidgets, wxpython, and GRASS. However, when I execute

d.mon wx0

it pops up the box, but which then spontaneously disappears after about 10-15 seconds. It leaves behind the MONITORS/wx0 file. Honestly I'm pretty much at my wits end with wxwidgets.

I run manjaro(arch) linux with the the custom build by Sylvain Poulain at

https://github.com/giscan/AUR-grass

uname -a
Linux sonnyboy 5.4.116-1-MANJARO #1 SMP PREEMPT Sun May 2 11:10:35 UTC 2021 x86_64 GNU/Linux

Thanks in advance for any help, Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David W. Roberts office 406-994-5670
Professor FAX 406-994-3190
Department of Ecology email droberts@montana.edu
117 AJM Johnson Hall
Montana State University
Bozeman, MT 59717-3460

On 12/05/2021 13:30, Dave Roberts wrote:

Colleagues,

 Finally, after probably a year I now have no errors about incompatible versions of wxwidgets, wxpython, and GRASS\.  However, when I execute

d.mon wx0

it pops up the box, but which then spontaneously disappears after about 10-15 seconds. It leaves behind the MONITORS/wx0 file. Honestly I'm pretty much at my wits end with wxwidgets.

I run manjaro(arch) linux with the the custom build by Sylvain Poulain at

https://github.com/giscan/AUR-grass

uname -a
Linux sonnyboy 5.4.116-1-MANJARO #1 SMP PREEMPT Sun May 2 11:10:35 UTC 2021 x86_64 GNU/Linux

Thanks in advance for any help, Dave

Same here:
- Arch Linux
- grass 7.8.5
- GTK 3.24.29
- wxGTK2/3 3.0.5
- system Python 3.9.4

After a 'd.mon start=wxN', the monitor comes
up, I can use 'd.*' commands to draw into it.
I can resize and move the window, and I can
interact with the UI elements in the icon and
status bars. However: When I move the mouse
cursor inside the monitor's map canvas, d.mon
crashes and closes its window (after a delay
of a few seconds).

I can then use 'd.mon stop=wxN' and start
the monitor again, with the same behaviour
as above.

Best,

Ben

Hi,

On Wed, May 12, 2021 at 4:26 PM Benjamin Ducke <benducke@fastmail.fm> wrote:

On 12/05/2021 13:30, Dave Roberts wrote:
> Colleagues,
>
> Finally, after probably a year I now have no errors about
> incompatible versions of wxwidgets, wxpython, and GRASS. However, when
> I execute
>
> d.mon wx0
>
> it pops up the box, but which then spontaneously disappears after about
> 10-15 seconds. It leaves behind the MONITORS/wx0 file. Honestly I'm
> pretty much at my wits end with wxwidgets.
>
> I run manjaro(arch) linux with the the custom build by Sylvain Poulain at
>
> https://github.com/giscan/AUR-grass
>
> uname -a
> Linux sonnyboy 5.4.116-1-MANJARO #1 SMP PREEMPT Sun May 2 11:10:35 UTC
> 2021 x86_64 GNU/Linux
>
> Thanks in advance for any help, Dave

Same here:
- Arch Linux
- grass 7.8.5
- GTK 3.24.29
- wxGTK2/3 3.0.5
- system Python 3.9.4

After a 'd.mon start=wxN', the monitor comes
up, I can use 'd.*' commands to draw into it.
I can resize and move the window, and I can
interact with the UI elements in the icon and
status bars. However: When I move the mouse
cursor inside the monitor's map canvas, d.mon
crashes and closes its window (after a delay
of a few seconds).

I can then use 'd.mon stop=wxN' and start
the monitor again, with the same behaviour
as above.

I was able to reproduce this problem in a fresh Manjaro installation
in Virtualbox.

I have created a new bug report:
https://github.com/OSGeo/grass/issues/1576

Now someone with gdb and child process debugging skills is needed to
get a proper backtrace.

best,
Markus

Dave, Ben,

Thanks to Anna and Tomas I now remember that the same happened in
Fedora as well (last year).

It seems that Arch/Manjaro are still missing this upstream fix for
wxPseudoDC.FindObjects crash:
https://github.com/wxWidgets/Phoenix/pull/1849

(in Fedora, it had been backported in
https://src.fedoraproject.org/rpms/python-wxpython4/c/f5471fb86aaae46a686b85c654fcbb98516355e6?branch=rawhide)

Hence it is not directly a GRASS GIS problem but has to be fixed in wxWidgets.
Please contact the maintainer of Arch/Manjaro wxWidgets to patch it
accordingly and release an update (such as Fedora has done).

Best,
Markus

Thanks Markus! I'll push this along.

On 5/15/21 3:01 PM, Markus Neteler wrote:

Dave, Ben,

Thanks to Anna and Tomas I now remember that the same happened in
Fedora as well (last year).

It seems that Arch/Manjaro are still missing this upstream fix for
wxPseudoDC.FindObjects crash:
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FwxWidgets%2FPhoenix%2Fpull%2F1849&amp;data=04|01|droberts%40montana.edu|0414fc5be7c743f8e1a508d917e49a10|324aa97a03a644fc91e43846fbced113|0|0|637567093344262380|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&amp;sdata=c9XBx4ParX5kgjTPR%2FfqA19n1%2BNPp281L0UTHsiy7vA%3D&amp;reserved=0

(in Fedora, it had been backported in
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsrc.fedoraproject.org%2Frpms%2Fpython-wxpython4%2Fc%2Ff5471fb86aaae46a686b85c654fcbb98516355e6%3Fbranch%3Drawhide&amp;data=04|01|droberts%40montana.edu|0414fc5be7c743f8e1a508d917e49a10|324aa97a03a644fc91e43846fbced113|0|0|637567093344262380|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&amp;sdata=oZDugXEeBXWfKiubiktVxu4Vlr074%2FAdA0ii3AyXQmI%3D&amp;reserved=0)

Hence it is not directly a GRASS GIS problem but has to be fixed in wxWidgets.
Please contact the maintainer of Arch/Manjaro wxWidgets to patch it
accordingly and release an update (such as Fedora has done).

Best,
Markus

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David W. Roberts office 406-994-5670
Professor FAX 406-994-3190
Department of Ecology email droberts@montana.edu
117 AJM Johnson Hall
Montana State University
Bozeman, MT 59717-3460

This has now been fixed in the Arch Linux repos
(package 'wxgtk3 3.0.5.1').

I can finally use 'd.mon' again. What a relief!
Thanks, everybody, for chasing this one down!

Best,

Ben

On 16/05/2021 01:29, Dave Roberts wrote:

Thanks Markus! I'll push this along.

On 5/15/21 3:01 PM, Markus Neteler wrote:

Dave, Ben,

Thanks to Anna and Tomas I now remember that the same happened in
Fedora as well (last year).

It seems that Arch/Manjaro are still missing this upstream fix for
wxPseudoDC.FindObjects crash:
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FwxWidgets%2FPhoenix%2Fpull%2F1849&amp;data=04|01|droberts%40montana.edu|0414fc5be7c743f8e1a508d917e49a10|324aa97a03a644fc91e43846fbced113|0|0|637567093344262380|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&amp;sdata=c9XBx4ParX5kgjTPR%2FfqA19n1%2BNPp281L0UTHsiy7vA%3D&amp;reserved=0

(in Fedora, it had been backported in
https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsrc.fedoraproject.org%2Frpms%2Fpython-wxpython4%2Fc%2Ff5471fb86aaae46a686b85c654fcbb98516355e6%3Fbranch%3Drawhide&amp;data=04|01|droberts%40montana.edu|0414fc5be7c743f8e1a508d917e49a10|324aa97a03a644fc91e43846fbced113|0|0|637567093344262380|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000&amp;sdata=oZDugXEeBXWfKiubiktVxu4Vlr074%2FAdA0ii3AyXQmI%3D&amp;reserved=0)

Hence it is not directly a GRASS GIS problem but has to be fixed in wxWidgets.
Please contact the maintainer of Arch/Manjaro wxWidgets to patch it
accordingly and release an update (such as Fedora has done).

Best,
Markus