View Single Post
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#936
Originally Posted by 白い熊 View Post
Code:
Traceback (most recent call last):
  File "modrana.py", line 1015, in do_expose_event
    return self._expose_cairo(event, cr)
  File "modrana.py", line 1011, in _expose_cairo
    self.draw(cr,event)
  File "modrana.py", line 676, in draw
    self.currentDrawMethod(cr,event)
  File "modrana.py", line 754, in fullDrawMethod
    m.drawScreenOverlay(cr)
  File "modules/mod_menu.py", line 104, in drawScreenOverlay
    self.drawText(cr, text, x1, y1, w/3, h, 0) # draw a reminder
  File "modules/mod_menu.py", line 272, in drawText
    pg = pangocairo.CairoContext(cr)
cairo.Error: invalid matrix (not invertible)
Hmm, this is not an Android specific issue - I remember getting the same (cairo.Error: invalid matrix (not invertible)) error during development. I thing it was while I was working on automatic map rotation and it somehow stopped showing up. Still, there might be something Android/chroot specific triggering it.

A few questions:
How does this look like on the screen (IMHO at leas some text and graphics should be missing)?
Does this happen with or without map rotation ?
Do you use map layer overlay ?
Also an unrelated question - can you check what Qt version is available in your Chroot and if QML and PySyide/PyQt are available ? So that I know if the new QML/Qt Components based GUI is also relevant for the Andoroid Chroot or just for native environments. BTW, thanks to THP, there is now both PySide and Qt available for Android so modRana with the new Qt GUI should be also able to run natively on Android in the near future.


Also a progress update:
The GUI logic is now completely separated from the main modRana class and there are now two functional GUI modules - GTK and QML. I spent the last few days making sure that both GUIs work as expected and that there are hopefully no regressions in the GTK GUI.

The QML GUI currently only shows a white window it finally starts & shuts down cleanly so I can start porting views from AGTL (map view, Augmented Reality view, compass) and writing my own (menu, listable menu, tracklog info, poi detail, search, routing, download manager, etc.).

Also, due to outdated Qt & PySide on non-CSSU Fremantle modRana might be CSSU-only, at least for the start. CSSU also basically has the same PySide, Qt, QML and Qt Components versions as Harmattan, making maintenance easier due to single code base.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)

Last edited by MartinK; 2012-02-05 at 17:14.
 

The Following 5 Users Say Thank You to MartinK For This Useful Post: