Smallish black Window on B4A

Questions about Wine on Linux
Locked
johnaaronrose
Level 2
Level 2
Posts: 22
Joined: Tue Dec 01, 2009 8:49 am

Smallish black Window on B4A

Post by johnaaronrose »

I have Basic4android (aka B4A) running successfully on 3 other computers running Ubuntu Xenial. However, this newish barebones PC installs B4A but pops up an approx 10cmx5cm when I try to run B4A after a successful installation. The graphics card is an Intel one:
john@NewDesktop:~$ lspci -vnn | grep VGA -A 12
00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:22b1] (rev 21) (prog-if 00 [VGA controller])
DeviceName: CPU
Subsystem: Intel Corporation Device [8086:2060]
Flags: bus master, fast devsel, latency 0, IRQ 311
Memory at 80000000 (64-bit, non-prefetchable)
Memory at 88000000 (64-bit, prefetchable)
I/O ports at f000
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915

Any ideas on how to proceed?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Smallish black Window on B4A

Post by Bob Wya »

Hiya johnaaronrose,
  • Knowing the PCI code of an Intel IGP is not very useful... You need to post the Intel CPU model information!! Also lspci needs to be executed with root privileges...
  • Posting some console logs - here - see 10.1.1 How can I get a debugging log (a.k.a. terminal output)?
    That would be more useful... Especially if you collect a log from one of the working systems as well (as a point of comparison).
Please use forum Code tags for console output:

Code: Select all

Code
It's easier to read your posts (and encourages helpful responses!!) 8)

Bob
johnaaronrose
Level 2
Level 2
Posts: 22
Joined: Tue Dec 01, 2009 8:49 am

Re: Smallish black Window on B4A

Post by johnaaronrose »

Hi Bob,

Please tell me the commands necessary if the info below is not sufficient. This is info for my Barebones PC:

Code: Select all

john@NewDesktop:~$ wine --version
wine-1.6.2
john@NewDesktop:~$ cat /etc/issue
Ubuntu 16.04.2 LTS \n \l
john@NewDesktop:~$ sudo lspci | grep -i vga
[sudo] password for john: 
00:02.0 VGA compatible controller: Intel Corporation Device 22b1 (rev 21)
john@NewDesktop:~$ sudo lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 76
Model name:            Intel(R) Celeron(R) CPU  N3050  @ 1.60GHz
Stepping:              3
CPU MHz:               2078.500
CPU max MHz:           2160.0000
CPU min MHz:           480.0000
BogoMIPS:              3198.49
Virtualisation:        VT-x
L1d cache:             24K
L1i cache:             32K
L2 cache:              1024K
NUMA node0 CPU(s):     0,1
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch epb tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm ida arat
Below is same info for B4A working OK on my laptop:

Code: Select all

john@NewLaptop:~$ wine --version
wine-1.6.2
john@NewLaptop:~$ cat /etc/issue
Ubuntu 16.04.2 LTS \n \l
john@NewLaptop:~$ sudo lspci | grep -i vga
[sudo] password for john:
00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e)
john@NewLaptop:~$ sudo lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    1
Core(s) per socket:    4
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 55
Model name:            Intel(R) Pentium(R) CPU  N3540  @ 2.16GHz
Stepping:              8
CPU MHz:               2518.588
CPU max MHz:           2665.6001
CPU min MHz:           499.8000
BogoMIPS:              4326.40
Virtualisation:        VT-x
L1d cache:             24K
L1i cache:             32K
L2 cache:              1024K
NUMA node0 CPU(s):     0-3
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer rdrand lahf_lm 3dnowprefetch epb tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm ida arat 
ls_boy
Level 2
Level 2
Posts: 45
Joined: Sat Dec 12, 2015 3:24 pm

Re: Smallish black Window on B4A

Post by ls_boy »

Your wine version is out of date.
You need to upgrade.
johnaaronrose
Level 2
Level 2
Posts: 22
Joined: Tue Dec 01, 2009 8:49 am

Re: Smallish black Window on B4A

Post by johnaaronrose »

I've already tried version 1.8 (using https://launchpad.net/~ubuntu-wine/+archive/ubuntu/ppa) and that made no difference; also, B4A using Wine 1.6 works fine on my Laptop. Interestingly, upgrading to 1.8 still shows the version as 1.6.2! Also, there is a 2.0 version on the above ppa but it doesn't upgrade to it, presumably due to my using Xenial.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Smallish black Window on B4A

Post by Bob Wya »

johnaaronrose wrote:I've already tried version 1.8 (using https://launchpad.net/~ubuntu-wine/+archive/ubuntu/ppa) and that made no difference; also, B4A using Wine 1.6 works fine on my Laptop. Interestingly, upgrading to 1.8 still shows the version as 1.6.2! Also, there is a 2.0 version on the above ppa but it doesn't upgrade to it, presumably due to my using Xenial.
You would want to use the official WineHQ repository/PPA - see WineHQ: Ubuntu ...
Update to winehq-devel 2.2, and test with this that version, please!

Bob
johnaaronrose
Level 2
Level 2
Posts: 22
Joined: Tue Dec 01, 2009 8:49 am

Re: Smallish black Window on B4A

Post by johnaaronrose »

Installed wine 2.2 OK after removing all wine components: confirmed by wine --version showing 2.2. Install asked me if I wanted to install wine-gecko and wine-mono. I said yes and they installed OK. I also installed winetricks as it's needed to install .Net 4.0 (which is required by B4A): though I think that it came from https://launchpad.net/~ubuntu-wine/+arc ... 5&start=75 (i.e. the Ubuntu Wine Team's ppa): is there a version of winetricks associated with wine 2.2?

There was one other funny:

Code: Select all

Package wine1.7 is a virtual package provided by:
  winehq-staging 2.2.0~ubuntu16.04.1
  winehq-devel 2.2.0~ubuntu16.04.1
You should explicitly select one to install.
E: Package 'wine1.7' has no installation candidate
Does that matter?

When I try to start B4A, it displays the icon but then just stops. So I ran it from the Terminal, but (taken from B4A.desktop), it displayed a popup titled Error stating "File not found". If only I knew which file!:

Code: Select all

john@NewDesktop:~/Software/B4A$ export WINEARCH=win32
john@NewDesktop:~/Software/B4A$ export WINEPREFIX=/home/john/workspace_b4/wine_b4john@NewDesktop:~/Software/B4A$ wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/john/workspace_b4/wine_b4/dosdevices/c:/users/Public/Start\\ Menu/Programs/B4A/B4A.lnk
john@NewDesktop:~$ wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/john/workspace_b4/wine_b4/dosdevices/c:/users/Public/Start\\ Menu/Programs/B4A/B4A.lnk
fixme:exec:SHELL_execute flags ignored: 0x00000100
Clicking OK gives:

Code: Select all

Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: Success.
Any ideas what the cause of this is?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Smallish black Window on B4A

Post by Bob Wya »

johnaaronrose wrote:Installed wine 2.2 OK after removing all wine components: confirmed by wine --version showing 2.2. Install asked me if I wanted to install wine-gecko and wine-mono. I said yes and they installed OK. I also installed winetricks as it's needed to install .Net 4.0 (which is required by B4A): though I think that it came from https://launchpad.net/~ubuntu-wine/+arc ... 5&start=75 (i.e. the Ubuntu Wine Team's ppa): is there a version of winetricks associated with wine 2.2?
Make sure your version of winetricks is up to date - see WineHQ: Winetricks ...

Code: Select all

winetricks --version
20170207 - sha1sum: 1ca9018f668d8e2efce7164d1515bd05e4733d4d
johnaaronrose wrote:There was one other funny:

Code: Select all

Package wine1.7 is a virtual package provided by:
  winehq-staging 2.2.0~ubuntu16.04.1
  winehq-devel 2.2.0~ubuntu16.04.1
You should explicitly select one to install.
E: Package 'wine1.7' has no installation candidate
Does that matter?
No.
I checked the .deb control file... The package is just using a scatter gun approach of listing every possible version of Ubuntu-packaged wine, you might have installed.
Basically this ensures that any distribution Wine package, currently installed, is definitely removed - before the WineHQ one is installed.
johnaaronrose wrote:When I try to start B4A, it displays the icon but then just stops. So I ran it from the Terminal, but (taken from B4A.desktop), it displayed a popup titled Error stating "File not found". If only I knew which file!:

Code: Select all

john@NewDesktop:~/Software/B4A$ export WINEARCH=win32
john@NewDesktop:~/Software/B4A$ export WINEPREFIX=/home/john/workspace_b4/wine_b4
john@NewDesktop:~/Software/B4A$ wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/john/workspace_b4/wine_b4/dosdevices/c:/users/Public/Start\\ Menu/Programs/B4A/B4A.lnk
john@NewDesktop:~$ wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/john/workspace_b4/wine_b4/dosdevices/c:/users/Public/Start\\ Menu/Programs/B4A/B4A.lnk
fixme:exec:SHELL_execute flags ignored: 0x00000100
Don't worry about the auto-generated Windows lnk files... They are just another headache IMHO...
Just run you application directly... E.g. something like:

Code: Select all

export WINEPREFIX=/home/john/workspace_b4/wine_b4
cd "${WINEPREFIX}/drive_c/Program Files/B4A/"
wine B4A.exe
The WINEARCH env variable - only need to be specified when you are first creating a WINEPREFIX.

Just use the good ol' strings command to "see" where the lnk file points to:

Code: Select all

strings "/home/john/workspace_b4/wine_b4/drive_c/users/Public/Start Menu/Programs/B4A/B4A.lnk" | grep 'C:\\Program Files'
To mangle a Wine path that is Windows to a Unix path use the winepath utility...
E.g.:

Code: Select all

winepath -u 'C:\Program Files (x86)\7-Zip\7zFM.exe'
/home/robert_gentoo/.wine/dosdevices/c:/Program Files (x86)/7-Zip/7zFM.exe
and back again:

Code: Select all

winepath -w '/home/robert_gentoo/.wine/dosdevices/c:/Program Files (x86)/7-Zip/7zFM.exe'
'C:\Program Files (x86)\7-Zip\7zFM.exe'

Bob
johnaaronrose
Level 2
Level 2
Posts: 22
Joined: Tue Dec 01, 2009 8:49 am

Re: Smallish black Window on B4A

Post by johnaaronrose »

I'm now using the latest winetricks, dated 2017.

I now get:

Code: Select all

john@NewDesktop:~/workspace_b4/wine_b4/drive_c/Program Files/Anywhere Software/Basic4android$ export WINEPREFIX=~/workspace_b4/wine_b4
john@NewDesktop:~/workspace_b4/wine_b4/drive_c/Program Files/Anywhere Software/Basic4android$ cd "${WINEPREFIX}/drive_c/Program Files/Anywhere Software/Basic4android/"
john@NewDesktop:~/workspace_b4/wine_b4/drive_c/Program Files/Anywhere Software/Basic4android$ wine B4A.exeerr:module:import_dll Library mscoree.dll (which is needed by L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscorsvw.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscorsvw.exe" failed, status c0000135
err:service:process_send_command service protocol error - failed to write pipe!
fixme:service:scmdatabase_autostart_services Auto-start service L"clr_optimization_v4.0.30319_32" failed to start: 1053
err:mscoree:CLRRuntimeInfo_GetRuntimeHost Wine Mono is not installed
I've tried using winecfg (after adding app B4A.exe as it had Basic4android.exe on winecfg's list which is the B4A install program) but it objected even with mscoree as an Override. Is Native,Builtin Ok for mscoree?

Ideally, I'd like to use .Net 4.6.1 rather than the currently installed 4.0, but even after I uninstall dotnet40 component using winecfg it still refuses to let me install dotnet461 as it says that dotnet4641 conflicts with dotnet40 which is already installed!
Locked