-
Notifications
You must be signed in to change notification settings - Fork 613
Conversation
… quit. It's not properly shutting down right now :-(
Conflicts: appshell/client_handler.cpp
@@ -16,7 +16,13 @@ | |||
|
|||
#include <algorithm> | |||
|
|||
|
|||
#if defined(OS_LINUX) | |||
// The Linux client uses GTK instead of the underlying platform type (X11). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change to define ClientWindowHandle
to be GtkWidget*
is pulled straight from the cefclient sample app from CEF https://code.google.com/p/chromiumembedded/source/browse/branches/2171/cef3/tests/cefclient/client_handler.h#19.
I build this branch and it looks partly good, although better than before.
I have tested this on Ubuntu 14.10 32 Bit |
@ingorichter yeah we ran into this too, while we were doing some unit testing. I am on it. I kind of figured out the problem. I will push more changes to this branch with my changes which should solve the problem. |
@ingorichter @jasonsanjose I fixed this problem partially but this bug has lot of side effects(Especially when dealing with multiple Brackets windows). This does not seem to be an easy fix. Like @jasonsanjose said, the latest version of cefclient is a lot different than our appshell. I think the right fix is to pick the latest linux counter parts of cefclient and then integrate our appshell changes into it. This definently is a big task. However I will see if we can fix this so that the side effects are minimal. In whatever case, I will update this thread with my findings and hopefully some solution. |
@ingorichter @jasonsanjose I have managed to fix this problem. My latest commit to this branch has the solution for crash on quit. Could you guys pull down the latest changes and do some testing around this. |
Closing via the window X button works great now, but I see a hang when quitting via File > Quit now where it was previously working fine. Almost there though! |
@jasonsanjose That's strange. I am not able to reproduce this crash. In fact the new commit was to fix both the crashes. I don't know if I missed something in my commit. If you are still able to crash Brackets with my new commit, I am going to have to power up my Linux system again to double check this. Bad thing I will have to wait until Monday as the Linux system is in the office. 😞 |
@jasonsanjose @ingorichter at last I managed to repro the issue. The crash is evident only on VM. I am using VMWare Fusion. Weird thing that I observed is that, this crash is reproducible when the VM image's no of processors setting is set to 1. If I change it to 2, I am not able to repro the crash. Also I found another defect while doing code review, the fix for which I have already pushed in, though this does not fix the bug with crash/hang, when VM image's no of processors setting is set to 1. Since the the hang is happening with VM, should we go ahead and merge this branch into master? |
Ok with me. Has anyone else tested these changes to make sure mac and windows still build without any new issues? It's worth sanity checking since we did change some cross-platform code here as well as the gyp files (though that's mostly isolated to the linux setup). |
I tried building this branch on mac and it fails. I must have broken something in the gyp build. I'll take a look.
|
@jasonsanjose I figured this out too. This was because we have added an |
I've just tried a new 1.2 preview (v1.2.0-15668 master 027de3046) in a Debian sid VM. Initially all was well, except it not remembering window size/position upon reopening. However now it's crashing on close, though only with the 'x' button it seems (which worked initially). File > quit continues to work fine. In system manager I can see four brackets processes:
When the problem occurs, the last of these disappears, the other three remain. The repeated lang param is not a typo btw ;) I'm running this VM in virtualbox, and I'm using gnome. The VM has 1 CPU core. |
Good morning See also thread adobe/brackets#10255 re: libcrypt version breaks Brackets As per posting in that thread from Jason, installed and tested build at https://github.com/adobe/brackets/releases/download/linux-cef-2171/Brackets.Release.1.2.64-bit.deb. For the very first time since have been using Brackets, it closes cleanly on the first click on the 'x'. Closing via 'File->Quit' still closing cleanly as before. Debian Jessie with KDE as desktop environment. With greetings Romane |
Hi all |
I tryed in my Ubuntu VM and found that the close button works if I have the 3D acceleration enabled, otherwise it hangs the window. @nethip What I can try to fix this? |
@ficristo Are you talking about the crash happening on linux-1547? |
I was talking about this PR and the issues about the crash on exit. Is linux-1547 crashing? I thought this PR was crashing... |
@ficristo Nope linux-1547 is stable 😄 It is this PR that is crashing. And about the fix, I think we need to study |
Ah, ok! |
Hello, I tried to build this branch and create installer using 'grunt installer'. When I try to install the .deb file, I get the error dpkg: error processing package brackets (--install): Then I tried the solution provided in comment adobe/brackets#10255 (comment) and I modified the control file and included libgcrypt20 and run 'grunt installer' again. This time the .deb file installation was successful. When I try to run brackets by typing the command 'brackets' in terminal, I get the error: OS : Debian 8.5 |
Also when I try to run the file Brackets in out/Release folder and provide the path to index.html in brackets repository, nothing happens. I get the error : Even pressing Ctrl+C on the terminal window does nothing. I have to kill the processes in another window/tab. |
Superceded by #619 |
Replaces #489.
Manually merge changes to
cefclient
sample app into our linux implementation.