Tryton - Issues

 

Issue8321

Title Empty calendar view with Tryton GTK client 5.0.9 on Windows
Priority bug Status chatting
Superseder Nosy List ced, edbo
Type Components tryton
Assigned To Keywords
Reviews

Created on 2019-04-30.22:45:46 by edbo, last changed by edbo.

Messages
msg49864 (view) Author: [hidden] (edbo) Date: 2019-05-27.17:57:08
Today after updating MSYS2 with pacman -Syu GDB started to work. I was able to run simple.py from the goocalendar package.

Traceback:
$ gdb --args python3
GNU gdb (GDB) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-msys".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...(no debugging symbols found)...done.


(gdb) run simple.py
Starting program: /mingw32/bin/python3 simple.py
[New Thread 8564.0xce8]
warning: `/c/WINDOWS/SYSTEM32/ntdll.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: `/c/WINDOWS/System32/wow64.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: `/c/WINDOWS/System32/wow64win.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
warning: dll path for "WOW64_IMAGE_SECTION" can not be evaluated
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: dll path for "WOW64_IMAGE_SECTION" can not be evaluated
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: dll path for "WOW64_IMAGE_SECTION" can not be evaluated
warning: Could not load shared library symbols for WOW64_IMAGE_SECTION.
Do you need "set solib-search-path" or "set sysroot"?
warning: `/c/WINDOWS/System32/wow64cpu.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
[New Thread 8564.0x25b8]
[New Thread 8564.0x2ef0]
[New Thread 8564.0x29ec]
[New Thread 8564.0x1024]

And then gdb and the terminal frooze. No interaction possible anymore. I had to kill the terminal and the gdb process.
So it seems things are messed with i386, i686 and 32 bits and 64 bits. But I sometime got a message like
"cannot read from memory 0x19000000".
I have to reinstall everything, but maybe there is already some clue.
msg49697 (view) Author: [hidden] (edbo) Date: 2019-05-10.17:38:21
I also tested the goocalendar example on my machine with windows 10 and got a Segmentation Fault too.
I digged a bit into the source of goocalendar and it seems that the segfaults comes from the self.text.get_natural_extends() function. I commented those and added a fixed value, and no segfault. The calendar is shown.

You can find those in http://hg.tryton.org/goocalendar/file/tip/goocalendar/_calendar.py on the lines
http://hg.tryton.org/goocalendar/file/tip/goocalendar/_calendar.py#l1045
http://hg.tryton.org/goocalendar/file/tip/goocalendar/_calendar.py#l1136
http://hg.tryton.org/goocalendar/file/tip/goocalendar/_calendar.py#l1158
http://hg.tryton.org/goocalendar/file/tip/goocalendar/_calendar.py#l1164
http://hg.tryton.org/goocalendar/file/tip/goocalendar/_calendar.py#l1250
http://hg.tryton.org/goocalendar/file/tip/goocalendar/_calendar.py#l1324
http://hg.tryton.org/goocalendar/file/tip/goocalendar/_calendar.py#l1351

However, dragging and dropping is kind of working, but sometimes after dropping the item in the new place it segfaults.
msg49589 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-05-03.17:15:55
GooCalendar was not installed on the build machine.
But when it is installed, there is a Segmentation Fault (could be seen with GooCalendar example).
I can not debug this on the Windows machine because gdb generates also a Segmentation Fault. Maybe it is the machine that has a problem. So I left GooCalendar installed so it will be include in future release.
msg49261 (view) Author: [hidden] (edbo) Date: 2019-04-30.22:45:46
When opening a calendar view it shows a complete empty view on Windows.

On Linux I have this too, but I can do a pip install goocalendar and then it's working. 

Is this because goocalender is just an extra_require in the setup.py? It seems that it's never included in the builds.
History
Date User Action Args
2019-05-27 17:57:09edbosetmessages: + msg49864
2019-05-13 22:38:37cedsetstatus: testing -> chatting
assignedto: ced ->
2019-05-10 17:38:22edbosetmessages: + msg49697
2019-05-03 17:15:56cedsetstatus: unread -> testing
assignedto: ced
messages: + msg49589
nosy: + ced
2019-05-02 18:41:46cedsettitle: Empty calender view with Tryton GTK client 5.0.9 on Windows -> Empty calendar view with Tryton GTK client 5.0.9 on Windows
2019-04-30 22:45:46edbocreate

Showing 10 items. Show all history (warning: this could be VERY long)