adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

Crash 'pure virtual called' on Ubuntu 14.04 64bit, #9166

Open sedwards2009 opened 10 years ago

sedwards2009 commented 10 years ago

Brackets occasionally crashes on me. This morning it happen while editing a new (unsaved) document as plain text:

sbe@zootv /home/sbe/devel]$ brackets
ATTENTION: default value of option force_s3tc_enable overridden by environment.
[0919/101810:ERROR:sandbox_linux.cc(130)] InitializeSandbox() called with multiple threads in process gpu-process
pure virtual method called
terminate called without an active exception
^C
[sbe@zootv /home/sbe/devel]$ 

After which point the window stays open but is just grey. I ctrl+c'ed it. It just happens during normal typing and a I don't see any other kind of pattern to it. It has also happened to me when editing a JS file.

Brackets version info:

sprint 43 experimental build 0.43.0-14375 (release 287868769) 
build timestamp: Tue Sep 02 2014 14:35:16 GMT-0700

On Ubuntu 14.04, 64bit. (Kubuntu variant)

Mark-Simulacrum commented 10 years ago

I've never seen this (or any other crash for that matter) on my Ubuntu 14.04 64bit.

@sedwards2009: You may want to correct the issue title, as it seems you are not using Ubuntu 14.04 64bit, and are using Kubuntu 13.04, 64bit.

sedwards2009 commented 10 years ago

It is 14.04, 64bit sorry. Kubuntu uses the same base libraries as Ubuntu, so that should not matter (famous last words).

sedwards2009 commented 10 years ago

It is worth noting that this problem has only appeared in the last 0.43 release. I don't recall the releases before this having this problem.

peterflynn commented 10 years ago

The changes in the native-code bits between 0.42 and 0.43 were extremely minimal: https://github.com/adobe/brackets-shell/compare/release-0.42...release-0.43#commits_bucket. So it's unlikely that any new bug was injected there -- but it's possible that an existing bug was already lurking, and some change in the JS bits just recently exposed it... Or could something have changed with your machine configuration?

sedwards2009 commented 10 years ago

The only thing I can think of is that Brackets is somehow picking up bad library somewhere. @Mark-Simulacrum says that he doesn't have this problem on his Ubuntu 14.04. What I could do is use 'ldd' and post the results. Maybe my Brackets finds slightly different libraries than Mark's.

Mark-Simulacrum commented 10 years ago

One more thing that I should probably note about my install. I run Brackets from master of this repository, but I don't use a master copy of the Brackets-Shell repository.

So if any changes have been introduced in master since @sedwards2009's version (and I know they have: Splitview, and many other things - assuming @sedwards2009 is running Brackets Sprint 43), They might be causing the issue.

JeffryBooher commented 10 years ago

@Mark-Simulacrum how do you load brackets master without building the shell?

JeffryBooher commented 10 years ago

on Linux the trick for loading alternate source by holding down the shift key during startup does not work if I remember correctly.

peterflynn commented 10 years ago

@JeffryBooher Pretty sure you can just run the setup_for_hacking script to create a symlink, just like you would on Mac or Windows...

But I think @Mark-Simulacrum's last comment needs some clarity... Mark, if you're not running the master copy, what are you running? An official build? Or are you compiling it locally but just from an older stable release tag rather than master? Or are you compiling it with extra local changes or off of a branch/fork that has extra changes?

Mark-Simulacrum commented 10 years ago

I am running Brackets from adobe/brackets master and the latest stable Brackets-Shell .deb file (downloaded from http://brackets.io). As @peterflynn said, I just use the setup_for_hacking script to run from master.

jotak commented 9 years ago

Hello, I have the same issue. I'm running Xubuntu 14.04 on two PC's, both of them are affected. I can't find any particular scenario to reproduce, it seems to happen unpredictably. I use the latest official version (not from github): Version 1.0 - 1.0.0-15191 (release 3f2eb90a4) but I had the same issue with previous versions before 1.0 (can't remember the exact build).

What I can say, if it helps:

sedwards2009 commented 9 years ago

I'm also using TypeScript, and have had it crash when editing TypeScript, Javascript and/or Markdown.