GeckoFX 7.0, 8.0 and 9.0 on Linux crash very frequently - geckofx

I cloned GeckoFX 7.0, 8.0 and 9.0 from https://bitbucket.org/geckofx/ and use MonoDevelop 2.6 to build and debug it.
I only change xulrunner path in GeckoFxTest/GeckoFxTest.csproj and GeckoFxTest/Main.cs to point to the right Firefox location. Everything is going fine. I can build and run it.
Problem happens when I tried to browse ANY webpage, for example google.com. After few second, browser window disappear and I saw this message in console:
My configuration: Ubuntu 11.10 on AMD, Mono 2.10.5, Mono develop 2.6, GeckoFX 7.0, 8.0 and 9.0 with appropriate xulrunner version.
###!!! ABORT: Main-thread-only object used off the main thread: file /home/hvtuananh/Downloads/mozilla-release/xpcom/base/nsCycleCollector.cpp, line 1267
###!!! ABORT: Main-thread-only object used off the main thread: file /home/hvtuananh/Downloads/mozilla-release/xpcom/base/nsCycleCollector.cpp, line 1267
Stacktrace:
Native stacktrace:
/usr/bin/mono() [0x80e126c]
/usr/bin/mono() [0x812046c]
/usr/bin/mono() [0x805fe7d]
[0xb77b040c]
/home/hvtuananh/Downloads/mozilla-release/obj-i686-pc-linux-gnu/dist/bin/libmozalloc.so(_Z14mozalloc_abortPKc+0x3a) [0xb4156e00]
/home/hvtuananh/Downloads/mozilla-release/obj-i686-pc-linux-gnu/dist/bin/libxul.so(NS_DebugBreak_P+0x45a) [0xb5272cd7]
/home/hvtuananh/Downloads/mozilla-release/obj-i686-pc-linux-gnu/dist/bin/libxul.so(+0xcda825) [0xb5277825]
/home/hvtuananh/Downloads/mozilla-release/obj-i686-pc-linux-gnu/dist/bin/libxul.so(+0xcdbfb4) [0xb5278fb4]
/home/hvtuananh/Downloads/mozilla-release/obj-i686-pc-linux-gnu/dist/bin/libxul.so(NS_CycleCollectorForget2_P+0x2e) [0xb5279089]
/home/hvtuananh/Downloads/mozilla-release/obj-i686-pc-linux-gnu/dist/bin/libxul.so(+0x518973) [0xb4ab5973]
/usr/bin/mono() [0x8144ca4]
[0xb13a321a]
[0xb13a304c]
[0xb13a2f58]
/usr/bin/mono() [0x814fb27]

This could be one of two things:
You are using a 64bit version of firefox. geckofx doesn't yet support 64bit.
Or you need a newer mono which has this bug fix:
https://bugzilla.novell.com/show_bug.cgi?id=672879

Related

Getting library not found for -lstdc++.6 while building the Mfp 6.3 Iphone App in Xcode 10.1

Getting this error when running any MFP 6.3 app in Xcode 10.1:
Showing All Issues :-1: library not found for -lstdc++.6
:-1: linker command failed with exit code 1 (use -v to see invocation)
The same is working in Xcode 9.0/Xcode 8.0 version.
How this issue can be particularly solved for IBM Mobilefirst 6.3 iPhone Apps. Also, Apple Store is not accepting build made with Xcode 9.0. Also tried MFP 6.3 latest fix but it is not solving the issue.
MobileFirst 6.3 doesn't support iOS 12/Xcode 10 - you should upgrade to MobileFirst 7.1 or 8.0.
Having said that, you can try the solution given in this link ( https://mobilefirstplatform.ibmcloud.com/blog/2018/07/23/mfp-support-for-ios12/#known-issues )
lstdtc++ is deprecated in recent versions. I have faced this issue and it is resolved after following the steps mentioned in https://github.com/Kila2/libstdc-.6.0.9.tbd
Download the Files from Github
1. For simulator to work, copy the files from iPhoneSimulator to path "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/"
2. For actual devices to work, copy the files from iPhoneOS to paths as mentioned in the link w.r.t Xcode version.
I did the same and restart XCode. It works post this.

Can't launch AVD on macOS 10.13

I created some AVDs in Android studio 3.0, but I can't launch them. I used the following command to launch them:
./emulator #Nexus_5X_API_17
logs:
emulator: WARNING: encryption is off
Hax is enabled
Hax ram_size 0x60000000
Failed to open vm 3
Failed to create HAX VM
No accelerator found.
failed to initialize HAX: Invalid argument
And when I reinstalled "Intel x86 Emulator Accelerator(HAXM installer)", the logs:
HAXM silent installation only supports macOS from 10.8 to 10.12 !
I don't know if it is related with this.
After that, I tried to install virtualBox to install genymotion, but I found when I clicks the virturalBox.dmg, the installer crashed.
Could you help me? thanks.
Use the new Hypervisor.Framework support instead of HAXM on macOS, as described in the comments of the issue filed for this:
Try running the emulator on Canary channel 26.1.x (API 25/26
recommended) with Hypervisor.Framework; put the text "HVF = on" in
~/.android/advancedFeatures.ini (create this file if it doesn't exist
already).
You can download and install the latest version haxm
https://github.com/intel/haxm/releases/latest
Following steps worked for me:
Uninstall HAXM from android studio SDK manager (Tools->Android->SDK Manager->SDK Tools then uninstall 'Intel x86 Emulator Accelerator (HAXM)' by unchecking it.
Download the HAXM version 6.2.1 zip file from Intel site https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement-macosx
Install the .dmg file
Restart your computer
Open your AVD having x86_64 image and it should work.
Go to your SDK installation directory, and manually run the HAXM installer. See step 4 on the page: https://developer.android.com/studio/run/emulator-acceleration.html#vm-mac
Technically HAXM is only officially supported up until MacOS 10.12 (Sierra) . Since MacOS 10.13 is still in beta, there may be a bug or incompatible API. If the wizard does no work, please file a bug here for the Android Emulator dev team to investigate further: https://source.android.com/source/report-bugs
Go to Tools->Android->SDK Manager, then in the SDK tools search for Intel x86 Emulator Accelerator (HAXM installer) and update to the latest version, restart and thats all!
On install/reinstall of HAXM you get:
HAXM silent installation only supports macOS from 10.8 to 10.12 !
From https://issuetracker.google.com/issues/62395878#comment44
in System Preferences > Security & Privacy > General, there was a message “System software from developer xxx was blocked from loading.” with an Allow button. Clicking the allow button enabled HAXM again
I just redownloaded the simulator and it worked.

sqlite in the xamarin android player

I have clicked on Tools -> Android -> Android Device Monitor in VS 2015 and got the following error, but my xamarin android player works fine.
Is there a way to access to local database (sqlite) in the xamarin android player simulator not on the physical device?
Update:
I am using adb and getting the following error
Failed to load the JNI shared library "C:/XXXXX/jvm.dll"`.
This is a sign of a mixed 32/64 Java bit Java install and/or the wrong version is installed.
Xamarin on Windows requires a Windows x86 version of v1.7
It is essential to install the 32-bit version of the Java JDK even if you're using 64-bit Windows. It is also important that v1.7 of the Java JDK is installed (although it is fine to have 1.8 or newer installed at the same time).
So I would start by installing Java v1.7, since the error is pointing to v1.6 and retrying to open the Android Device Monitor.
Installing the Java SDK (JDK)
The JDK can be downloaded from any browser by visiting Oracle’s website and browsing to the section with the heading Java SE Development Kit 7u79
Ref: https://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/#Installing_the_Java_SDK_JDK
Solution 1:
I run tools->android-> android adb command prompt in visual studio
I have followed the followings to access the database
step1. >adb shell
step2. >cd data/data
step3. >ls -l|grep "com.xxxx"
step4. >cd "com.xxxx"
Then I used the following to copy sql file to my workstation
adb shell "run-as com.xxxx chmod 666 /data/data/com.xxxx/files"
adb pull /data/data/com.xxxx/files/xx.sql
adb shell "run-as com.xxxx chmod 600 /data/data/com.xxxx/files"
Then I have downloaded sqlite browser to open the file and see the tables.
Solution 2:
Alternatively, you can go to following directory and double click the exe file
C:\Users\XXXXX\AppData\Local\Android\ANDROI~1\tools\lib\monitor-x86_64\monitor.exe

Corlib not in sync when building Unity games with mdtool in OSX

Unity3D, a popular game engine, packages a version of mono (and monodevelop) with its install. Recently I installed Xamarin Studio, keen to play with it. Later I followed some online guides for building unity's SLN files via the command line from the sln's directory:
/Applications/Unity/MonoDevelop.app/Contents/MacOS/mdtool build -t:Build
I got this error:
Rewriting config files...
Corlib not in sync with this runtime: expected corlib version 636, found 96.
Loaded from: /Applications/Unity/MonoDevelop.app/Contents/Frameworks/Mono.framework/Versions/2.10.2/lib/mono/2.0/mscorlib.dll
Download a newer corlib or a newer runtime at http://www.go-mono.com/daily.
I figured that Xamarin Studio had brought a new mono runtime with it, and that was version 636. The mdtool I was running expected verison 96, because Unity ships with an older version of mono (.net 3.5 I think?).
So I uninstalled Xamarin Studio, and re-installed Unity to hopefully overwrite the mono runtime with the old version. Still get the error.
I notice above that the mscorlib.dll is not pulled from Frameworks/Mono.framework/Versions/Current, but 2.10.2. Why is that? How can I make this build work? Any more information I can give you?

MonoMac projects cannot compile: ibtool exited with code 1 - Can't run /Developer/usr/bin/ibtool (no such file)

I'm moving my first steps in MonoMac.
But I stopped right at the beginning due to some configuration error. I've created a new ManoMac project in MonoDevelop, and then tried some other sample MonoMac xamarin projects from GitHub, but I always get this error compiling:
Error: Can't run /Developer/usr/bin/ibtool (no such file).
ibtool exited with code 1
My configuration:
Operating System:
Mac OS X 10.7.3
MonoDevelop 2.8.6.5
Runtime:
Mono 2.10.8 (tarball Mon Dec 19 17:43:18 EST 2011)
GTK 2.24.5
GTK# (2.12.0.0)
Mono for Android not installed
Apple Developer Tools:
Xcode 4.3.1 (1176)
Build 4E1019
Monotouch: 5.2.5
MonoDevelop.MonoMac 2.6.0.0
All my Monotouch projects compile fine, and I have no problem with the last XCode (following the Xamarin guidelines I successfully upgraded XCode and moved it from the obsolete Developer folder to the Application folder, and downloaded the updated developer command line tools from apple).
I've tried reinstalling MonoDevelop, but with no success. I always get: "Error: ibtool returned error code 1."
Any help is appreciated.
This problem is caused by the Xcode 4.3 installer not updating the Xcode symlinks correctly to point to the active Xcode version. You can fix it with the following command:
sudo xcode-select -switch /Applications/Xcode.app
This upcoming MonoDevelop 2.8.8 release contains a fix for this. You can get it from the beta update channel.
It looks like the MonoMac addin was never updated to work with Xcode 4.3.
A temporary workaraound is to setup symlinks in the proper places in /Developer.
I found the way in the MonoMac forum:
http://mono.1490590.n4.nabble.com/MonoMac-and-XCode-4-3-ibtool-error-Solution-td4403822.html
I report it here:
When using MonoMac and Xcode 4.3, the current MD beta build fails with an ibtool error.
The solutions is to type the following commands in the Terminal console:
sudo rm /usr/bin/ibtool
and then:
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool /usr/bin/ibtool
Now it compiles fine.
I got a similar error running Xamarin on Xcode 6.2 and I solved the problem by re-installing the same version of Xcode again replacing the old version per the suggestion on this post: xcode-select active developer directory error on OSX Mavericks.
I may have caused this problem as I was renaming XCode Application. I have several versions installed and was trying to keep them all straight.

Resources