GDevelop 3.6.79

Yes! But from PPA there’s a “trick” to add PPA on Debian and make it work:

1) First, in Debian things are a little different, so we need to install this first:
apt-get install software-properties-common python-software-properties

2)Than add the PPA:
add-apt-repository ppa:florian-rival/gdevelop

3) After that, you need to edit “sources.list” and change “wheezy” to “trusty”

The last step is the same…

apt-get update
apt-get install gdevelop


Yes, I’ll try to compile again in a few days, but it was not an error from gdevelop sources, but from my libraries to compile it. With no much time to try to discover the missing ones, I’ve decided to try from PPA.

This is the screenshot from Debian:

I have tried to download the noinstaller.zip twice but I get “file is invalid” error message when I try to open it.

Could anybody else check it? I just download it and extract it with 7zip without any problem it seems!

Well! Here in Ubuntu 14.04, I’ve downloaded this “noinstaller.zip” for windows, and opened via WINE.
Guess what?! It works!

It works via WINE. I did not tested examples, or opened files, but… opened without warnings.

Normally I can simply open zip files in windows and extract it that way but it doesn’t work with this one.
screenshot.png
I have no such problem with other zip files.

The excessive CPU consumption in event sheet bug on linux is still there


:neutral_face:
I will wait till its fixed. My laptop really doesnt like gdevelop, especially with a web browser opened as well.

I’ve downloaded it (windows noninstaller.zip) this morning and works fine :slight_smile:

with the WIndows Problem ddabrahim, have you tried to download it again, maybe it was not downloaded correctly. Another try could be rename the file before trying to extract it( cause you have two dots there and I do not know how windows read it ).

With the problem in LInux, blurymind, I use LInux here too, and for me, it happens when Try to preview. But after some minutes it decreases the cpu usage. But there is a “trick”… you can try to limit cpu usage by Gdevelop. Maybe it can help you until this bug can be correct( I khow it is not the right solution, but you can try to save yourself for now).

Take a look at this:
http://cpulimit.sourceforge.net/
and this:
https://www.howtoforge.com/how-to-limit-cpu-usage-of-a-process-with-cpulimit-debian-ubuntu

The zip file is a bit steange : it opens only with 7zip or winRAR and when opened, only two files have a non-compressed size different from 0.

Yes, here on Linux I’ve extract files, and than recompressed using ZIP option, and the regenerated Zip file has 3x size than the original one. But it works.

If you want I can upload and create a link to download this one(the extracted and recompressed one ). Let me know.

Guess I have to repack that zip again, that’s strange what’s happening.

cpulimit does not limit the cpu usage unfortunately.
When you run gdevelop, it actually runs another process called “GDIDE” which consumes the cpu when in the events tab.

I dont know for you, but for me it consistently eats over 50-57% of the cpu when in the events tab. It doesnt stop.
It is obviously the events tab.

EDIT:
Ok i was able to limit the cpu to 20% by editing the startup script:

[code][fox@darkstar ~]$ cat /opt/gdevelop/StartGDevelop.sh
#Execute this file to launch GDevelop
#If you can not launch GD, make sure that this file
#as well as ‘GDIDE’ have the right to be executed
#(Right click on file > Properties)

export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
if [ -z ${1+x} ]; then
cpulimit -l 20 ./GDIDE
else
cpulimit -l 20 ./GDIDE “$1”
fi

if [ “$?” = “127” ]; then
mkdir -p ~/.GDevelop
./GDIDE 1> ~/.GDevelop/errorMsgWhileLoadingGD.txt 2> ~/.GDevelop/errorMsgWhileLoadingGD.txt

errorMsg=$(cat < ~/.GDevelop/errorMsgWhileLoadingGD.txt)

echo "$errorMsg" | grep "loading shared"
if [ "$?" == "0" ]; then
	zenity --error --text="Unable to launch GDevelop! Here is the error message:\n\n <b>$errorMsg</b>\n\nMay be a <b>package is not installed</b>.\nCheck if you can find the package in the Software Center.";
else
	zenity --error --text="Unable to launch GDevelop, a unknown error happened! Here is the full error message:\n\n <b>$errorMsg</b>\n\n.";
fi;

fi;

[/code]
However, then I get the problem where the events tab is super laggy! :frowning:
And gdevelop is obviously running slower.

Also it leads to html5 games no longer working. You get this error in the browser

Error 500: Server Error Client closed connection

limitcpu is not a solution.

The editor is really badly optimized.

(So, optimize it better than ourselves…)
The problem is that I wasn’t able to figure out where the consumption comes. If GDevelop is much slower when its speed is limited, it might indicate that it needs to work at this speed and you still have one full core available for other tasks.

Out of curiosity, what CPU do you have? Sounds like you have dualcore which is seriously a no-go these days - you want at least quadcore to run complex applications.

Also, could you download Windows version of GD (it can be ran via Wine) and tell if the problem still occurs then?

//edit: As of optimizing, this is pretty much my guesswork, but first thing I’d suspect is event tab’s rendering function. Perhaps it contain some loops you could get rid of in favor of rendering it in a single pass?

I have a Core 2 Duo :frowning: … But no problems here now :smiley:

Sounds like a great idea. And Darkhog, to edit your posts, please edit them :wink:

Tested, (by putting a “Hey, the function is executed” message when the rendering is done) no related to this function (only called when something is changed inside the event tab).

blurymind you were right! I have not noticed because I use quadcores here, but you are right!
When events tab is opened, the cpu usage goes to the sky and do not stop.

Using ubuntu, xubuntu and Debian… all of then with the same problem.
Using Intel core i5 and i7
With these machines one core reaches 100% always and get fixed there.

In an old celeron with ubuntustudio( xfce, and low latency kernel ), the cpu reaches 50% when in events tab, but in scenes tab it gets about 13-14%.

Darkhog’s suggestion works fine on all of these machines: You can run( for now ) gdevelop via wine, without problems. The Cpu usage is about that 13-15%



:question: Can a Windows user confirm this bug?, or a Linux user confirm that this bug is not present? To get some info about the OS.

The bug is already known (discussed some weeks ago with blurymind) and happens only on Linux (which can indicate that it’s not a GDevelop bug but rather a wxWidgets bug…).