Wineserver crashes when saving a QML file in QtCreator

Questions about Wine on Linux
Locked
boggins
Newbie
Newbie
Posts: 3
Joined: Thu Feb 07, 2013 5:04 pm

Wineserver crashes when saving a QML file in QtCreator

Post by boggins » Fri Feb 08, 2013 7:59 am

Hello. I'm trying to use QtCreator 2.4.1 (an IDE for Qt/c++ development) under Wine 1.5.23 from Ubuntu 12.04. (QtCreator is available under Linux, but doesn't have support for targetting Symbian).

I can start QtCreator OK under wine, and I can create for example a hello world project – e.g. the default QtQuick project which QtCreator generates for you – and I can build this for a Symbian target. I get a .sis file generated, and I can transfer this to my mobile (N8) where it runs OK. So far so good.

The trouble starts when I attempt to edit this project. If I have recently created this project from the QtCreator wizard (during the same session of QtCreator) then I can add new files, edit existing files, create new .sis packages and so on.

If however I load up a previously created project – even if it is an un-edited wizard-created sample project – wine crashes whenever I attempt to save an edited QML file. This happens to both new QML files added to the project, and to any of the wizard-created QML files. Any sort of edit to the file – even just adding a space – leads to a crash when I attempt to save the edited file. Editing C++ files does not cause this problem.

Wineserver crashes (and QtCreator freezes). Apport reports a segfault with the following:

source .... not located in a known VMA region (needed readable region)!

and gdb gives me this backtrace:

(gdb) backtrace
#0 wake_up (obj=0x8c2c0a0, max=0) at thread.c:808
#1 0x0804a796 in async_set_result (obj=0x8c2c100, status=268, total=0,
apc=2076411152) at async.c:302
#2 0x08078898 in req_select (req=0x8bb77a8, reply=0xbfe9deac) at thread.c:1377
#3 0x08070c7c in call_req_handler (thread=<optimized out>) at request.c:274
#4 0x08071647 in read_request (thread=0x8bb76c0) at request.c:329
#5 0x08077778 in thread_poll_event (fd=0x8bb7868, event=1) at thread.c:258
#6 0x08055db7 in main_loop_epoll () at fd.c:443
#7 0x080560b5 in main_loop () at fd.c:883
#8 0x0804a147 in main ()

Just to repeat: the problem does not happen with QML files from newly created projects; it happens with existing projects loaded into QtCreator; and only QML files appear to cause the problem.

I've posted similar info to the Qt forums:
http://qt-project.org/forums/viewthread/24623/

Can anyone help?

User avatar
dimesio
Moderator
Moderator
Posts: 12880
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wineserver crashes when saving a QML file in QtCreator

Post by dimesio » Fri Feb 08, 2013 8:16 am

Post plain terminal output from Wine.

boggins
Newbie
Newbie
Posts: 3
Joined: Thu Feb 07, 2013 5:04 pm

Re: Wineserver crashes when saving a QML file in QtCreator

Post by boggins » Fri Feb 08, 2013 9:18 am

When I run from a terminal I get a whole lot of "fixme" messages as follows:

Code: Select all

fixme:system:SetProcessDPIAware stub!
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:ole:snapshot_QueryGetData (0x180dd0, 0x328cfc {cf 000d ptd (nil) aspect 1 lindex -1 tymed 1})
fixme:ole:snapshot_QueryGetData (0x180dd0, 0x328cfc {cf 000d ptd (nil) aspect 1 lindex -1 tymed 4})
fixme:ole:snapshot_QueryGetData (0x180dd0, 0x328cfc {cf 0001 ptd (nil) aspect 1 lindex -1 tymed 1})
fixme:ole:snapshot_QueryGetData (0x180dd0, 0x328cfc {cf 0001 ptd (nil) aspect 1 lindex -1 tymed 4})
fixme:ole:snapshot_QueryGetData (0x180dd0, 0x328ce0 {cf c052 ptd (nil) aspect 1 lindex -1 tymed 1})
fixme:ole:snapshot_QueryGetData (0x180dd0, 0x328ce0 {cf c052 ptd (nil) aspect 1 lindex -1 tymed 4})
fixme:win:FlashWindowEx 0x32f0f4
fixme:imm:NotifyIME IMC_SETCANDIDATEPOS
fixme:imm:ImmReleaseContext (0x100b8, 0x192e60): stub
fixme:win:FlashWindowEx 0x32f124
fixme:winhttp:WinHttpDetectAutoProxyConfigUrl discovery via DHCP not supported
fixme:winsock:WSAIoctl WS_SIO_UDP_CONNRESET stub
fixme:winsock:WSAIoctl WS_SIO_UDP_CONNRESET stub
fixme:win:FlashWindowEx 0x32c9f4
fixme:ieframe:taskbar_list_SetOverlayIcon iface 0x170708, hwnd 0x5009c, hIcon (nil), pszDescription (null) stub!
fixme:imm:NotifyIME IMC_SETCANDIDATEPOS
fixme:imm:NotifyIME IMC_SETCANDIDATEPOS
fixme:ieframe:taskbar_list_SetOverlayIcon iface 0x170708, hwnd 0x5009c, hIcon (nil), pszDescription (null) stub!
None of these messages appear to be associated with the editing or saving of a QML file, however. The last message appears when I open a QML file in the IDE. Editing and saving the QML do not produce any further output at the terminal. Saving the QML file triggers the crash of wineserver.

User avatar
triso
Level 2
Level 2
Posts: 37
Joined: Mon May 18, 2009 8:30 pm
Location: Canada

Re: Wineserver crashes when saving a QML file in QtCreator

Post by triso » Mon Feb 11, 2013 6:20 pm

Try the Linux version of Qt-Creator.

User avatar
dimesio
Moderator
Moderator
Posts: 12880
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wineserver crashes when saving a QML file in QtCreator

Post by dimesio » Mon Feb 11, 2013 8:03 pm

File a bug.

boggins
Newbie
Newbie
Posts: 3
Joined: Thu Feb 07, 2013 5:04 pm

Re: Wineserver crashes when saving a QML file in QtCreator

Post by boggins » Tue Feb 12, 2013 1:07 am

Thanks, but as I mentioned in the original post, the linux version does not support Symbian targets. I have come across an unofficial experimental version with symbian support, but I have different (and not wine-related) problems with that. Hence my attempt with wine.

Locked