Comments (6)
Hi,
Can you post the stack trace of the crash?
By looking at the code everything looks right, and the examples work fine with similar code, so without the stack trace I don't think I can do much.
You said snowflake is an image, that is fine. It must be either a BitmapDrawable or an AnimationDrawable, so shapes or other xml drawables will crash, but that should not be your problem (actually you don't need the snowflake in the xml, just inside the drawables folder).
The other possible problem is that emiter_top_left is null, but you said it is there, so not much else can go wrong...
from leonids.
Here is the stack of trash
https://dl.dropboxusercontent.com/u/65953495/log.txt
from leonids.
Mmm, a divide by 0. This is clearly a bug, but I'm not sure when I'll have time to fix it.
One more question: Are you using the latest code or the jar file?
Anyway, in the meantime, you can bypass this bug by doing
.setSpeedModuleAndAngleRange(0f, 0.1f, 179, 180)
Instead of:
.setSpeedModuleAndAngleRange(0f, 0.1f, 180, 180)
I remember fixing this or a similar divide by 0 issue, will need to check in which version the crash appears.
from leonids.
Am i supposed to choose between jar or the code? I thought both are needed
Ok i did it with the jar and it works pefectly. Thank you .. i was bit confussed ... now you can close and thank you for your help... :) π
from leonids.
You can either add the jar file OR checkout the project to add it as a library, you don't need both.
Apparently this is an issue introduced recently, so I'll keep it open until I fix it again.
Thanks for the report!
from leonids.
This has been fixed on master
from leonids.
Related Issues (20)
- δΈΊδ»δΉη¨δΈδΊε
- EmiterWithGravityExampleActivity ,How to make particles fly upward? HOT 1
- How to change TIMER_TASK_INTERVAL? HOT 2
- OneShot method doesn't call onDraw(); HOT 2
- Particle slowdown (air resistance)
- Copyright statement missing
- How to change the direction of the animation
- Use Leonids as a shared transition view HOT 1
- Emitters freeze after several seconds when built from latest tools HOT 3
- Particle Wall HOT 1
- Reverse Animation
- Rootview elevation HOT 2
- Bug causing crash
- Bug causing crash HOT 3
- JCenter shutdown HOT 5
- Top !!
- Typo in ParticleSystem class HOT 1
- Crash detected in onUpdate(long miliseconds) function
- Project Build error HOT 2
- NPE HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leonids.