Page 3 of 3 FirstFirst 123
Results 41 to 57 of 57

Thread: The return of the king!

  1. #41
    Join Date
    Jan 2006
    Posts
    24
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: The return of the king!

    Hi,

    I send you a patch for DevApp
    Attached Files Attached Files

  2. #42
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    I should have done it 3 weeks ago but my poor network connection and then holidays prevented me from uploading last Edyuk version on Sf.net. Anyway it's done now. Edyuk 0.5.1 is available and among the most noticeable changes an install target (for Unix) and a binary installer (for M$ Window$) have been added. BTW if anyone is willing to craft a Mac bundle he is welcome.

    Next version is already on rails :
    - A complete rewrite of the editor is on work and will BTW be released separately as QCodeEdit
    - Designer integration will be added and for this I need feedback : Shall I create a special "Designer perspective" or can I simply add dock widgets to the already existing C++ perspective of the default plugin???
    - Debugging engine will be implemented and the default plugin will provide a wrapper for GDB

    Quote Originally Posted by krawek
    I send you a patch for DevApp
    Sorry but I'm quite puzzled... What is the point of this patch???
    Current Qt projects : QCodeEdit, RotiDeCode

  3. #43
    Join Date
    Jul 2006
    Location
    Slovakia
    Posts
    17
    Thanks
    12
    Thanked 6 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Hi,

    I tried to compile on win2000, mingw, Qt4.2.0-tp1, if I run it gives Segmentation fault. Recompiled in debug mode, here is backtrace, maybe it'll be useful for you. Problem seems to be with loading plugins.

    See attachement.
    Attached Files Attached Files

  4. #44
    Join Date
    Jan 2006
    Posts
    24
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: The return of the king!

    Quote Originally Posted by fullmetalcoder
    Sorry but I'm quite puzzled... What is the point of this patch???
    It solves a common error, the patch change:

    static DevApp* Init(int argc, char **argv); -> static DevApp* Init(int &argc, char **argv);

    and

    DevApp(int argc, char **argv); -> DevApp(int &argc, char **argv);


    and fix a potencial crash in your application


    cheers
    Last edited by krawek; 23rd August 2006 at 23:40. Reason: fixed

  5. #45
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Quote Originally Posted by sector
    I tried to compile on win2000, mingw, Qt4.2.0-tp1, if I run it gives Segmentation fault. Recompiled in debug mode, here is backtrace, maybe it'll be useful for you. Problem seems to be with loading plugins.
    Never seen something like this... What was the last message on the splash screen?

    It solves a common error, the patch change
    I saw what the patch changed but I didn't know it was a common error... I'll change that but I'd like to know where the potential crash occurs?
    Current Qt projects : QCodeEdit, RotiDeCode

  6. #46
    Join Date
    Jan 2006
    Posts
    24
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: The return of the king!

    Quote Originally Posted by fullmetalcoder
    I saw what the patch changed but I didn't know it was a common error... I'll change that but I'd like to know where the potential crash occurs?
    I get this with the last qt 4.2 snapshot:

    Qt Code:
    1. krawek trunk # LD_LIBRARY_PATH=. gdb -ex run -ex bt --batch ./edyuk.bin
    2. Using host libthread_db library "/lib/tls/libthread_db.so.1".
    3. [Thread debugging using libthread_db enabled]
    4. [New Thread 47644403135520 (LWP 15420)]
    5. [New Thread 1082132832 (LWP 15423)]
    6.  
    7. Program received signal SIGSEGV, Segmentation fault.
    8. [Switching to Thread 47644403135520 (LWP 15420)]
    9. 0x00002b55129b03f8 in QString::fromLocal8Bit (
    10. str=0x10 <Address 0x10 out of bounds>, size=-1) at qstring.cpp:3287
    11. 3287 if (size == 0 || (!*str && size < 0))
    12. Current language: auto; currently c++
    13. #0 0x00002b55129b03f8 in QString::fromLocal8Bit (
    14. str=0x10 <Address 0x10 out of bounds>, size=-1) at qstring.cpp:3287
    15. #1 0x00002b5512a1f3ad in QCoreApplication::arguments () at qstringlist.h:66
    16. #2 0x00002b551134f975 in sm_performSaveYourself (smd=0x6416b0)
    17. at qcoreapplication.h:74
    18. #3 0x00002b55113502a6 in sm_saveYourselfCallback (smcConn=0x7fffffd96670,
    19. clientData=0x10, saveType=-1, shutdown=7231952, interactStyle=67)
    20. at qapplication_x11.cpp:4675
    21. #4 0x00002b5511b1d317 in _SmcProcessMessage () from /usr/lib/libSM.so.6
    22. #5 0x00002b5511c2b3af in IceProcessMessages () from /usr/lib/libICE.so.6
    23. #6 0x00002b5511341341 in QSmSocketReceiver::qt_metacall (this=0x63ffa0,
    24. _c=QMetaObject::InvokeMetaMethod, _id=-1, _a=0x7fffffd97250)
    25. at qapplication_x11.moc:63
    26. #7 0x00002b5512a2d0c9 in QMetaObject::activate (sender=0x642800,
    27. from_signal_index=4, to_signal_index=4, argv=0x7fffffd97250)
    28. at qobject.cpp:2911
    29. #8 0x00002b5512a49bae in QSocketNotifier::activated (this=0x7fffffd96670,
    30. _t1=11) at moc_qsocketnotifier.cpp:79
    31. #9 0x00002b5512a342ab in QSocketNotifier::event (this=0x642800,
    32. e=0x7fffffd97780) at qsocketnotifier.cpp:276
    33. #10 0x00002b55112f99f8 in QApplicationPrivate::notify_helper (this=0x50cf20,
    34. receiver=0x642800, e=0x7fffffd97780) at qapplication.cpp:3430
    35. #11 0x00002b55112f9bee in QApplication::notify (this=0x50cf00,
    36. receiver=0x642800, e=0x7fffffd97780) at qapplication.cpp:3371
    37. #12 0x00002b5512a3db9b in socketNotifierSourceDispatch (source=0x50ee30)
    38. at qcoreapplication.h:180
    39. #13 0x00002b5512cf8486 in g_main_context_dispatch ()
    40. from /usr/lib/libglib-2.0.so.0
    41. #14 0x00002b5512cf9ea8 in g_main_context_acquire ()
    42. from /usr/lib/libglib-2.0.so.0
    43. #15 0x00002b5512cfa36f in g_main_context_iteration ()
    44. from /usr/lib/libglib-2.0.so.0
    45. #16 0x00002b5512a3d9d0 in QEventDispatcherGlib::processEvents (
    46. this=0x50d5b0, flags={i = 20}) at qeventdispatcher_glib.cpp:351
    47. #17 0x00002b551136de29 in QGuiEventDispatcherGlib::processEvents (
    48. this=0x7fffffd96670, flags=) at qglobal.h:1610
    49. #18 0x00002b5512a1d2de in QEventLoop::processEvents (this=0x7fffffd96670,
    50. flags=) at qglobal.h:1610
    51. #19 0x00002b5512a1d490 in QEventLoop::exec (this=0x7fffffd97980, flags=
    52. {i = 0}) at qglobal.h:1627
    53. #20 0x00002b5512a216ea in QCoreApplication::exec () at qglobal.h:1611
    54. #21 0x00000000004008d8 in main ()
    To copy to clipboard, switch view to plain text mode 

  7. #47
    Join Date
    Jul 2006
    Location
    Slovakia
    Posts
    17
    Thanks
    12
    Thanked 6 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Last scene before segfault says: "Initializing plugins..."

  8. #48
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Quote Originally Posted by krawek
    I get this with the last qt 4.2 snapshot:

    Qt Code:
    1. krawek trunk # LD_LIBRARY_PATH=. gdb -ex run -ex bt --batch ./edyuk.bin
    2. Using host libthread_db library "/lib/tls/libthread_db.so.1".
    3. [Thread debugging using libthread_db enabled]
    4. [New Thread 47644403135520 (LWP 15420)]
    5. [New Thread 1082132832 (LWP 15423)]
    6.  
    7. Program received signal SIGSEGV, Segmentation fault.
    8. [Switching to Thread 47644403135520 (LWP 15420)]
    9. 0x00002b55129b03f8 in QString::fromLocal8Bit (
    10. str=0x10 <Address 0x10 out of bounds>, size=-1) at qstring.cpp:3287
    11. 3287 if (size == 0 || (!*str && size < 0))
    12. Current language: auto; currently c++
    13. #0 0x00002b55129b03f8 in QString::fromLocal8Bit (
    14. str=0x10 <Address 0x10 out of bounds>, size=-1) at qstring.cpp:3287
    15. #1 0x00002b5512a1f3ad in QCoreApplication::arguments () at qstringlist.h:66
    16. #2 0x00002b551134f975 in sm_performSaveYourself (smd=0x6416b0)
    17. at qcoreapplication.h:74
    18. #3 0x00002b55113502a6 in sm_saveYourselfCallback (smcConn=0x7fffffd96670,
    19. clientData=0x10, saveType=-1, shutdown=7231952, interactStyle=67)
    20. at qapplication_x11.cpp:4675
    21. #4 0x00002b5511b1d317 in _SmcProcessMessage () from /usr/lib/libSM.so.6
    22. #5 0x00002b5511c2b3af in IceProcessMessages () from /usr/lib/libICE.so.6
    23. #6 0x00002b5511341341 in QSmSocketReceiver::qt_metacall (this=0x63ffa0,
    24. _c=QMetaObject::InvokeMetaMethod, _id=-1, _a=0x7fffffd97250)
    25. at qapplication_x11.moc:63
    26. #7 0x00002b5512a2d0c9 in QMetaObject::activate (sender=0x642800,
    27. from_signal_index=4, to_signal_index=4, argv=0x7fffffd97250)
    28. at qobject.cpp:2911
    29. #8 0x00002b5512a49bae in QSocketNotifier::activated (this=0x7fffffd96670,
    30. _t1=11) at moc_qsocketnotifier.cpp:79
    31. #9 0x00002b5512a342ab in QSocketNotifier::event (this=0x642800,
    32. e=0x7fffffd97780) at qsocketnotifier.cpp:276
    33. #10 0x00002b55112f99f8 in QApplicationPrivate::notify_helper (this=0x50cf20,
    34. receiver=0x642800, e=0x7fffffd97780) at qapplication.cpp:3430
    35. #11 0x00002b55112f9bee in QApplication::notify (this=0x50cf00,
    36. receiver=0x642800, e=0x7fffffd97780) at qapplication.cpp:3371
    37. #12 0x00002b5512a3db9b in socketNotifierSourceDispatch (source=0x50ee30)
    38. at qcoreapplication.h:180
    39. #13 0x00002b5512cf8486 in g_main_context_dispatch ()
    40. from /usr/lib/libglib-2.0.so.0
    41. #14 0x00002b5512cf9ea8 in g_main_context_acquire ()
    42. from /usr/lib/libglib-2.0.so.0
    43. #15 0x00002b5512cfa36f in g_main_context_iteration ()
    44. from /usr/lib/libglib-2.0.so.0
    45. #16 0x00002b5512a3d9d0 in QEventDispatcherGlib::processEvents (
    46. this=0x50d5b0, flags={i = 20}) at qeventdispatcher_glib.cpp:351
    47. #17 0x00002b551136de29 in QGuiEventDispatcherGlib::processEvents (
    48. this=0x7fffffd96670, flags=) at qglobal.h:1610
    49. #18 0x00002b5512a1d2de in QEventLoop::processEvents (this=0x7fffffd96670,
    50. flags=) at qglobal.h:1610
    51. #19 0x00002b5512a1d490 in QEventLoop::exec (this=0x7fffffd97980, flags=
    52. {i = 0}) at qglobal.h:1627
    53. #20 0x00002b5512a216ea in QCoreApplication::exec () at qglobal.h:1611
    54. #21 0x00000000004008d8 in main ()
    To copy to clipboard, switch view to plain text mode 
    And the reference stuff fixed it??? Thanks a lot then! I wouldn't have understood how to fix such a backtrace...

    @sector :
    1. Are you using precompiled binaries for windows ?
    2. Did you try krawek patch ?
    Current Qt projects : QCodeEdit, RotiDeCode

  9. #49
    Join Date
    Jan 2006
    Location
    La Spezia,Italy
    Posts
    77
    Thanks
    9
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Hi,i tryed to complile Eduyk on my computer (AMD Athlon 64 with Suse 10.1) and I got this error:
    g++ -c -include ../tmp/obj/lib/unix/debug/edyuk_debug -m64 -pipe -g -D_REENTRANT -Wall -W -fPIC -D_DEV_BUILD_ -D_DEV_DEBUG_ -D_QMDI_BUILD_ -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Trolltech/Qt-4.1.4/mkspecs/linux-g++-64 -I. -I/usr/local/Trolltech/Qt-4.1.4/include/QtCore -I/usr/local/Trolltech/Qt-4.1.4/include/QtGui -I/usr/local/Trolltech/Qt-4.1.4/include/QtXml -I/usr/local/Trolltech/Qt-4.1.4/include -I. -Icompiler -Ieditor -Igui -Imdi -Iplugin -Isettings -Iui -Iworkspace -Iutil -I../tmp/moc -I../tmp/ui -o ../tmp/obj/lib/unix/debug/devworkspace.o workspace/devworkspace.cpp
    workspace/devworkspace.cpp: In member function ‘void DevWorkspace::coreChanged(CorePlugin*)’:
    workspace/devworkspace.cpp:697: error: cast from ‘CorePlugin*’ to ‘int’ loses precision
    make[2]: *** [../tmp/obj/lib/unix/debug/devworkspace.o] Error 1
    make[2]: Leaving directory `/home/vratojr/Download/edyuk-0.5.1/src/lib'
    make[1]: *** [debug-all] Error 2
    make[1]: Leaving directory `/home/vratojr/Download/edyuk-0.5.1/src/lib'
    make: *** [sub-src-lib-make_default] Error 2
    ?

    Oh I compiled it succesfully on window XP (not 64 version) run with VMWare but it doesn't start. Il loads a bit (i see the splashscreen) and the crashes.It says something like: 'The istruction "<hexnumbers>" referred to the memory locatio "<hex>". The memory couldn't be "read"'
    Last edited by jacek; 29th August 2006 at 20:42.

  10. #50
    Join Date
    Jul 2006
    Location
    Atlanta, GA
    Posts
    86
    Thanks
    26
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Oh I compiled it succesfully on window XP (not 64 version) run with VMWare but it doesn't start. Il loads a bit (i see the splashscreen) and the crashes.It says something like: 'The istruction "<hexnumbers>" referred to the memory locatio "<hex>". The memory couldn't be "read"'
    I have the exact same issue on Windows XP. It compiles with no problem.

    fnmblot
    fnmblot
    --------------------------------------
    Gee Ricky, I'm sorry your mom blew up.

  11. #51
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Quote Originally Posted by vratojr
    Hi,i tryed to complile Eduyk on my computer (AMD Athlon 64 with Suse 10.1) and I got this error:
    ?
    You're compiling in debug mode : a qDebug() is used to output the address of the core plugin currently used and a "classic C cast" is used : (int)pointer.

    This doesn't occur under win, whatever your CPU because debug build is disabled by default. I don't know why it causes an error and not a warning but you can get rid of it by changing the config.pri file:

    replace :
    Qt Code:
    1. win32:CONFIG += release
    2. else:CONFIG += debug_and_release
    To copy to clipboard, switch view to plain text mode 
    by :
    Qt Code:
    1. win32:CONFIG += release
    2. else:CONFIG += release
    To copy to clipboard, switch view to plain text mode 

    If you happen to know how to fix the cast error please let me know...

    Quote Originally Posted by vratojr
    Oh I compiled it succesfully on window XP (not 64 version) run with VMWare but it doesn't start. Il loads a bit (i see the splashscreen) and the crashes.It says something like: 'The istruction "<hexnumbers>" referred to the memory locatio "<hex>". The memory couldn't be "read"'
    If you are using Qt 4.2 you should try krawek patch, otherwise I don't see what's wrong but try the patch anyway...

    Sorry, I couldn't test under Qt 4.2
    Current Qt projects : QCodeEdit, RotiDeCode

  12. #52
    Join Date
    Mar 2006
    Posts
    58
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    I downloaded the latest edyuk.exe and ran the installer. When I try to run the program, I only get a splash screen, and it disappears, and no more.....
    Is there something I am supposed to do, or am I missing something?

    Win XP

  13. #53
    Join Date
    Jan 2006
    Location
    La Spezia,Italy
    Posts
    77
    Thanks
    9
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Quote Originally Posted by fullmetalcoder
    If you are using Qt 4.2 you should try krawek patch, otherwise I don't see what's wrong but try the patch anyway...
    Sorry, I couldn't test under Qt 4.2
    Hrmm no, it's Qt 4.1.3 under windows and 4.1.4 under Linux.

  14. #54
    Join Date
    Jan 2006
    Location
    La Spezia,Italy
    Posts
    77
    Thanks
    9
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Quote Originally Posted by fullmetalcoder
    You're compiling in debug mode : a qDebug() is used to output the address of the core plugin currently used and a "classic C cast" is used : (int)pointer.
    If you happen to know how to fix the cast error please let me know...
    It seems that you have to change the cast to long int. I have a 64bit computer, so a qint64 would be enough!
    It works but I fear that u have to change all the other casts ....
    Or maybe u can wait that I DO want to take a look at Edyuk (compiled in debug mode) and do all the changes myself!

  15. #55
    Join Date
    Mar 2006
    Posts
    58
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Quote Originally Posted by ksqt
    I downloaded the latest edyuk.exe and ran the installer. When I try to run the program, I only get a splash screen, and it disappears, and no more.....
    Is there something I am supposed to do, or am I missing something?

    Win XP
    Anybody else with this issue?

  16. #56
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Thanks
    8
    Thanked 127 Times in 121 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Quote Originally Posted by vratojr
    Hrmm no, it's Qt 4.1.3 under windows and 4.1.4 under Linux.
    And both crash? I do use the same versions of Qt and Fedora Core 5 and Windows ME are OK... Try the patch anyway and see if it solves it...

    Qt Code:
    1. It seems that you have to change the cast to long int. I have a 64bit computer, so a qint64 would be enough!;)
    2. It works but I fear that u have to change all the other casts ....:(
    3. Or maybe u can wait that I DO want to take a look at Edyuk (compiled in debug mode) and do all the changes myself!;)
    To copy to clipboard, switch view to plain text mode 
    I guess I will remove the cast... Or maybe I can wait that you had a look at the latest version (0.6.0 beta, available on SVN) cause after that you WILL want to take a look at Edyuk :
    • Perspective system
    • The best editing framework ever seen
    • Compilation (only gcc but you can extend it to any compiler through plugins)
    • Full Qt Designer Integration
    • Run-time translation
    • Dynamic shortcuts (language-aware)
    • and more...
    Current Qt projects : QCodeEdit, RotiDeCode

  17. #57
    Join Date
    Mar 2006
    Posts
    58
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: The return of the king!

    Quote Originally Posted by ksqt
    Anybody else with this issue?
    Also tried downloading the zip source, built just fine, but when running "edyuk.exe" I only get splash screen, and it disappears.....nothing else.....

Similar Threads

  1. [SOLVED] DirectShow Video Player Inside Qt
    By ToddAtWSU in forum Qt Programming
    Replies: 16
    Last Post: 3rd November 2011, 08:47
  2. Carriage Return in QString
    By incapacitant in forum Newbie
    Replies: 7
    Last Post: 2nd December 2010, 10:18
  3. When is the best time to delete a QCanvasItem
    By irudkin in forum Qt Programming
    Replies: 12
    Last Post: 8th March 2007, 22:28
  4. Replies: 4
    Last Post: 24th March 2006, 23:50
  5. Adding numbers to circles in QPaint
    By therealjag in forum Qt Programming
    Replies: 1
    Last Post: 12th February 2006, 11:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.