Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - darrit

Pages: [1]
1
Graphics / Re: [Android] dequeueBuffer : BufferQueue has been abandoned
« on: August 16, 2015, 08:54:33 pm »
Hmmm ... you are right Alex.
I think i should delete this topic, because i have really to less informations about this problem. If I have more informations, I will ask again.

darrit

2
Graphics / [Android] dequeueBuffer : BufferQueue has been abandoned
« on: August 16, 2015, 07:57:46 pm »
Hi guys,

Device: Samsung Galaxy S4

After i added a Adview to my project like this:

public class GameActivity extends NativeActivity {

        private static final String advStart = "xxxxxxxxxxxxxxxxxxxxxx";
       
        AdView startAD;

        PopupWindow popUp;

        GameActivity _activity;

        LinearLayout layout;

        LinearLayout mainLayout;

        boolean adsinited = false;

        public void onCreate(Bundle savedInstanceState) {

                super.onCreate(savedInstanceState);

                getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
               
                _activity = this;
               
                startAD = new AdView(this);
                startAD.setAdSize(AdSize.SMART_BANNER);
                startAD.setAdUnitId(advStart);
                startAD.setVisibility(View.VISIBLE);
                startAD.refreshDrawableState();
               
        }

        public void showAdPopup()
        {
                if (adsinited)
                {
                        return;
                }

                if (startAD != null) {

                        _activity.runOnUiThread(new Runnable() {

                                @Override
                                public void run() {

                                        adsinited = true;

                                        popUp = new PopupWindow(_activity);

                                        popUp.setHeight(50);

                                        popUp.setWindowLayoutMode(LayoutParams.WRAP_CONTENT,
                                                        LayoutParams.WRAP_CONTENT);

                                        popUp.setClippingEnabled(false);

                                        layout = new LinearLayout(_activity);

                                        mainLayout = new LinearLayout(_activity);

                                        layout.setPadding(-5, -5, -5, -5);

                                        MarginLayoutParams params = new MarginLayoutParams(
                                                        LayoutParams.WRAP_CONTENT,
                                                        LayoutParams.WRAP_CONTENT);

                                        params.setMargins(0, 0, 0, 0);

layout.setOrientation(LinearLayout.VERTICAL);

if(startAD.getParent() != null)
((ViewGroup)startAD.getParent()).removeView(startAD);
                                       
                                        layout.addView(startAD, params);

                                        popUp.setContentView(layout);

                                        _activity.setContentView(mainLayout, params);

                                        AdRequest.Builder aB = new Builder();

                                        aB.addTestDevice("B6F0C02A66C0C639398CDD1C6DEA026E");

                                        _activity.startAD.loadAd(aB.build());
                                       
                                        new Handler().postDelayed(new Runnable() {
                                            public void run() {
                                                        popUp.showAtLocation(mainLayout, Gravity.TOP, 0, 0);
                                            }
                                        }, 100);
                                        popUp.update();
                                }
                        });

                }

               
        }
        @Override
        public void onDestroy() {
                if (startAD != null) {
                        startAD.destroy();
                }
                super.onDestroy();
        }
 

sometimes I get a error or a warning like this:


08-15 22:50:37.441: W/Adreno-EGLSUB(12948): <DequeueBuffer:736>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
08-15 22:50:37.441: W/Adreno-EGLSUB(12948): <DequeueBuffer:736>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
08-15 22:50:37.441: W/Adreno-EGL(12948): <qeglDrvAPI_eglSwapBuffers:3702>: EGL_BAD_SURFACE
08-15 22:50:37.441: W/Adreno-EGLSUB(12948): <DequeueBuffer:736>: dequeue native buffer fail: No such device, buffer=0x0, handle=0x0
08-15 22:50:37.441: W/Adreno-EGL(12948): <qeglDrvAPI_eglSwapBuffers:3702>: EGL_BAD_SURFACE
08-15 22:50:37.451: W/Adreno-GSL(12948): <sharedmem_gpumem_alloc_id:1498>: sharedmem_gpumem_alloc: mmap failed errno 12 Out of memory
08-15 22:50:37.451: E/Adreno-GSL(12948): <gsl_memory_alloc_pure:2044>: GSL MEM ERROR: kgsl_sharedmem_alloc ioctl failed.

08 - 16 17:10 : 23.984 : W / Adreno - EGL(22021) : <qeglDrvAPI_eglSwapBuffers : 3702> : EGL_BAD_SURFACE
08 - 16 17 : 10 : 23.984 : E / BufferQueueProducer(281) : [packageName / packageName.GameActivity] dequeueBuffer : BufferQueue has been abandoned
08 - 16 17 : 10 : 23.984 : W / Adreno - EGLSUB(22021) : <DequeueBuffer : 736> : dequeue native buffer fail : No such device, buffer = 0x0, handle = 0x0
08 - 16 17 : 10 : 23.984 : W / Adreno - EGL(22021) : <qeglDrvAPI_eglSwapBuffers : 3702> : EGL_BAD_SURFACE



Please can anyone help me with this Problem or can tell me a solution ?

darrit

3
General / Re: [Android] show AdView from Android Java Code on SFML
« on: August 15, 2015, 01:09:23 am »
Ok I´ll try it thank you :)
If i have more question about this I text you ok ? ^^

Thank you again so much  :) and have a nice evening.
Schönen Abend noch  ;D.

darrit

4
General / Re: [Android] show AdView from Android Java Code on SFML
« on: August 14, 2015, 11:33:45 pm »
Hi Alex thanks for your answer :).

Can you tell me what you use for your app ? Only SFML and the Java Android staff ?

It would be great if you can send it to me.
I´ve found this website too but it doesnt work :/ and the tutorial for NDK or SFML for AdView etc. are toooooo much to read and test it all ....  >:(

5
General / [Android] show AdView from Android Java Code on SFML
« on: August 14, 2015, 09:30:50 pm »
Hey guys,

I have a question about AdView (Advertising View from Android Java Code) and  SFML.


Is there any way to show a AdView on the screen using SFML ?
I search so much about this but I found nothing useful staff.

I am using the SFML c++ source.


I hope anyone knows a great solution :)

6
Graphics / Re: [Android] White Sprites
« on: August 14, 2015, 05:32:15 pm »
Thanks for the answers .
I think to that the Hello Kitty version is the real problem xD.

@ Rhimlock
I compiled the application still for the ARM achitecture maybe this is really the solution to compile it for Intel Atom too.

I will test it.

7
Graphics / [Android] White Sprites
« on: August 13, 2015, 11:35:46 pm »
Hello guys,

my problem is that i have white sprites on an android device.
The same issue appears with the SFML android example on this device.

I searched so much for solutions but nothing was useful.

Device: Samsung Galaxy Tab 3 {[( HELLO KITTY - Version )]} ^^
Android Version: 4.xx

I tried the example on many devices (smart phones like S4, S5, Galaxy Nexus and on Asus Tablet).
But only on the Galaxy Tab 3 i get this issue.

SFML Android Example:

#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <SFML/Network.hpp>


int main(int argc, char *argv[])
{
    sf::RenderWindow window(sf::VideoMode::getDesktopMode(), "");

    sf::Texture texture;
    if(!texture.loadFromFile("image.png"))
        return EXIT_FAILURE;

    sf::Sprite image(texture);
    image.setPosition(0, 0);
    image.setOrigin(texture.getSize().x/2, texture.getSize().y/2);

    sf::Music music;
    if(!music.openFromFile("canary.wav"))
        return EXIT_FAILURE;

    music.play();

    sf::View view = window.getDefaultView();

    while (window.isOpen())
    {
        sf::Event event;

        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
            {
                window.close();
            }

            if (event.type == sf::Event::Resized)
            {
                view.setSize(event.size.width, event.size.height);
                view.setCenter(event.size.width/2, event.size.height/2);
                window.setView(view);
            }
        }

        if (sf::Touch::isDown(0))
        {
            sf::Vector2i position = sf::Touch::getPosition(0);
            image.setPosition(position.x, position.y);
        }

        window.clear(sf::Color::White);
        window.draw(image);
        window.display();
    }
}
 

Pages: [1]