Hi,
I send you a patch for DevApp
Printable View
Hi,
I send you a patch for DevApp
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
Sorry but I'm quite puzzled... What is the point of this patch???Quote:
Originally Posted by krawek
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.
It solves a common error, the patch change:Quote:
Originally Posted by fullmetalcoder
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
Never seen something like this... What was the last message on the splash screen?Quote:
Originally Posted by sector
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?Quote:
It solves a common error, the patch change
I get this with the last qt 4.2 snapshot:Quote:
Originally Posted by fullmetalcoder
Code:
krawek trunk # LD_LIBRARY_PATH=. gdb -ex run -ex bt --batch ./edyuk.bin Using host libthread_db library "/lib/tls/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 47644403135520 (LWP 15420)] [New Thread 1082132832 (LWP 15423)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 47644403135520 (LWP 15420)] str=0x10 <Address 0x10 out of bounds>, size=-1) at qstring.cpp:3287 3287 if (size == 0 || (!*str && size < 0)) Current language: auto; currently c++ #0 0x00002b55129b03f8 in QString::fromLocal8Bit ( str=0x10 <Address 0x10 out of bounds>, size=-1) at qstring.cpp:3287 #1 0x00002b5512a1f3ad in QCoreApplication::arguments () at qstringlist.h:66 #2 0x00002b551134f975 in sm_performSaveYourself (smd=0x6416b0) at qcoreapplication.h:74 #3 0x00002b55113502a6 in sm_saveYourselfCallback (smcConn=0x7fffffd96670, clientData=0x10, saveType=-1, shutdown=7231952, interactStyle=67) at qapplication_x11.cpp:4675 #4 0x00002b5511b1d317 in _SmcProcessMessage () from /usr/lib/libSM.so.6 #5 0x00002b5511c2b3af in IceProcessMessages () from /usr/lib/libICE.so.6 #6 0x00002b5511341341 in QSmSocketReceiver::qt_metacall (this=0x63ffa0, at qapplication_x11.moc:63 #7 0x00002b5512a2d0c9 in QMetaObject::activate (sender=0x642800, from_signal_index=4, to_signal_index=4, argv=0x7fffffd97250) at qobject.cpp:2911 #8 0x00002b5512a49bae in QSocketNotifier::activated (this=0x7fffffd96670, _t1=11) at moc_qsocketnotifier.cpp:79 #9 0x00002b5512a342ab in QSocketNotifier::event (this=0x642800, e=0x7fffffd97780) at qsocketnotifier.cpp:276 #10 0x00002b55112f99f8 in QApplicationPrivate::notify_helper (this=0x50cf20, receiver=0x642800, e=0x7fffffd97780) at qapplication.cpp:3430 #11 0x00002b55112f9bee in QApplication::notify (this=0x50cf00, receiver=0x642800, e=0x7fffffd97780) at qapplication.cpp:3371 #12 0x00002b5512a3db9b in socketNotifierSourceDispatch (source=0x50ee30) at qcoreapplication.h:180 #13 0x00002b5512cf8486 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #14 0x00002b5512cf9ea8 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0 #15 0x00002b5512cfa36f in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0 #16 0x00002b5512a3d9d0 in QEventDispatcherGlib::processEvents ( this=0x50d5b0, flags={i = 20}) at qeventdispatcher_glib.cpp:351 #17 0x00002b551136de29 in QGuiEventDispatcherGlib::processEvents ( this=0x7fffffd96670, flags=) at qglobal.h:1610 #18 0x00002b5512a1d2de in QEventLoop::processEvents (this=0x7fffffd96670, flags=) at qglobal.h:1610 #19 0x00002b5512a1d490 in QEventLoop::exec (this=0x7fffffd97980, flags= {i = 0}) at qglobal.h:1627 #20 0x00002b5512a216ea in QCoreApplication::exec () at qglobal.h:1611 #21 0x00000000004008d8 in main ()
Last scene before segfault says: "Initializing plugins..."
And the reference stuff fixed it??? Thanks a lot then! I wouldn't have understood how to fix such a backtrace...Quote:
Originally Posted by krawek
@sector :
- Are you using precompiled binaries for windows ?
- Did you try krawek patch ?
Hi,i tryed to complile Eduyk on my computer (AMD Athlon 64 with Suse 10.1) and I got this error:
?Quote:
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"'
I have the exact same issue on Windows XP. :( It compiles with no problem.Quote:
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"'
fnmblot
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.Quote:
Originally Posted by vratojr
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 :
by :Code:
win32:CONFIG += release else:CONFIG += debug_and_release
Code:
win32:CONFIG += release else:CONFIG += release
If you happen to know how to fix the cast error please let me know...
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...Quote:
Originally Posted by vratojr
Sorry, I couldn't test under Qt 4.2 :o
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
Hrmm no, it's Qt 4.1.3 under windows and 4.1.4 under Linux.Quote:
Originally Posted by fullmetalcoder
It seems that you have to change the cast to long int. I have a 64bit computer, so a qint64 would be enough!;)Quote:
Originally Posted by fullmetalcoder
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!;)
Anybody else with this issue?Quote:
Originally Posted by ksqt
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...Quote:
Originally Posted by vratojr
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 ;) :Code:
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!;)
:D
- 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...
Also tried downloading the zip source, built just fine, but when running "edyuk.exe" I only get splash screen, and it disappears.....nothing else.....:eek:Quote:
Originally Posted by ksqt